NoClassDef ReadPolicy$Consistency? (was Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException)
I just upgraded - thanks for the amazingly quick turnaround on my bug btw!! Unfortunately, I'm now getting java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/ReadPolicy$Consistency at com.googlecode.objectify.ObjectifyOpts.init(ObjectifyOpts.java:25) at com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:105) at com.googlecode.objectify.ObjectifyService.begin(ObjectifyService.java:29) I thought it might be because I was using a slightly older version of the AppEngine, so I updated that to 1.3.3, but still get the same result. Now my assumption is that there's something wrong with my configuration (I'm missing a jar I need?) but don't know which one. Can anyone tell me what jar com/google/appengine/api/datastore/ReadPolicy$Consistency is in? On Wed, Apr 21, 2010 at 11:10 PM, Jeff Schnitzer j...@infohazard.orgwrote: Fixed. Although you might prefer to issue a batch get() operation instead of the query. There might be a performance difference - I'm not sure. Jeff On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer j...@infohazard.org wrote: Looks like you found a bug. I should be able to have a unit test and a fix checked in tonight. Sorry about that! Jeff On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com wrote: Hi, I'm trying to pass in a collection of Strings to be used in a filter using Objectify (which I LOVE, btw). I'm doing it like so: QuerySNote query = ofy.query(SNote.class).filter(id IN, results).limit(limit).offset(offset).order(-timestamp); where the results parameter is a non-empty ArrayListString. I'm getting the exception: 64951 [btpool0-4] ERROR com.deathrayresearch - java.lang.IllegalArgumentException: A collection of values is required. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153) at com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543) at com.google.appengine.api.datastore.Query.addFilter(Query.java:231) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28) The id parameter contains Strings and I think an ArrayListString qualifies as a collection of values. Can anyone tell me what I'm doing wrong? thanks much Larry -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: NoClassDef ReadPolicy$Consistency? (was Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException)
It's in appengine-api-1.0-sdk-1.3.2.jar (or presumably 1.3.3)... it's hard to imagine your project compiles without it! Jeff On Thu, Apr 22, 2010 at 5:31 AM, Larry White ljw1...@gmail.com wrote: I just upgraded - thanks for the amazingly quick turnaround on my bug btw!! Unfortunately, I'm now getting java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/ReadPolicy$Consistency at com.googlecode.objectify.ObjectifyOpts.init(ObjectifyOpts.java:25) at com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:105) at com.googlecode.objectify.ObjectifyService.begin(ObjectifyService.java:29) I thought it might be because I was using a slightly older version of the AppEngine, so I updated that to 1.3.3, but still get the same result. Now my assumption is that there's something wrong with my configuration (I'm missing a jar I need?) but don't know which one. Can anyone tell me what jar com/google/appengine/api/datastore/ReadPolicy$Consistency is in? On Wed, Apr 21, 2010 at 11:10 PM, Jeff Schnitzer j...@infohazard.org wrote: Fixed. Although you might prefer to issue a batch get() operation instead of the query. There might be a performance difference - I'm not sure. Jeff On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer j...@infohazard.org wrote: Looks like you found a bug. I should be able to have a unit test and a fix checked in tonight. Sorry about that! Jeff On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com wrote: Hi, I'm trying to pass in a collection of Strings to be used in a filter using Objectify (which I LOVE, btw). I'm doing it like so: QuerySNote query = ofy.query(SNote.class).filter(id IN, results).limit(limit).offset(offset).order(-timestamp); where the results parameter is a non-empty ArrayListString. I'm getting the exception: 64951 [btpool0-4] ERROR com.deathrayresearch - java.lang.IllegalArgumentException: A collection of values is required. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153) at com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543) at com.google.appengine.api.datastore.Query.addFilter(Query.java:231) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28) The id parameter contains Strings and I think an ArrayListString qualifies as a collection of values. Can anyone tell me what I'm doing wrong? thanks much Larry -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: NoClassDef ReadPolicy$Consistency? (was Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException)
Ok, So I can reliably recreate the issue. My app works fine with Objectify 2.02 and 2.1 but fails on the first DB read with 2.2. Any help would be appreciated. On Thu, Apr 22, 2010 at 12:36 PM, Jeff Schnitzer j...@infohazard.orgwrote: It's in appengine-api-1.0-sdk-1.3.2.jar (or presumably 1.3.3)... it's hard to imagine your project compiles without it! Jeff On Thu, Apr 22, 2010 at 5:31 AM, Larry White ljw1...@gmail.com wrote: I just upgraded - thanks for the amazingly quick turnaround on my bug btw!! Unfortunately, I'm now getting java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/ReadPolicy$Consistency at com.googlecode.objectify.ObjectifyOpts.init(ObjectifyOpts.java:25) at com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:105) at com.googlecode.objectify.ObjectifyService.begin(ObjectifyService.java:29) I thought it might be because I was using a slightly older version of the AppEngine, so I updated that to 1.3.3, but still get the same result. Now my assumption is that there's something wrong with my configuration (I'm missing a jar I need?) but don't know which one. Can anyone tell me what jar com/google/appengine/api/datastore/ReadPolicy$Consistency is in? On Wed, Apr 21, 2010 at 11:10 PM, Jeff Schnitzer j...@infohazard.org wrote: Fixed. Although you might prefer to issue a batch get() operation instead of the query. There might be a performance difference - I'm not sure. Jeff On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer j...@infohazard.org wrote: Looks like you found a bug. I should be able to have a unit test and a fix checked in tonight. Sorry about that! Jeff On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com wrote: Hi, I'm trying to pass in a collection of Strings to be used in a filter using Objectify (which I LOVE, btw). I'm doing it like so: QuerySNote query = ofy.query(SNote.class).filter(id IN, results).limit(limit).offset(offset).order(-timestamp); where the results parameter is a non-empty ArrayListString. I'm getting the exception: 64951 [btpool0-4] ERROR com.deathrayresearch - java.lang.IllegalArgumentException: A collection of values is required. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153) at com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543) at com.google.appengine.api.datastore.Query.addFilter(Query.java:231) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28) The id parameter contains Strings and I think an ArrayListString qualifies as a collection of values. Can anyone tell me what I'm doing wrong? thanks much Larry -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe
Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException
Looks like you found a bug. I should be able to have a unit test and a fix checked in tonight. Sorry about that! Jeff On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com wrote: Hi, I'm trying to pass in a collection of Strings to be used in a filter using Objectify (which I LOVE, btw). I'm doing it like so: QuerySNote query = ofy.query(SNote.class).filter(id IN, results).limit(limit).offset(offset).order(-timestamp); where the results parameter is a non-empty ArrayListString. I'm getting the exception: 64951 [btpool0-4] ERROR com.deathrayresearch - java.lang.IllegalArgumentException: A collection of values is required. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153) at com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543) at com.google.appengine.api.datastore.Query.addFilter(Query.java:231) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28) The id parameter contains Strings and I think an ArrayListString qualifies as a collection of values. Can anyone tell me what I'm doing wrong? thanks much Larry -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException
Fixed. Although you might prefer to issue a batch get() operation instead of the query. There might be a performance difference - I'm not sure. Jeff On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer j...@infohazard.org wrote: Looks like you found a bug. I should be able to have a unit test and a fix checked in tonight. Sorry about that! Jeff On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com wrote: Hi, I'm trying to pass in a collection of Strings to be used in a filter using Objectify (which I LOVE, btw). I'm doing it like so: QuerySNote query = ofy.query(SNote.class).filter(id IN, results).limit(limit).offset(offset).order(-timestamp); where the results parameter is a non-empty ArrayListString. I'm getting the exception: 64951 [btpool0-4] ERROR com.deathrayresearch - java.lang.IllegalArgumentException: A collection of values is required. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153) at com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543) at com.google.appengine.api.datastore.Query.addFilter(Query.java:231) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102) at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28) The id parameter contains Strings and I think an ArrayListString qualifies as a collection of values. Can anyone tell me what I'm doing wrong? thanks much Larry -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.