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)

Google Groups | shekhar | 7 years ago
  1. 0

    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

    Google Groups | 7 years ago | shekhar
    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)
  2. 0

    Issue 28 - datanucleus-appengine - Cannot add child to existing one-to-many if parent has Long or unencoded String pk - DataNucleus plugin for Google App Engine - Google Project Hosting

    google.com | 1 year ago
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.datanucleus.store.appengine.DatastoreFieldManager.getIdForObject(DatastoreFieldManager.java:565) at org.datanucleus.store.appengine.DatastoreFieldManager.getParentKeyFromExternalFKMappings(DatastoreFieldManager.java:589) at org.datanucleus.store.appengine.DatastoreFieldManager.establishEntityGroup(DatastoreFieldManager.java:545) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:182) at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManagerImpl.java:3067) at org.datanucleus.state.JDOStateManagerImpl.makePersistent(JDOStateManagerImpl.java:3043) at org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1258)
  3. 0

    squeezebox actions

    Google Groups | 3 years ago | Greg
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.eclipse.equinox.console.commands.EquinoxCommandsConverter.convert(EquinoxCommandsConverter.java:61)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse Community Forums: Equinox ยป 2 versions of log4j-core.jar

    eclipse.org | 8 months ago
    java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to org.apache.log4j.Appender at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfig urator.java:165) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMC onfigurator.java:140) at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference (DOMConfigurator.java:153) at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerEl ement(DOMConfigurator.java:415) at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurat or.java:384) at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.j ava:783) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigur ator.java:666) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigur ator.java:616) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigur ator.java:584) at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator. java:815) at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(File Watchdog.java:80)
  6. 0

    ArrayList Entity property mystery using 'Integer' objects

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at jFormTKServlets.JFormTKServletsServlet.doGet( JFormTKServletsServlet.java:330)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.shekhar.interview
      QuestionDAO.findAll
      1. com.shekhar.interview.dao.QuestionDAO.findAll(QuestionDAO.java:45)
      1 frame