I replaced String with Text for one field. And when searching for old data, 
it came back with below exception. And idea? Based on 
http://groups.google.com/group/google-appengine/browse_thread/thread/282dc825f9c46684,
 
it should have no problem.

<stderr>: java.lang.ClassCastException: java.lang.String cannot be cast to 
com.google.appengine.api.datastore.Text
        at XXX.jdoReplaceField
        at XXX.jdoReplaceFields
        at 
org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl.java:2772)
        at 
org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl.java:2791)
        at 
org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject(DatastorePersistenceHandler.java:519)
        at 
org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(DatastoreQuery.java:649)
        at 
org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(DatastoreQuery.java:603)
        at 
org.datanucleus.store.appengine.query.DatastoreQuery.access$300(DatastoreQuery.java:119)
        at 
org.datanucleus.store.appengine.query.DatastoreQuery$6.apply(DatastoreQuery.java:783)
        at 
org.datanucleus.store.appengine.query.DatastoreQuery$6.apply(DatastoreQuery.java:774)
        at 
org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java:94)
        at 
org.datanucleus.store.appengine.query.LazyResult$LazyAbstractListIterator.computeNext(LazyResult.java:215)
        at 
org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java:132)
        at 
org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java:127)
        at 
org.datanucleus.store.appengine.query.LazyResult$AbstractListIterator.hasNext(LazyResult.java:169)

-- 
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/-/0K5GRW1ZqRAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to