Saturday, October 7, 2017

Issue compiling a GWT project that uses Dagger 2.5

Hi, 

I have two versions of the same project, one with dagger and the other without Dagger. the one without Dagger compiles and runs fine. When I try to run the version with Dagger, I get the following error at compile time:

Here is the repository of the project for more details: https://github.com/gwidgets/gwt-polymer-starter-kit/tree/master/gwt-polymer-starter-kit-with-di

```
[INFO] Super Dev Mode starting up
[INFO]    workDir: /tmp/gwt-codeserver-7410835774283478740.tmp
[ERROR] 2017-10-07 16:51:07.170:INFO::main: Logging initialized @2951ms
[INFO]    Loading Java files in com.gwidgets.polymerstarter.
[ERROR] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3944)
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1567)
[ERROR] at org.eclipse.jdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:1018)
[ERROR] at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse(LocalDeclaration.java:307)
[ERROR] at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:347)
[ERROR] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1379)
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3887)
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3918)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
[ERROR] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
[ERROR] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
[ERROR] at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1092)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
[ERROR] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[ERROR] at com.google.gwt.dev.codeserver.Recompiler.initWithoutPrecompile(Recompiler.java:213)
[ERROR] at com.google.gwt.dev.codeserver.Outbox.maybePrecompile(Outbox.java:89)
[ERROR] at com.google.gwt.dev.codeserver.Outbox.<init>(Outbox.java:61)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.makeOutboxTable(CodeServer.java:191)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:150)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:102)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
[ERROR] at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
[ERROR] at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:664)
[ERROR] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:810)
[ERROR] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:549)
[ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913)
[ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
[ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:430)
[ERROR] Caused by: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.ast.MessageSend.binding()Lorg/eclipse/jdt/internal/compiler/lookup/MethodBinding;
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.isUncheckedGenericMethodCall(GwtAstBuilder.java:4167)
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.access$1400(GwtAstBuilder.java:249)
[ERROR] at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1560)
[ERROR] ... 34 more
```

Anybody has encountred this before? 

Thanks in advance. 

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