java.lang.NullPointerException: No API environment is registered for this thread.

Stack Overflow | 6 years ago
  1. 0

    Initialize local datastore exception : No API environment is registered for this thread

    Stack Overflow | 6 years ago
    java.lang.NullPointerException: No API environment is registered for this thread.
  2. 0

    Errors in test with rpc, memcache and jdo

    Google Groups | 7 years ago | nodchip
    java.lang.NullPointerException: No API environment is registered for this thread.
  3. 0

    Session destruction events, API availability therein

    Google Groups | 7 years ago | Erem
    java.lang.NullPointerException: No API environment is registered for this thread.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How can i run my persistance test cases in a standalone mode?

    Google Groups | 7 years ago | Siddharth Patnaik
    java.lang.NullPointerException: No API environment is registered for this thread.

    1 unregistered visitors
    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 API environment is registered for this thread.

      at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId()
    2. Google AppEngine
      Entity.<init>
      1. com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java:108)
      2. com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace(DatastoreApiHelper.java:118)
      3. com.google.appengine.api.datastore.Key.<init>(Key.java:104)
      4. com.google.appengine.api.datastore.Key.<init>(Key.java:88)
      5. com.google.appengine.api.datastore.Key.<init>(Key.java:84)
      6. com.google.appengine.api.datastore.Entity.<init>(Entity.java:122)
      7. com.google.appengine.api.datastore.Entity.<init>(Entity.java:103)
      7 frames
    3. org.datanucleus.store
      DatastorePersistenceHandler.insertObject
      1. org.datanucleus.store.appengine.DatastoreFieldManager.<init>(DatastoreFieldManager.java:187)
      2. org.datanucleus.store.appengine.DatastorePersistenceHandler.insertPreProcess(DatastorePersistenceHandler.java:338)
      3. org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects(DatastorePersistenceHandler.java:251)
      4. org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:240)
      4 frames
    4. DataNucleus Core
      ObjectManagerImpl.persistObject
      1. org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManagerImpl.java:3185)
      2. org.datanucleus.state.JDOStateManagerImpl.makePersistent(JDOStateManagerImpl.java:3161)
      3. org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1298)
      4. org.datanucleus.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:1175)
      4 frames
    5. DataNucleus Enhancer
      JDOPersistenceManager.makePersistent
      1. org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:669)
      2. org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:694)
      2 frames
    6. com.stuff.server
      TestCase.main
      1. com.stuff.server.GreetingServiceImpl.saveContact(GreetingServiceImpl.java:25)
      2. com.stuff.server.TestCase.testServerCallBack(TestCase.java:18)
      3. com.stuff.server.TestCase.main(TestCase.java:13)
      3 frames