On Google App Engine,

When attempting to do the following in a Module:

    .toProvider(new Provider<Query>(){
      public Query get() {
        return new Query(Person.kind);

I get the following error:

1) Error in custom provider, java.lang.NullPointerException: No API
environment is registered for this thread.
  while locating com.google.appengine.api.datastore.Query annotated
with @com.google.inject.name.Named(value=PersonQuery)

Is Guice unable to use the Google App Engine API Environment?



You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to google-gu...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to