Hi Emanuele, What is your app-id?
On Wed, Aug 22, 2012 at 10:32 AM, Emanuele Ziglioli < [email protected]> wrote: > This is a different stack trace for the same error (not sure why I see > different stack traces) > > HTTP ERROR 500 > > Problem accessing /. Reason: > > Could not initialize class com.google.apphosting.api.DatastorePb$Query > > Caused by: > > java.lang.NoClassDefFoundError: Could not initialize class > com.google.apphosting.api.DatastorePb$Query > > at > com.google.appengine.api.datastore.QueryTranslator.convertToPb(QueryTranslator.java:28) > > at > com.google.appengine.api.datastore.PreparedQueryImpl.convertToPb(PreparedQueryImpl.java:181) > > at > com.google.appengine.api.datastore.PreparedQueryImpl.runQuery(PreparedQueryImpl.java:134) > > at > com.google.appengine.api.datastore.PreparedQueryImpl.asIterator(PreparedQueryImpl.java:66) > > at > com.google.appengine.api.datastore.BasePreparedQuery$1.iterator(BasePreparedQuery.java:26) > > at org.vosao.dao.BaseDaoImpl.selectNotCache(BaseDaoImpl.java:278) > > > On Wednesday, 22 August 2012 13:26:59 UTC+12, Emanuele Ziglioli wrote: >> >> I'm experiencing an exception with the new SDK. It looks like what's >> described in this old post: >> https://groups.google.com/**forum/?fromgroups=#!msg/** >> google-appengine-java/**xiDijH7S8Ow/udo8DPEjtR0J<https://groups.google.com/forum/?fromgroups=#!msg/google-appengine-java/xiDijH7S8Ow/udo8DPEjtR0J> >> >> java.lang.**NoClassDefFoundError: Could not initialize class >> com.google.apphosting.api.**DatastorePb$Query >> >> Here's the API call that causes the error PreparedQuery.**asIterable(): >> >> PreparedQuery p = getDatastore().prepare(query); >>> List<Entity> entities = new ArrayList<Entity>(); >>> for (Entity entity : p.asIterable(FetchOptions.** >>> Builder.withChunkSize(CHUNK_**SIZE))) { >>> entities.add(entity); >>> } >> >> >> And the Stack Trace: >> >>> Problem accessing /. Reason: >>> tried to access class com.google.appengine.** >>> repackaged.com.google.common.**base.Equivalences from class >>> com.google.appengine.**repackaged.com.google.common.**collect.Interners$ >>> **CustomInterner >>> Caused by: >>> java.lang.IllegalAccessError: tried to access class com.google.appengine. >>> **repackaged.com.google.common.**base.Equivalences from class >>> com.google.appengine.**repackaged.com.google.common.**collect.Interners$ >>> **CustomInterner >>> at com.google.appengine.**repackaged.com.google.common.** >>> collect.Interners$**CustomInterner.<init>(**Interners.java:77) >>> at com.google.appengine.**repackaged.com.google.common.** >>> collect.Interners.**newWeakInterner(Interners.**java:118) >>> at com.google.appengine.**repackaged.com.google.io.** >>> protocol.ProtocolSupport.<**clinit>(ProtocolSupport.java:**55) >>> at com.google.apphosting.api.**DatastorePb$Query.<init>(** >>> DatastorePb.java:1248) >>> at com.google.apphosting.api.**DatastorePb$Query$1.<init>(** >>> DatastorePb.java:2988) >>> at com.google.apphosting.api.**DatastorePb$Query.<clinit>(** >>> DatastorePb.java:2988) >>> at com.google.appengine.api.**datastore.QueryTranslator.** >>> convertToPb(QueryTranslator.**java:28) >>> at com.google.appengine.api.**datastore.PreparedQueryImpl.** >>> convertToPb(PreparedQueryImpl.**java:181) >>> at com.google.appengine.api.**datastore.PreparedQueryImpl.** >>> runQuery(PreparedQueryImpl.**java:134) >>> at com.google.appengine.api.**datastore.PreparedQueryImpl.** >>> asIterator(PreparedQueryImpl.**java:66) >>> at com.google.appengine.api.**datastore.BasePreparedQuery$1.** >>> iterator(BasePreparedQuery.**java:26) >>> at org.vosao.dao.BaseDaoImpl.**selectNotCache(BaseDaoImpl.**java:278) >> >> >> >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine/-/l21MkBL5dZEJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Takashi Matsuo | Developers Advocate | [email protected] -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
