You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "Taack (via GitHub)" <gi...@apache.org> on 2025/08/28 10:50:24 UTC

[I] [Grails7RC1] Gradle cloud.wondrify.asset-pipeline causes NoSuchMethodError exception [grails-core]

Taack opened a new issue, #15023:
URL: https://github.com/apache/grails-core/issues/15023

   ### Expected Behavior
   
   `bootRun` should run like with **Grails-7.0.0-M5** ...
   
   ### Actual Behaviour
   
   Instead, with **Grails-7.0.0-RC1** an `NoSuchMethodError` Exception is raised during assets compilation.
   
   ```bash
   12:19:32.273 [main] ERROR asset.pipeline.AssetCompiler -- Error compiling assets
   java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: 'void com.google.javascript.jscomp.serialization.TypedAst.makeExtensionsImmutable()'
           at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:124)
           at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:193)
           at java_util_concurrent_Future$get.call(Unknown Source)
           at asset.pipeline.AssetCompiler.compile(AssetCompiler.groovy:448)
           at asset.pipeline.AssetCompiler$compile$0.call(Unknown Source)
           at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
           at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
           at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
           at asset.pipeline.AssetCompiler.main(AssetCompiler.groovy:251)
   Caused by: java.lang.NoSuchMethodError: 'void com.google.javascript.jscomp.serialization.TypedAst.makeExtensionsImmutable()'
   ```
   
   A workaround is to update `closure-compiler-unshaded` dependency in `buildSrc/build.gradle`:
   ```gradle
   dependencies {
       implementation platform("org.apache.grails:grails-bom:$grailsVersion")
       implementation "org.apache.grails:grails-gradle-plugins"
   //    implementation "org.apache.grails:grails-data-hibernate5"
       implementation("cloud.wondrify:asset-pipeline-gradle") {
           // TODO: to remove; compile only with Java 24
           implementation 'com.google.javascript:closure-compiler-unshaded:v20250706'
       }
   }
   ```
   
   I do not understand why, except `closure-compiler-unshaded` brings `protobuf-java:3.21.12` and we use version 4 in other dependencies ...
   
   ### Steps To Reproduce
   
   I will try to provide a simple test-case later. To reproduce:
   
   * clone `https://github.com/Taack/infra`
   * publish plugins in maven local `./gradlew publishMavenPublicationToMavenLocal`
   * clone `https://github.com/Taack/intranet`
   * `cd intranet` and `git switch g7s2` to switch branch to g7s2
   * bootRun the server `./gradlew server:bootRun`
   
   ### Environment Information
   
   ```bash
   ❯ uname -a
   Linux auorchos-x8664 6.16.3-2-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 25 Aug 2025 16:01:24 +0000 x86_64 GNU/Linux
   ❯ java -fullversion
   openjdk full version "24.0.2"
   
   ```
   
   Thanks for your support !
   
   ### Example Application
   
   _No response_
   
   ### Version
   
   7.0.0-RC1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Grails7RC1] Gradle cloud.wondrify.asset-pipeline causes NoSuchMethodError exception [grails-core]

Posted by "Taack (via GitHub)" <gi...@apache.org>.
Taack commented on issue #15023:
URL: https://github.com/apache/grails-core/issues/15023#issuecomment-3233100966

   My bad, a dependency uses `api "com.google.protobuf:protobuf-java:${protobufVersion}"` which seems to be the root cause...
   
   Closing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Grails7RC1] Gradle cloud.wondrify.asset-pipeline causes NoSuchMethodError exception [grails-core]

Posted by "Taack (via GitHub)" <gi...@apache.org>.
Taack closed issue #15023: [Grails7RC1] Gradle cloud.wondrify.asset-pipeline causes NoSuchMethodError exception
URL: https://github.com/apache/grails-core/issues/15023


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org