java.lang.NullPointerException

GitHub | damithc | 4 months ago
  1. 0

    NullPointerException when storing an array of (key) objects

    Google Groups | 7 years ago | Draško
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NullPointerException

      No message provided

      at com.google.storage.onestore.v3.OnestoreEntity$PropertyValue.setStringValue()
    2. Google AppEngine
      DatastoreServiceImpl.put
      1. com.google.storage.onestore.v3.OnestoreEntity$PropertyValue.setStringValue(OnestoreEntity.java:3411)
      2. com.google.appengine.api.datastore.DataTypeTranslator$BaseStringType.toV3Value(DataTypeTranslator.java:751)
      3. com.google.appengine.api.datastore.DataTypeTranslator$TextType.toV3Value(DataTypeTranslator.java:1575)
      4. com.google.appengine.api.datastore.DataTypeTranslator.addPropertyToPb(DataTypeTranslator.java:215)
      5. com.google.appengine.api.datastore.DataTypeTranslator.addPropertiesToPb(DataTypeTranslator.java:162)
      6. com.google.appengine.api.datastore.EntityTranslator.convertToPb(EntityTranslator.java:62)
      7. com.google.appengine.api.datastore.AsyncDatastoreServiceImpl$4.toPb(AsyncDatastoreServiceImpl.java:178)
      8. com.google.appengine.api.datastore.AsyncDatastoreServiceImpl$4.toPb(AsyncDatastoreServiceImpl.java:155)
      9. com.google.appengine.api.datastore.Batcher$BatchIterator.<init>(Batcher.java:180)
      10. com.google.appengine.api.datastore.Batcher$2.<init>(Batcher.java:317)
      11. com.google.appengine.api.datastore.Batcher.getBatches(Batcher.java:317)
      12. com.google.appengine.api.datastore.AsyncDatastoreServiceImpl.doBatchPut(AsyncDatastoreServiceImpl.java:365)
      13. com.google.appengine.api.datastore.BaseAsyncDatastoreServiceImpl.put(BaseAsyncDatastoreServiceImpl.java:293)
      14. com.google.appengine.api.datastore.BaseAsyncDatastoreServiceImpl$4.runInternal(BaseAsyncDatastoreServiceImpl.java:261)
      15. com.google.appengine.api.datastore.TransactionRunner.runWriteInTransaction(TransactionRunner.java:53)
      16. com.google.appengine.api.datastore.BaseAsyncDatastoreServiceImpl.put(BaseAsyncDatastoreServiceImpl.java:263)
      17. com.google.appengine.api.datastore.BaseAsyncDatastoreServiceImpl.put(BaseAsyncDatastoreServiceImpl.java:234)
      18. com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:56)
      18 frames
    3. org.datanucleus.store
      DatastorePersistenceHandler.updateObject
      1. org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.put(RuntimeExceptionWrappingDatastoreService.java:96)
      2. org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:196)
      3. org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:149)
      4. org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:144)
      5. org.datanucleus.store.appengine.DatastorePersistenceHandler.updateObject(DatastorePersistenceHandler.java:575)
      5 frames
    4. DataNucleus Core
      ObjectManagerImpl.close
      1. org.datanucleus.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:4576)
      2. org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:2814)
      3. org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:2754)
      4. org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:2893)
      5. org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:369)
      6. org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
      7. org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:801)
      7 frames
    5. DataNucleus Enhancer
      JDOPersistenceManager.close
      1. org.datanucleus.jdo.JDOPersistenceManager.close(JDOPersistenceManager.java:271)
      1 frame
    6. teammates.storage.api
      FeedbackQuestionsDb.updateFeedbackQuestion
      1. teammates.storage.api.FeedbackQuestionsDb.updateFeedbackQuestion(FeedbackQuestionsDb.java:206)
      2. teammates.storage.api.FeedbackQuestionsDb.updateFeedbackQuestion(FeedbackQuestionsDb.java:160)
      2 frames
    7. teammates.logic.core
      FeedbackQuestionsLogic.updateFeedbackQuestionNumber
      1. teammates.logic.core.FeedbackQuestionsLogic.updateFeedbackQuestion(FeedbackQuestionsLogic.java:610)
      2. teammates.logic.core.FeedbackQuestionsLogic.updateFeedbackQuestion(FeedbackQuestionsLogic.java:586)
      3. teammates.logic.core.FeedbackQuestionsLogic.updateFeedbackQuestionNumber(FeedbackQuestionsLogic.java:515)
      3 frames
    8. teammates.logic.api
      Logic.updateFeedbackQuestionNumber
      1. teammates.logic.api.Logic.updateFeedbackQuestionNumber(Logic.java:1734)
      1 frame
    9. teammates.ui.controller
      ControllerServlet.doPost
      1. teammates.ui.controller.InstructorFeedbackQuestionEditAction.editQuestion(InstructorFeedbackQuestionEditAction.java:96)
      2. teammates.ui.controller.InstructorFeedbackQuestionEditAction.execute(InstructorFeedbackQuestionEditAction.java:52)
      3. teammates.ui.controller.Action.executeAndPostProcess(Action.java:344)
      4. teammates.ui.controller.ControllerServlet.doPost(ControllerServlet.java:64)
      4 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    11. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      2 frames
    12. teammates.storage.datastore
      DatastoreFilter.doFilter
      1. teammates.storage.datastore.DatastoreFilter.doFilter(DatastoreFilter.java:29)
      1 frame
    13. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    14. Google AppEngine
      AppstatsFilter.doFilter
      1. com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:143)
      1 frame
    15. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    16. Google AppEngine
      ParseBlobUploadFilter.doFilter
      1. com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
      1 frame
    17. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    18. com.google.apphosting
      SaveSessionFilter.doFilter
      1. com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:37)
      1 frame
    19. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    20. Google AppEngine
      JdbcMySqlConnectionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
      1 frame
    21. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    22. Google AppEngine
      TransactionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:50)
      1 frame
    23. Jetty Server
      WebAppContext.handle
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      6 frames
    24. com.google.apphosting
      AppVersionHandlerMap.handle
      1. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:260)
      1 frame
    25. Jetty Server
      HttpConnection$RequestHandler.headerComplete
      1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      2. org.mortbay.jetty.Server.handle(Server.java:326)
      3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      4. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      4 frames
    26. com.google.apphosting
      RpcRequestParser.parseAvailable
      1. com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:78)
      1 frame
    27. Jetty Server
      HttpConnection.handle
      1. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      1 frame
    28. com.google.apphosting
      JettyServletEngineAdapter.serviceRequest
      1. com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:148)
      1 frame
    29. appengine-managed-runtime
      JavaRuntime$RequestRunnable.run
      1. com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:504)
      1 frame
    30. Google tracing
      TraceContext$TraceContextRunnable.run
      1. com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
      2. com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
      3. com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
      4. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
      5. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
      6. com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)
      6 frames
    31. appengine-managed-runtime
      ThreadGroupPool$PoolEntry.run
      1. com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:235)
      1 frame
    32. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame