Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

2018-05-24 Thread Ignacio Baca Moreno-Torres


I sometimes, when I'm a bit desperate, I debug the project, find some 
classes for the conflicting code using the 
"Thread.currentThread().getContextClassLoader().loadClass(...)", and use 
the variable inspector to find the class loader and the actual file that 
has been used to load the class. At least, you finally found where the hell 
was the cached class! ;) ... maybe the first time is a bit confusing, but 
after sometimes, you will solve those mixed/cached classpath problems much 
faster! 




On Thursday, May 24, 2018 at 9:13:04 PM UTC+2, JonL wrote:
>
> We have seen similar issues with this when we were experimenting with some 
> projects and upgrading to 2.8.2.  The things to double check are:
>
> 1. That there are no duplicate jars from different versions of GWT, as 
> mentions by Thomas Broyer.
> 2. Delete any GWT generated folder such as the gwt-unitCache, and the 
> script outputs in the war folder and also any GWT generated files in the 
> temp folder.
> 3. If still running into problems, delete the Eclipse workspace .metadata 
> folder, re-setup the workspace and import the existing projects into the 
> cleaned workspace.
>
> Due to GWT compilation caching, and Eclipse deployment caching, if files 
> do not change during the modification process, they can still reference the 
> the incorrect version of GWT, or the jars that are actually deployed to the 
> location where the Jetty server is run from by eclipse may not be updated.
>
> On Monday, May 14, 2018 at 6:06:09 AM UTC-7, Rachel wrote:
>>
>> We have to move our project back to GWT 2.7 due to some java 1.8 issues. 
>> I've checked all my jar files to make sure they are 2.7 and no duplicate 
>> jars in the build path but am getting errors when I try to compile with Ant.
>> Any suggestions would be greatly appreciated. Thank you.
>>
>> *prepareGWT*:
>>
>> [*delete*] Deleting directory 
>> C:\Users\s235985\workspace\wkflw_test\Approval\gwt-unitCache
>>
>> [*java*] Compiling module com.aep.mro.approval.approvalsystem
>>
>> [*java*] Computing all possible rebind results for 
>> 'gwtupload.client.bundle.UploadCss'
>>
>> [*java*] Rebinding gwtupload.client.bundle.UploadCss
>>
>> [*java*] Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>
>> [*java*] Initializing ResourceGenerator
>>
>> [*java*] [ERROR] Unable to determine default for GSS in UiBinder
>>
>> [*java*] [ERROR] An internal compiler exception occurred
>>
>> [*java*] *com.google.gwt.dev.jjs.InternalCompilerException*: Unexpected 
>> error during visit.
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(
>> *JVisitor.java:121*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:296*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:285*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(
>> *JVisitor.java:128*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(
>> *JCastOperation.java:67*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
>> *JModVisitor.java:381*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:293*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:285*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(
>> *JVisitor.java:128*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(
>> *JDeclarationStatement.java:49*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(
>> *JModVisitor.java:95*)
>>
>> [*java*] at 
>> com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(
>> *JModVisitor.java:351*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JBlock.traverse(*JBlock.java:92*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
>> *JModVisitor.java:381*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:293*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(
>> *JVisitor.java:149*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(
>> *JVisitor.java:145*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(
>> *JMethodBody.java:83*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
>> *JModVisitor.java:381*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:293*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
>> *JModVisitor.java:285*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(
>> *JMethod.java:600*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JMethod.traverse(
>> *JMethod.java:569*)
>>
>> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
>> *JModVisitor.java:381*)
>>
>> [*java*] at 

Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

2018-05-24 Thread JonL
We have seen similar issues with this when we were experimenting with some 
projects and upgrading to 2.8.2.  The things to double check are:

1. That there are no duplicate jars from different versions of GWT, as 
mentions by Thomas Broyer.
2. Delete any GWT generated folder such as the gwt-unitCache, and the 
script outputs in the war folder and also any GWT generated files in the 
temp folder.
3. If still running into problems, delete the Eclipse workspace .metadata 
folder, re-setup the workspace and import the existing projects into the 
cleaned workspace.

Due to GWT compilation caching, and Eclipse deployment caching, if files do 
not change during the modification process, they can still reference the 
the incorrect version of GWT, or the jars that are actually deployed to the 
location where the Jetty server is run from by eclipse may not be updated.

On Monday, May 14, 2018 at 6:06:09 AM UTC-7, Rachel wrote:
>
> We have to move our project back to GWT 2.7 due to some java 1.8 issues. 
> I've checked all my jar files to make sure they are 2.7 and no duplicate 
> jars in the build path but am getting errors when I try to compile with Ant.
> Any suggestions would be greatly appreciated. Thank you.
>
> *prepareGWT*:
>
> [*delete*] Deleting directory 
> C:\Users\s235985\workspace\wkflw_test\Approval\gwt-unitCache
>
> [*java*] Compiling module com.aep.mro.approval.approvalsystem
>
> [*java*] Computing all possible rebind results for 
> 'gwtupload.client.bundle.UploadCss'
>
> [*java*] Rebinding gwtupload.client.bundle.UploadCss
>
> [*java*] Invoking generator 
> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>
> [*java*] Initializing ResourceGenerator
>
> [*java*] [ERROR] Unable to determine default for GSS in UiBinder
>
> [*java*] [ERROR] An internal compiler exception occurred
>
> [*java*] *com.google.gwt.dev.jjs.InternalCompilerException*: Unexpected 
> error during visit.
>
> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(
> *JVisitor.java:121*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:296*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:285*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(*JVisitor.java:128*
> )
>
> [*java*] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(
> *JCastOperation.java:67*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
> *JModVisitor.java:381*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:293*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:285*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(*JVisitor.java:128*
> )
>
> [*java*] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(
> *JDeclarationStatement.java:49*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(
> *JModVisitor.java:95*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(
> *JModVisitor.java:351*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JBlock.traverse(*JBlock.java:92*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
> *JModVisitor.java:381*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:293*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(*JVisitor.java:149*
> )
>
> [*java*] at com.google.gwt.dev.jjs.ast.JVisitor.accept(*JVisitor.java:145*
> )
>
> [*java*] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(
> *JMethodBody.java:83*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
> *JModVisitor.java:381*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:293*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:285*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(
> *JMethod.java:600*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JMethod.traverse(*JMethod.java:569*
> )
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(
> *JModVisitor.java:381*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:293*)
>
> [*java*] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(
> *JModVisitor.java:285*)
>
> [*java*] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(
> *UnifyAst.java:1505*)
>
> [*java*] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(*UnifyAst.java:870*)
>
> [*java*] at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(
> *JavaToJavaScriptCompiler.java:1305*)
>
> [*java*] at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(
> *JavaToJavaScriptCompiler.java:1038*)
>
> [*java*] at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(
> *JavaToJavaScriptCompiler.java:954*)
>
> [*java*] at 
> com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(
> *MonolithicJavaToJavaScriptCompiler.java:303*)
>
> [*java*] at 

Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

2018-05-23 Thread Rachel
That could definitely be the issue. Unfortunately, when we move back to a 
previous version of the project we still get the same error so we think it 
might be something with the eclipse environment and are going to try a new 
eclipse install. 

On Monday, May 14, 2018 at 12:34:20 PM UTC-4, Thomas Broyer wrote:
>
> Could one of your dependencies possibly "shadow" its own version of 
> ImageResourceGenerator that had been compiled against GWT 2.8? You'd have 
> to revert to an older version of that dependency then.
>
> On Monday, May 14, 2018 at 3:37:34 PM UTC+2, Rachel wrote:
>>
>> Thank you for responding. I'm looking at the build path and both gwt-user 
>> and gwt-dev jar files are from 2.7. Is there somewhere else I should look?
>>
>> On Monday, May 14, 2018 at 9:16:18 AM UTC-4, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On Monday, May 14, 2018 at 3:06:09 PM UTC+2, Rachel wrote:

 We have to move our project back to GWT 2.7 due to some java 1.8 
 issues. I've checked all my jar files to make sure they are 2.7 and no 
 duplicate jars in the build path but am getting errors when I try to 
 compile with Ant.
 Any suggestions would be greatly appreciated. Thank you.

 [*java*] Caused by: java.lang.NoSuchMethodError: 
 com.google.gwt.util.tools.Utility.close(Ljava/lang/AutoCloseable;)V

 [*java*] at 
 com.google.gwt.resources.rg.ImageResourceGenerator.getContentLength(
 *ImageResourceGenerator.java:623*)

>>>
>>> This close(AutoCloseable) method was added in 2.8: 
>>> https://github.com/gwtproject/gwt/commit/349210a31ec593cb499ac73a80743b89bd8d5aac
>>> So this means you have gwt-user from 2.8 and gwt-dev from 2.7 here.
>>>
>>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

2018-05-14 Thread Thomas Broyer
Could one of your dependencies possibly "shadow" its own version of 
ImageResourceGenerator that had been compiled against GWT 2.8? You'd have 
to revert to an older version of that dependency then.

On Monday, May 14, 2018 at 3:37:34 PM UTC+2, Rachel wrote:
>
> Thank you for responding. I'm looking at the build path and both gwt-user 
> and gwt-dev jar files are from 2.7. Is there somewhere else I should look?
>
> On Monday, May 14, 2018 at 9:16:18 AM UTC-4, Thomas Broyer wrote:
>>
>>
>>
>> On Monday, May 14, 2018 at 3:06:09 PM UTC+2, Rachel wrote:
>>>
>>> We have to move our project back to GWT 2.7 due to some java 1.8 issues. 
>>> I've checked all my jar files to make sure they are 2.7 and no duplicate 
>>> jars in the build path but am getting errors when I try to compile with Ant.
>>> Any suggestions would be greatly appreciated. Thank you.
>>>
>>> [*java*] Caused by: java.lang.NoSuchMethodError: 
>>> com.google.gwt.util.tools.Utility.close(Ljava/lang/AutoCloseable;)V
>>>
>>> [*java*] at 
>>> com.google.gwt.resources.rg.ImageResourceGenerator.getContentLength(
>>> *ImageResourceGenerator.java:623*)
>>>
>>
>> This close(AutoCloseable) method was added in 2.8: 
>> https://github.com/gwtproject/gwt/commit/349210a31ec593cb499ac73a80743b89bd8d5aac
>> So this means you have gwt-user from 2.8 and gwt-dev from 2.7 here.
>>
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

2018-05-14 Thread Rachel
Thank you for responding. I'm looking at the build path and both gwt-user 
and gwt-dev jar files are from 2.7. Is there somewhere else I should look?

On Monday, May 14, 2018 at 9:16:18 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Monday, May 14, 2018 at 3:06:09 PM UTC+2, Rachel wrote:
>>
>> We have to move our project back to GWT 2.7 due to some java 1.8 issues. 
>> I've checked all my jar files to make sure they are 2.7 and no duplicate 
>> jars in the build path but am getting errors when I try to compile with Ant.
>> Any suggestions would be greatly appreciated. Thank you.
>>
>> [*java*] Caused by: java.lang.NoSuchMethodError: 
>> com.google.gwt.util.tools.Utility.close(Ljava/lang/AutoCloseable;)V
>>
>> [*java*] at 
>> com.google.gwt.resources.rg.ImageResourceGenerator.getContentLength(
>> *ImageResourceGenerator.java:623*)
>>
>
> This close(AutoCloseable) method was added in 2.8: 
> https://github.com/gwtproject/gwt/commit/349210a31ec593cb499ac73a80743b89bd8d5aac
> So this means you have gwt-user from 2.8 and gwt-dev from 2.7 here.
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

2018-05-14 Thread Thomas Broyer


On Monday, May 14, 2018 at 3:06:09 PM UTC+2, Rachel wrote:
>
> We have to move our project back to GWT 2.7 due to some java 1.8 issues. 
> I've checked all my jar files to make sure they are 2.7 and no duplicate 
> jars in the build path but am getting errors when I try to compile with Ant.
> Any suggestions would be greatly appreciated. Thank you.
>
> [*java*] Caused by: java.lang.NoSuchMethodError: 
> com.google.gwt.util.tools.Utility.close(Ljava/lang/AutoCloseable;)V
>
> [*java*] at 
> com.google.gwt.resources.rg.ImageResourceGenerator.getContentLength(
> *ImageResourceGenerator.java:623*)
>

This close(AutoCloseable) method was added in 2.8: 
https://github.com/gwtproject/gwt/commit/349210a31ec593cb499ac73a80743b89bd8d5aac
So this means you have gwt-user from 2.8 and gwt-dev from 2.7 here.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.