Christian Schmitt
2018-03-28 09:00:49 UTC
Hello, currently I'm using Guice 4.1 on AppEngine with Kotlin, when trying
to upgrade to Guice 4.2 I always get the following error:
Caused by:
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.
checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
at com.google.inject.TypeLiteral.getParameterTypes(TypeLiteral.java:269)
at com.google.inject.spi.InjectionPoint.forMember(InjectionPoint.java:
115)
at com.google.inject.spi.InjectionPoint.<init>(InjectionPoint.java:74)
at com.google.inject.spi.InjectionPoint.forMethod(InjectionPoint.java:
318)
at com.google.inject.internal.ProviderMethodsModule.createProviderMethod
(ProviderMethodsModule.java:258)
at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(
ProviderMethodsModule.java:116)
at com.google.inject.internal.ProviderMethodsModule.configure(
ProviderMethodsModule.java:100)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
344)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
353)
at com.google.inject.AbstractModule.install(AbstractModule.java:103)
at com.google.inject.servlet.ServletModule.configure(ServletModule.java:
49)
at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
344)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.
java:137)
at com.google.inject.internal.InternalInjectorCreator.build(
InternalInjectorCreator.java:103)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at de.envisia.systemparken.Main$Companion.createInjector(Main.kt:12)
at de.envisia.systemparken.Main$Companion.access$createInjector(Main.kt:
9)
at de.envisia.systemparken.Main.<clinit>(Main.kt:18)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jetty.server.handler.ContextHandler$Context.
createInstance(ContextHandler.java:2481)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.
newListenerInstance(StandardDescriptorProcessor.java:1944)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(
StandardDescriptorProcessor.java:1899)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(
IterativeDescriptorProcessor.java:83)
at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(
IterativeDescriptorProcessor.java:70)
at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:403)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.
java:1366)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(
ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(
ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522
)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(
ContainerLifeCycle.java:131)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(
ContainerLifeCycle.java:105)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(
AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(
ContainerLifeCycle.java:131)
at org.eclipse.jetty.server.Server.start(Server.java:422)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(
ContainerLifeCycle.java:105)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(
AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:389)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:68)
at com.google.appengine.tools.development.jetty9.JettyContainerService.
startContainer(JettyContainerService.java:346)
at com.google.appengine.tools.development.AbstractContainerService.
startup(AbstractContainerService.java:284)
at com.google.appengine.tools.development.AutomaticInstanceHolder.
startUp(AutomaticInstanceHolder.java:26)
at com.google.appengine.tools.development.AbstractModule.startup(
AbstractModule.java:87)
at com.google.appengine.tools.development.Modules.startup(Modules.java:
105)
at com.google.appengine.tools.development.DevAppServerImpl.doStart(
DevAppServerImpl.java:274)
at com.google.appengine.tools.development.DevAppServerImpl.access$000(
DevAppServerImpl.java:47)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(
DevAppServerImpl.java:219)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(
DevAppServerImpl.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.DevAppServerImpl.start(
DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.
apply(DevAppServerMain.java:368)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.
java:45)
at com.google.appengine.tools.development.DevAppServerMain.run(
DevAppServerMain.java:223)
at com.google.appengine.tools.development.DevAppServerMain.main(
DevAppServerMain.java:214)
This looks like a problem with Guava (currently I use 22.0) Guice 4.2
however needs at least 23.6-jre/android I actually tried 23.6-jre, 24.0-jre
and 24.1-jre with no luck, the AppEngine DevServer will always fail with
the following Error.
My Modules are pretty simple I could even post them.
to upgrade to Guice 4.2 I always get the following error:
Caused by:
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.
checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
at com.google.inject.TypeLiteral.getParameterTypes(TypeLiteral.java:269)
at com.google.inject.spi.InjectionPoint.forMember(InjectionPoint.java:
115)
at com.google.inject.spi.InjectionPoint.<init>(InjectionPoint.java:74)
at com.google.inject.spi.InjectionPoint.forMethod(InjectionPoint.java:
318)
at com.google.inject.internal.ProviderMethodsModule.createProviderMethod
(ProviderMethodsModule.java:258)
at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(
ProviderMethodsModule.java:116)
at com.google.inject.internal.ProviderMethodsModule.configure(
ProviderMethodsModule.java:100)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
344)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
353)
at com.google.inject.AbstractModule.install(AbstractModule.java:103)
at com.google.inject.servlet.ServletModule.configure(ServletModule.java:
49)
at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
344)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.
java:137)
at com.google.inject.internal.InternalInjectorCreator.build(
InternalInjectorCreator.java:103)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at de.envisia.systemparken.Main$Companion.createInjector(Main.kt:12)
at de.envisia.systemparken.Main$Companion.access$createInjector(Main.kt:
9)
at de.envisia.systemparken.Main.<clinit>(Main.kt:18)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jetty.server.handler.ContextHandler$Context.
createInstance(ContextHandler.java:2481)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.
newListenerInstance(StandardDescriptorProcessor.java:1944)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(
StandardDescriptorProcessor.java:1899)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(
IterativeDescriptorProcessor.java:83)
at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(
IterativeDescriptorProcessor.java:70)
at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:403)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.
java:1366)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(
ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(
ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522
)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(
ContainerLifeCycle.java:131)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(
ContainerLifeCycle.java:105)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(
AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(
ContainerLifeCycle.java:131)
at org.eclipse.jetty.server.Server.start(Server.java:422)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(
ContainerLifeCycle.java:105)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(
AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:389)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:68)
at com.google.appengine.tools.development.jetty9.JettyContainerService.
startContainer(JettyContainerService.java:346)
at com.google.appengine.tools.development.AbstractContainerService.
startup(AbstractContainerService.java:284)
at com.google.appengine.tools.development.AutomaticInstanceHolder.
startUp(AutomaticInstanceHolder.java:26)
at com.google.appengine.tools.development.AbstractModule.startup(
AbstractModule.java:87)
at com.google.appengine.tools.development.Modules.startup(Modules.java:
105)
at com.google.appengine.tools.development.DevAppServerImpl.doStart(
DevAppServerImpl.java:274)
at com.google.appengine.tools.development.DevAppServerImpl.access$000(
DevAppServerImpl.java:47)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(
DevAppServerImpl.java:219)
at com.google.appengine.tools.development.DevAppServerImpl$1.run(
DevAppServerImpl.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.DevAppServerImpl.start(
DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.
apply(DevAppServerMain.java:368)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.
java:45)
at com.google.appengine.tools.development.DevAppServerMain.run(
DevAppServerMain.java:223)
at com.google.appengine.tools.development.DevAppServerMain.main(
DevAppServerMain.java:214)
This looks like a problem with Guava (currently I use 22.0) Guice 4.2
however needs at least 23.6-jre/android I actually tried 23.6-jre, 24.0-jre
and 24.1-jre with no luck, the AppEngine DevServer will always fail with
the following Error.
My Modules are pretty simple I could even post them.
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+***@googlegroups.com.
To post to this group, send email to google-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/7e9989a2-875a-4b31-9154-a961995a660a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+***@googlegroups.com.
To post to this group, send email to google-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/7e9989a2-875a-4b31-9154-a961995a660a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.