Thank you, upgrading to java 11.0.18 fixed the issue, however, I got the
following compilation error:
```
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected operator for
EqualExpression
at
com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:762)
at
org.eclipse.jdt.internal.compiler.ast.EqualExpression.traverse(EqualExpression.java:995)
at
org.eclipse.jdt.internal.compiler.ast.IfStatement.traverse(IfStatement.java:329)
at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:437)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1699)
at
com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3969)
at
com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:4007)
at
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:128)
at
com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:322)
at
org.eclipse.jdt.internal.compiler.Compiler.processCompiledUnits(Compiler.java:575)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:475)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:426)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1020)
at
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:322)
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)
[ERROR] at Map.java(82): (value != null)
org.eclipse.jdt.internal.compiler.ast.EqualExpression
```
On Friday, February 24, 2023 at 12:58:21 PM UTC+3 Thomas Broyer wrote:
> This looks like a deadlock in JDK classes themselves. Did you try updating
> your JDK to the latest version? (11.0.18 AFAICT; 11.0.5 is more than 3
> years old already)
>
> On Thursday, February 23, 2023 at 3:14:03 PM UTC+1 [email protected]
> wrote:
>
>> I'm working on upgrading an app that uses GWT and embedded jetty server
>> from java 8 to java 11. The app was working fine with jetty 9, GWT 2.10.0
>> before the upgrade. After upgrading to java 11- Jetty 11, the compilation
>> for GWT got stuck.
>>
>> I removed all unused dependencies, upgraded existing ones to their latest
>> version (compatible with Java11), tried to increase Xmx and Xss for the
>> compilation target, and tried to add workers, but nothing worked.
>>
>> I used `jstack` to check the processes threads, which showed a deadlock
>> (result attached).
>>
>> Below is the ant target I'm using to build GWT:
>>
>> ```
>> <target name="compile.gwt" description="build applications"
>> depends="compile">
>> <java jvm="${home}/apps64/java11/bin/java" failonerror="true"
>> classname="com.google.gwt.dev.Compiler"
>> fork="true"
>> output="build.log">
>> <classpath>
>> <path refid="local.class.path"/>
>> </classpath>
>> <jvmarg line="-Xmx1024M"/>
>> <jvmarg line="-Xss16M"/>
>> <arg value="-style"/>
>> <arg value="DETAILED"/>
>> <arg value="-localWorkers"/>
>> <arg value="16"/>
>> <arg value="-logLevel"/>
>> <arg value="DEBUG"/>
>> <arg value="-optimize"/>
>> <arg value="5"/>
>> <arg value="com.automation.core.ds"/>
>> </java>
>> </target>
>> ```
>>
>> How can I fix that?
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-web-toolkit/00bf2bc9-86e2-4364-867c-30ea7973811en%40googlegroups.com.