Comment on GoogleAppEngine in google-guice

49 views
Skip to first unread message

google...@googlecode.com

unread,
May 13, 2011, 5:17:00 PM5/13/11
to google-g...@googlegroups.com

google...@googlecode.com

unread,
May 29, 2011, 2:06:24 AM5/29/11
to google-g...@googlegroups.com
Comment by JasonThr...@gmail.com:

Should probably add this to the docs above:

== App Engine Log Errors ==

App Engine will throw a {{{java.lang.reflect.InvocationTargetException}}}
when your App Engine projects starts because it tries to register a
finalizer. This is not allowed in the App Engine environment, and it is
benign to see this error: Guice will continue working normally. See:
http://code.google.com/p/google-guice/issues/detail?id=488

Note that App Engine's log output will register these errors at the
{{{INFO}}} level as:

{{{
I 2011-05-28 22:08:58.194
com.google.inject.internal.util.$FinalizableReferenceQueue$SystemLoader
loadFinalizer: Not allowed to access system class loader.
I 2011-05-28 22:08:58.258
com.google.inject.internal.util.$FinalizableReferenceQueue <init>: Failed
to start reference finalizer thread. Reference cleanup will only occur when
new references are created.
java.lang.reflect.InvocationTargetException
at
com.google.appengine.runtime.Request.process-00f20a346f2e6269(Request.java)
...

google...@googlecode.com

unread,
Feb 5, 2012, 12:04:47 PM2/5/12
to google-g...@googlegroups.com
Comment by dougande...@gmail.com:

Now that Guice 3.0 is out, is App Engine compatible with Guice 3.0?

google...@googlecode.com

unread,
Mar 12, 2012, 11:32:40 PM3/12/12
to google-g...@googlegroups.com
Comment by vec...@gmail.com:

yes, I use guice 3.0 with latest GAE version

google...@googlecode.com

unread,
Mar 29, 2012, 3:18:41 PM3/29/12
to google-g...@googlegroups.com
Comment by kartik...@gmail.com:

Hey I am getting the following error

Uncaught exception from servlet
java.lang.NoClassDefFoundError: javax/inject/Provider
at
com.google.inject.internal.MoreTypes.canonicalizeForKey(MoreTypes.java:81)
at com.google.inject.Key.<init>(Key.java:119)
at com.google.inject.Key.get(Key.java:212)
at com.google.inject.spi.Elements$RecordingBinder.bind(Elements.java:262)
at
com.google.inject.internal.InjectorShell$RootModule.configure(InjectorShell.java:276)
at
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at
com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
at
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
I have followed all the instructions as is.
Can you tell me where I am going wrong.

Christian Edward Gruber

unread,
Mar 29, 2012, 4:56:08 PM3/29/12
to google-g...@googlegroups.com
Have you included the JSR-330 jar into your app? How are you building your ultimate WAR for app engine deployment?

Christian.

> --
> You received this message because you are subscribed to the Google Groups "google-guice-dev" group.
> To post to this group, send email to google-g...@googlegroups.com.
> To unsubscribe from this group, send email to google-guice-d...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
>

google...@googlecode.com

unread,
Mar 29, 2012, 5:11:24 PM3/29/12
to google-g...@googlegroups.com
Comment by cgruberatgoog:

If you're using JSR-330 annotations (javax.inject) then you need to include
that Jar as well, or it won't be in the classpath as you see above.

google...@googlecode.com

unread,
May 7, 2013, 4:24:36 PM5/7/13
to google-g...@googlegroups.com
Comment by alexande...@teamdev.com:

This page hasn't been updated since mid October 2011. As the comment from
March 2012 says, Guice 3.0 works with GAE for the comment author.

Is Guice 3.0 under GAE officially supported?

For more information:
https://code.google.com/p/google-guice/wiki/GoogleAppEngine

google...@googlecode.com

unread,
Jun 15, 2013, 6:14:08 PM6/15/13
to google-g...@googlegroups.com
Comment by icyerasor:

If you want to use "Google Cloud Endpoints" AND Guice, it seems like you
have to extend a
GuiceSystemServiceServletModule
and register the Endpoints like this:
protected void configureServlets() {
Set<Class<?>> serviceClasses = new HashSet<Class<?>>();
serviceClasses.add(Endpoint1.class);
serviceClasses.add(Endpoint2.class);
this.serveGuiceSystemServiceServlet("/_ah/spi/*", serviceClasses);
}
Took me like forever to figure that out, why doesn't it say that anywhere!?
Reply all
Reply to author
Forward
0 new messages