upgrading to gwtp 1.4 and gwt 2.7.0... running into ClassNotFoundException: com.google.inject.internal.util.$ImmutableList

126 views
Skip to first unread message

adam

unread,
Feb 4, 2015, 2:51:18 AM2/4/15
to gwt-pl...@googlegroups.com
I was wondering if anyone has run into this when upgrading to 2.7.0 and gwtp 1.4?

The conflict appears to be tied to the DispatchRest module.

[INFO] Compiling module com.jorsek.AppServer
[INFO]    Ignored 8 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO]    [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.visitChildren(JMethodCall.java:253)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:246)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
[INFO] at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
[INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:206)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:158)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
[INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:127)
[INFO] Caused by: java.lang.NoClassDefFoundError: Lcom/google/inject/internal/util/$ImmutableList;
[INFO] at java.lang.Class.getDeclaredFields0(Native Method)
[INFO] at java.lang.Class.privateGetDeclaredFields(Class.java:2570)
[INFO] at java.lang.Class.getDeclaredFields(Class.java:1903)
[INFO] at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661)
[INFO] at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
[INFO] at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:385)
[INFO] at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:110)
[INFO] at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:100)
[INFO] at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:43)
[INFO] at com.google.inject.multibindings.Multibinder$RealMultibinder.configure(Multibinder.java:269)
[INFO] at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:259)
[INFO] at com.google.inject.multibindings.Multibinder.newSetBinder(Multibinder.java:115)
[INFO] at com.google.inject.multibindings.Multibinder.newSetBinder(Multibinder.java:124)
[INFO] at com.gwtplatform.dispatch.rest.rebind.action.ActionModule.addActionGenerator(ActionModule.java:28)
[INFO] at com.gwtplatform.dispatch.rest.rebind.action.ActionModule.configure(ActionModule.java:33)
[INFO] at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
[INFO] at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:259)
[INFO] at com.google.inject.AbstractModule.install(AbstractModule.java:122)
[INFO] at com.gwtplatform.dispatch.rest.rebind.DispatchRestRebindModule.configure(DispatchRestRebindModule.java:58)
[INFO] at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
[INFO] at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:259)
[INFO] at com.google.inject.spi.Elements.getElements(Elements.java:109)
[INFO] at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
[INFO] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
[INFO] at com.google.inject.Guice.createInjector(Guice.java:96)
[INFO] at com.gwtplatform.dispatch.rest.rebind.DispatchRestIncrementalGenerator.createInjector(DispatchRestIncrementalGenerator.java:89)
[INFO] at com.gwtplatform.dispatch.rest.rebind.DispatchRestIncrementalGenerator.generateIncrementally(DispatchRestIncrementalGenerator.java:66)
[INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:754)
[INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)
[INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
[INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
[INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
[INFO] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)
[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)
[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)
[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)
[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] ... 46 more
[INFO] Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.util.$ImmutableList
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[INFO] ... 86 more
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): GWT.create(DispatchRestEntryPoint.class)
[INFO]          com.google.gwt.dev.jjs.ast.JMethodCall
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): (EntryPoint) GWT.create(DispatchRestEntryPoint.class)
[INFO]          com.google.gwt.dev.jjs.ast.JCastOperation
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): ((EntryPoint) GWT.create(DispatchRestEntryPoint.class)).onModuleLoad()
[INFO]          com.google.gwt.dev.jjs.ast.JMethodCall
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): ((EntryPoint) GWT.create(DispatchRestEntryPoint.class)).onModuleLoad()
[INFO]          com.google.gwt.dev.jjs.ast.JExpressionStatement
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): {
[INFO]   ((EntryPoint) new UserAgentAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) new DocumentModeAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) new LogConfiguration()).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(DispatchRestEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(ApplicationController.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(GwtBootstrap3EntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(SelectEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(ToggleSwitchEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(RaphaelEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(GRaphaelEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(RaphyChartsEntryPoint.class)).onModuleLoad();
[INFO] }
[INFO]          com.google.gwt.dev.jjs.ast.JBlock
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): {
[INFO]   ((EntryPoint) new UserAgentAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) new DocumentModeAsserter()).onModuleLoad();
[INFO]   ((EntryPoint) new LogConfiguration()).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(DispatchRestEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(ApplicationController.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(GwtBootstrap3EntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(SelectEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(ToggleSwitchEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(RaphaelEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(GRaphaelEntryPoint.class)).onModuleLoad();
[INFO]   ((EntryPoint) GWT.create(RaphyChartsEntryPoint.class)).onModuleLoad();
[INFO] }
[INFO]          com.google.gwt.dev.jjs.ast.JMethodBody
[INFO]       [ERROR] at com_00046jorsek_00046AppServer__EntryMethodHolder.java(3): public static final void init();
[INFO] 
[INFO]          com.google.gwt.dev.jjs.ast.JMethod
[INFO] ------------------------------------------------------------------------

Richard Wallis

unread,
Feb 4, 2015, 3:02:17 AM2/4/15
to gwt-pl...@googlegroups.com
GWTP 1.4 no longer has guava as a dependency.

You need to add the guava jars to your classpath or as a dependency in maven.

--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adam

unread,
Feb 4, 2015, 12:38:15 PM2/4/15
to gwt-pl...@googlegroups.com
Thanks for the quick response.  We actually had the guava dependencies, but your reply helped to point me in the right direction.

I needed to add the guice-multibindings dependency

        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-multibindings</artifactId>
        </dependency>

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages