Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by shekhar, 1 year ago
java.lang.Long cannot be cast to > > java.lang.String at > > org.datanucleus.store.appengine.DatastoreFieldManager.fetchObjectField > > (DatastoreFieldManager.java:307) at org.datanucleus.state.AbstractStateManager.replacingObjectField
java.lang.ClassCastException: java.lang.Long cannot be cast to
> java.lang.String
 at
> org.datanucleus.store.appengine.DatastoreFieldManager.fetchObjectField
> (DatastoreFieldManager.java:307)
 at org.datanucleus.state.AbstractStateManager.replacingObjectField
> (AbstractStateManager.java:1197)
 at com.shekhar.interview.entity.Question.jdoReplaceField
> (Question.java)
 at com.shekhar.interview.entity.Question.jdoReplaceFields
> (Question.java)
 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:349)
 at org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo
> (DatastoreQuery.java:384)
 at org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo
> (DatastoreQuery.java:345)
 at org.datanucleus.store.appengine.query.DatastoreQuery.access$700
> (DatastoreQuery.java:96)
 at org.datanucleus.store.appengine.query.DatastoreQuery$5.apply
> (DatastoreQuery.java:454)
 at org.datanucleus.store.appengine.query.DatastoreQuery$5.apply
> (DatastoreQuery.java:453)
 at
> org.datanucleus.store.appengine.query.StreamingQueryResult.resolveNext
> (StreamingQueryResult.java:137)
 at org.datanucleus.store.appengine.query.StreamingQueryResult.size
> (StreamingQueryResult.java:174)	at com.shekhar.interview.dao.QuestionDAO.findAll(QuestionDAO.java:45)