[ERROR] Unexpected internal compiler error | BytecodeSignatureMaker.java:59 | at com.google.gwt.dev.Compiler.main(Compiler.java:113)

137 views
Skip to first unread message

Michael Conrad

unread,
Aug 3, 2022, 4:36:02 PM8/3/22
to google-we...@googlegroups.com, Jason Carter

Trying to update to gwt 2.10.0, have it mostly figured out, but I'm getting the following stack trace.

Any suggestions on what I need to look for?

I've already did the exclude module's thing on multiple dependencies to keep gwt 2.8 stuff out of the classpath. There is no GWT servlet stuff.

Using Gradle, JDK 17, Linux, IntelliJU

plugins {
    id "java"
    id "war"
    id "org.wisepersist.gwt"
    id "org.gretty"
}

> Task :compileGwt
Compiling module com.newsrx.butter.Butter
[ERROR] Unexpected internal compiler error
java.lang.IllegalArgumentException
        at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
        at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.<init>(BytecodeSignatureMaker.java:59)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
        at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
        at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:41)
        at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:36)
        at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:100)
        at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:349)
        at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:532)
        at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:464)
        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:210)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:190)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:131)
        at com.google.gwt.dev.Compiler.compile(Compiler.java:192)
        at com.google.gwt.dev.Compiler.compile(Compiler.java:143)
        at com.google.gwt.dev.Compiler.compile(Compiler.java:132)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:110)
        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
        at com.google.gwt.dev.Compiler.main(Compiler.java:113)


Dependency graph attached.


dependencies.txt

Jens

unread,
Aug 5, 2022, 11:40:58 AM8/5/22
to GWT Users
GWT (gwt-dev) depends on ASM 9.2 which supports up to Java 18. On your compile classpath you have gwt-websockets which depends on ASM 5.x. Seems like that ASM version is used during GWT compilation. 

ASM's ClassVisitor constructor checks the byte code version of the class file and if it is too high then this exception will be thrown.

-- J.

Michael Conrad

unread,
Aug 9, 2022, 10:12:27 AM8/9/22
to google-we...@googlegroups.com
Thanks for the assistance.

After poking around a bit, I removed the dependency and switched to using Element2 for websock work.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6d3ae1a3-0d62-49a6-b02e-73be14a1f6fcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages