Thursday, May 10, 2018

Re: Moving from gwt 2.7 to gwt 2.8.2: error while compiling

Thankyou Thomas.

That looks like a GXT issue, will try upgrading GXT too.

On Thursday, 10 May 2018 15:05:50 UTC+5:30, Gagandeep Singh wrote:
Hi All,

I am facing the error while compilation with gwt-2.8.2.jar. Could anyone guide, what could be reason here ?

parallel-gwt-compile:
     [java] Compiling module com.datadomain.sm.gui.EMMain
     [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:76)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptImmutable(JModVisitor.java:305)
     [java] at com.google.gwt.dev.jjs.ast.JMethodCall.visitChildren(JMethodCall.java:275)
     [java] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:266)
     [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.JExpressionStatement.traverse(JExpressionStatement.java:42)
     [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:94)
     [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:786)
     [java] at com.google.gwt.dev.jjs.ast.JConstructor.traverse(JConstructor.java:142)
     [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:1401)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:896)
     [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)
     [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)
     [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)
     [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.compile(Compiler.java:204)
     [java] at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
     [java] at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
     [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
     [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:125)
     [java] Caused by: java.lang.NoSuchMethodError: com.google.gwt.dev.resource.ResourceOracle.getResourceMap()Ljava/util/Map;
     [java] at com.sencha.gxt.core.rebind.XTemplatesGenerator.getTemplateResource(XTemplatesGenerator.java:171)
     [java] at com.sencha.gxt.core.rebind.XTemplatesGenerator.generate(XTemplatesGenerator.java:110)
     [java] at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
     [java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)
     [java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:103)
     [java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
     [java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
     [java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:251)
     [java] at com.google.gwt.dev.PrecompilationContextCreator$1.getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:519)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:487)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.maybeHandleMagicMethodCall(UnifyAst.java:415)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:402)
     [java] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
     [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] ... 44 more
     [java]       [ERROR] at BlueFieldLabelAppearance.java(33): GWT.create(FieldLabelDefaultAppearance$FieldLabelTemplate.class)
     [java]       [ERROR] at BlueFieldLabelAppearance.java(33): (FieldLabelDefaultAppearance$FieldLabelTemplate) GWT.create(FieldLabelDefaultAppearance$FieldLabelTemplate.class)
     [java]       [ERROR] at BlueFieldLabelAppearance.java(32): this.BlueFieldLabelAppearance.BlueFieldLabelAppearance((BlueFieldLabelAppearance$BlueFieldLabelResources) new BlueFieldLabelAppearance_BlueFieldLabelResources_default_InlineClientBundleGenerator(), (FieldLabelDefaultAppearance$FieldLabelTemplate) GWT.create(FieldLabelDefaultAppearance$FieldLabelTemplate.class))
     [java]       [ERROR] at BlueFieldLabelAppearance.java(32): this.BlueFieldLabelAppearance.BlueFieldLabelAppearance((BlueFieldLabelAppearance$BlueFieldLabelResources) new BlueFieldLabelAppearance_BlueFieldLabelResources_default_InlineClientBundleGenerator(), (FieldLabelDefaultAppearance$FieldLabelTemplate) GWT.create(FieldLabelDefaultAppearance$FieldLabelTemplate.class))
     [java]       [ERROR] at BlueFieldLabelAppearance.java(31): {
     [java]   this.BlueFieldLabelAppearance.BlueFieldLabelAppearance((BlueFieldLabelAppearance$BlueFieldLabelResources) new BlueFieldLabelAppearance_BlueFieldLabelResources_default_InlineClientBundleGenerator(), (FieldLabelDefaultAppearance$FieldLabelTemplate) GWT.create(FieldLabelDefaultAppearance$FieldLabelTemplate.class));
     [java] }
     [java]       [ERROR] at BlueFieldLabelAppearance.java(31): {
     [java]   this.BlueFieldLabelAppearance.BlueFieldLabelAppearance((BlueFieldLabelAppearance$BlueFieldLabelResources) new BlueFieldLabelAppearance_BlueFieldLabelResources_default_InlineClientBundleGenerator(), (FieldLabelDefaultAppearance$FieldLabelTemplate) GWT.create(FieldLabelDefaultAppearance$FieldLabelTemplate.class));
     [java] }
     [java]       [ERROR] at BlueFieldLabelAppearance.java(31): public BlueFieldLabelAppearance();

Thanks,
Gagan

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