You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will end up being a somewhat frequent occurrence for those upgrading to Grails 7, that had been loading asset-pipeline-gradle in buildSrc or buildscript{} vs the new way in plugins{} by id/version only.
remove com.bertramlabs.plugins:asset-pipeline-gradle from buildSrc/build.gradle or buildscript{} in build.gradle:
then define in build.gradle only with id and version:
plugins {
id "com.bertramlabs.asset-pipeline" version "5.0.4"
}
This is also occurring in projects that do not include asset-pipeline-gradle in buildSrc/build.gradle or buildscript{} and just the following in build.gradle:
Grails application running at http://localhost:8080 in environment: development
2024-10-11T09:19:27.912-04:00 ERROR 7768 --- [io-8080-exec-10] .C.[.[.[.[dispatcherServletRegistration] : Servlet.service() for servlet [dispatcherServletRegistration] in context with path [] threw exception [Filter execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.graalvm.polyglot.Context
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:95)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at asset.pipeline.AbstractAssetFile.processedStream(AbstractAssetFile.groovy:180)
at asset.pipeline.AbstractAssetFile.processedStream(AbstractAssetFile.groovy)
at asset.pipeline.DirectiveProcessor.fileContents(DirectiveProcessor.groovy:320)
at asset.pipeline.DirectiveProcessor$fileContents$2.call(Unknown Source)
at asset.pipeline.AssetPipeline.serveUncompiledAsset(AssetPipeline.groovy:67)
at asset.pipeline.AssetPipelineFilter.doFilterInternal(AssetPipelineFilter.groovy:288)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:840)
Grails Issue: grails/grails-core#13913
Workaround:
This will end up being a somewhat frequent occurrence for those upgrading to Grails 7, that had been loading
asset-pipeline-gradle
inbuildSrc
orbuildscript{}
vs the new way inplugins{}
by id/version only.remove
com.bertramlabs.plugins:asset-pipeline-gradle
frombuildSrc/build.gradle
orbuildscript{}
inbuild.gradle
:implementation "com.bertramlabs.plugins:asset-pipeline-gradle:5.0.4"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:5.0.4"
also remove it from
settings.gradle
, if presentthen define in
build.gradle
only with id and version:This is also occurring in projects that do not include
asset-pipeline-gradle
inbuildSrc/build.gradle
orbuildscript{}
and just the following inbuild.gradle
:runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails"
the error:
It is this line that errors during runtime:
https://github.com/bertramdev/asset-pipeline/blob/5a7b347295a7d6901d1772763b467404[…]ne-core/src/main/groovy/asset/pipeline/AbstractAssetFile.groovy
and loading the plugin with implementation or classpath seems to be adding
asset-pipeline/asset-pipeline-core/src/main/groovy/asset/pipeline/processors/BabelJsProcessor.groovy
Line 30 in 5a7b347
https://github.com/search?q=repo%3Abertramdev%2Fasset-pipeline+%22processors+%3D%22&type=code - code setting the list of processors and one of these that is adding BabelJsProcessor is likely the root cause
asset-pipeline/asset-pipeline-core/src/main/groovy/asset/pipeline/JsAssetFile.groovy
Line 37 in aa49ecf
asset-pipeline/jsx-asset-pipeline/src/main/groovy/asset/pipeline/jsx/JsxEs6AssetFile.groovy
Line 38 in aa49ecf
asset-pipeline/asset-pipeline-core/src/main/groovy/asset/pipeline/JsEs6AssetFile.groovy
Line 36 in aa49ecf
asset-pipeline/typescript-asset-pipeline/src/main/groovy/asset/pipeline/typescript/TypeScriptESAssetFile.groovy
Line 36 in aa49ecf
asset-pipeline/typescript-asset-pipeline/src/main/groovy/asset/pipeline/typescript/TypeScriptJsxEs6AssetFile.groovy
Line 37 in aa49ecf
The text was updated successfully, but these errors were encountered: