Re: GWT 2.5 RC1 issue -- com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

2242 views
Skip to first unread message

bkc

unread,
Oct 5, 2012, 10:30:55 AM10/5/12
to google-we...@googlegroups.com
Bump -- the problem still happens in GWT 2.5 RC2.

On Saturday, July 7, 2012 8:27:53 AM UTC-7, bkc wrote:
Here is the relevant output from the gwtc target in ant with -logLevel set to ALL.  I am using SmartGWT 3.0 (the current latest release); the error below suggests an incompatibility between the GWT 2.5 RC1 compiler and SmartGWT 3.0 (everything compiles fine with GWT 2.4).  Please let me know how I can be of further assistance.

     [java]       Resolving com.smartgwt.client.i18n.SmartGwtMessages_
     [java]          Found type 'com.smartgwt.client.i18n.SmartGwtMessages_'
     [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:109)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
     [java] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
     [java] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
     [java] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:426)
     [java] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:395)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:902)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:627)
     [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:604)
     [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
     [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
     [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
     [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
     [java] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
     [java] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
     [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
     [java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
     [java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
     [java] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
     [java] Caused by: java.lang.ClassCastException: com.google.gwt.dev.jjs.ast.JMethod cannot be cast to com.google.gwt.dev.jjs.ast.JConstructor
     [java] at com.google.gwt.dev.jjs.ast.JNewInstance.getTarget(JNewInstance.java:56)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:275)
     [java] at com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:86)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] ... 32 more
     [java]       [ERROR] at Main.java(131): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JNewInstance
     [java]       [ERROR] at Main.java(131): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JDeclarationStatement
     [java]       [ERROR] at Main.java(103): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JBlock
     [java]       [ERROR] at Main.java(103): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JMethodBody
     [java]       [ERROR] at Main.java(103): private static final void $clinit();
     [java] 
     [java]          com.google.gwt.dev.jjs.ast.JMethod
     [java] Shutting down PersistentUnitCache thread

Thanks,
Bryant

Eugene Ivlev

unread,
Nov 30, 2012, 1:20:14 PM11/30/12
to google-we...@googlegroups.com
I have the same problem after switching to gwt 2.5.0 from 2.4.0. Do you have any solution?

пятница, 5 октября 2012 г., 17:30:55 UTC+3 пользователь bkc написал:

Thomas Broyer

unread,
Nov 30, 2012, 2:27:55 PM11/30/12
to google-we...@googlegroups.com
There was a similar question today on StackOverflow: http://stackoverflow.com/q/13641849/116472
The problem was a method with the same name as the class, apparently GWT confused it with a constructor.

bkc

unread,
Dec 1, 2012, 10:16:24 PM12/1/12
to google-we...@googlegroups.com
I've written up an issue: https://code.google.com/p/google-web-toolkit/issues/detail?id=7824.  I tried to use Wiki syntax without success.  :)

Thanks,
Bryant
Reply all
Reply to author
Forward
0 new messages