Re: GWT compile stuck

2023-02-27 Thread Alaa Humaidat
I was only able to fix the error above *ecj *from from *apache-jsp* per the 
suggestions here 

```

org.eclipse.jetty
apache-jsp
${jetty.version}


org.eclipse.jdt
ecj



```
On Sunday, February 26, 2023 at 5:14:04 PM UTC+3 Alaa Humaidat wrote:

> Actually, after a few tries, I started getting compilation errors on all 
> lines containing logical operators. For example, 
> ```
> public void onClick(ClickEvent event) {
>* if ( ! selectedOptionsList.isEmpty()) {*
> repOptfPanel.clear();
> for (String str : selectedOptionsList) {
> Label label = new Label(str);
> 
> label.getElement().getStyle().setProperty("float", "left");
> 
> label.getElement().getStyle().setProperty("margin", "3px");
> repOptfPanel.add(label);
> }
>
> ReprocessOptionsDialog.this.hide();
> }
> }
> ```
> doesn't compile due to the following error:
> ```
> [ERROR] An internal compiler exception occurred
> com.google.gwt.dev.jjs.InternalCompilerException: Unexpected operator for 
> unary expression
> at 
> com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:2377)
> at 
> org.eclipse.jdt.internal.compiler.ast.UnaryExpression.traverse(UnaryExpression.java:353)
> at 
> org.eclipse.jdt.internal.compiler.ast.IfStatement.traverse(IfStatement.java:329)
> at 
> org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:411)
> at 
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1765)
> at 
> org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java:693)
> at 
> org.eclipse.jdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:1167)
> at 
> org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.traverse(ConstructorDeclaration.java:708)
> at 
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1831)
> at 
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1683)
>
> 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 ReprocessProductForm.java(324): *(! 
> selectedOptionsList.isEmpty())*
>   org.eclipse.jdt.internal.compiler.ast.UnaryExpression
> ```
>
> while the following compiles successfully:
> ```
> public void onClick(ClickEvent event) {
> *if ( selectedOptionsList.isEmpty()) {*
> repOptfPanel.clear();
> for (String str : selectedOptionsList) {
> Label label = new Label(str);
> 
> label.getElement().getStyle().setProperty("float", "left");
> 
> label.getElement().getStyle().setProperty("margin", "3px");
> repOptfPanel.add(label);
> }
>
> 

Re: GWT compile stuck

2023-02-26 Thread Alaa Humaidat
Actually, after a few tries, I started getting compilation errors on all 
lines containing logical operators. For example, 
```
public void onClick(ClickEvent event) {
   * if ( ! selectedOptionsList.isEmpty()) {*
repOptfPanel.clear();
for (String str : selectedOptionsList) {
Label label = new Label(str);

label.getElement().getStyle().setProperty("float", "left");

label.getElement().getStyle().setProperty("margin", "3px");
repOptfPanel.add(label);
}

ReprocessOptionsDialog.this.hide();
}
}
```
doesn't compile due to the following error:
```
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected operator for 
unary expression
at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:2377)
at 
org.eclipse.jdt.internal.compiler.ast.UnaryExpression.traverse(UnaryExpression.java:353)
at 
org.eclipse.jdt.internal.compiler.ast.IfStatement.traverse(IfStatement.java:329)
at 
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:411)
at 
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1765)
at 
org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java:693)
at 
org.eclipse.jdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:1167)
at 
org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.traverse(ConstructorDeclaration.java:708)
at 
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1831)
at 
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1683)
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 ReprocessProductForm.java(324): *(! 
selectedOptionsList.isEmpty())*
  org.eclipse.jdt.internal.compiler.ast.UnaryExpression
```

while the following compiles successfully:
```
public void onClick(ClickEvent event) {
*if ( selectedOptionsList.isEmpty()) {*
repOptfPanel.clear();
for (String str : selectedOptionsList) {
Label label = new Label(str);

label.getElement().getStyle().setProperty("float", "left");

label.getElement().getStyle().setProperty("margin", "3px");
repOptfPanel.add(label);
}

ReprocessOptionsDialog.this.hide();
}
}
```

The code above used to work fine when compiled using Java 8, GWT 2.10.
On Friday, February 24, 2023 at 3:02:24 PM UTC+3 Alaa Humaidat wrote:

> 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 
> 

Re: GWT compile stuck

2023-02-24 Thread Alaa Humaidat
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 alaahu...@gmail.com 
> 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:
>>
>> ```
>> > depends="compile">
>> >   classname="com.google.gwt.dev.Compiler"
>>   fork="true"
>>   output="build.log">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ```
>>
>> 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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/00bf2bc9-86e2-4364-867c-30ea7973811en%40googlegroups.com.


Re: GWT compile stuck

2023-02-24 Thread Thomas Broyer
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 alaahu...@gmail.com 
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:
>
> ```
>  depends="compile">
>classname="com.google.gwt.dev.Compiler"
>   fork="true"
>   output="build.log">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ```
>
> 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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/bb61e93c-b4c4-4879-a322-21929c347d0cn%40googlegroups.com.


Re: GWT compile stuck

2023-02-23 Thread Alaa Humaidat
Changing localWorkers to 1 didn't fix the issue (tried increasing them 
gradually as well). *build.log* doesn't show anything:
```
Public resources found in...
Translatable source found in...
Persistent unit cache dir set to: /home/ahumaidat/sourcegit/ds/gwt-unitCache
Opening cache file: 
/home/ahumaidat/sourcegit/ds/gwt-unitCache/gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-018681BB19A8
Looking for previously cached Compilation Units in 
/home/ahumaidat/sourcegit/ds/gwt-unitCache
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-01867EC1D3D6
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-01867EC29ADF
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-01867ECC816B
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-01867ED36467
Compiling module com.automation.core.ds
```

On Friday, February 24, 2023 at 5:45:34 AM UTC+3 Jonathan Baxter wrote:

> Try changing localWorkers to 1?
>
> On Thursday, February 23, 2023 at 9:14:03 AM UTC-5 Alaa Humaidat 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:
>>
>> ```
>> > depends="compile">
>> >   classname="com.google.gwt.dev.Compiler"
>>   fork="true"
>>   output="build.log">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ```
>>
>> 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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/7ff1c2ac-644a-4348-be85-c001f1f22888n%40googlegroups.com.


Re: GWT compile stuck

2023-02-23 Thread Jonathan Baxter
Try changing localWorkers to 1?

On Thursday, February 23, 2023 at 9:14:03 AM UTC-5 Alaa Humaidat 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:
>
> ```
>  depends="compile">
>classname="com.google.gwt.dev.Compiler"
>   fork="true"
>   output="build.log">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ```
>
> 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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/14997f90-e702-4883-92a4-e72e25744b44n%40googlegroups.com.