Friday, April 15, 2016

Re: gwt-2.8-git compilation failure

Hi Jens

I would prefer a trick in the opposite direction (make compile work instead of breaking SDM) but even that fails :-)
SDM continues working after the 'clean'. Production compile fails with this message.

I noticed that UibinderWriter has an added gssOptions parameter in the constructor. Looks like it wants the new one but it is finding
the 2.7 UiBinderWriter without the extra parameter and it fails.

Any ideas?

Question: Where it is looking to find the UiBinderWriter (classpath? workdir?). Is it a class or should parse it with the compiler (java)?

As I said: It  looks like a misconfiguration (stale classpath) on my end but I sure appreciate any hints.

   [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:111)
     [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:118)
     [java]     at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:72)
     [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.JVisitor.accept(JVisitor.java:118)
     [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:88)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)
     [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: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:139)
     [java]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
     [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: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:788)
     [java]     at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:780)
     [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:1387)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:885)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1442)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1254)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1174)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:197)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:156)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:117)
     [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
     [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:124)
     [java] Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.UiBinderParser.<init>(Lcom/google/gwt/uibinder/rebind/UiBinderWriter;Lcom/google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/rebind/model/ImplicitClientBundle;Ljava/lang/String;Lcom/google/gwt/uibinder/rebind/UiBinderContext;Lcom/google/gwt/dev/resource/ResourceOracle;Lcom/google/gwt/resources/rg/GssResourceGenerator$GssOptions;)V


On Fri, Apr 15, 2016 at 12:37 AM, Jens <jens.nehlmeier@gmail.com> wrote:
Yes it can happen that SDM works but a production compile fails. For me its pretty rare but it can happen. I guess there are some difficult to spot bugs within incremental compilation of SDM.

You can clean SDM caches by launching SDM, open its site (localhost:9876) and hit the small clean button. Then restart SDM and it does an initial full, clean compile which should show you the same error as when compiling directly for production.

-- J.


--
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+unsubscribe@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.



--
Vassilis Virvilis

--
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+unsubscribe@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.

No comments:

Post a Comment