java.lang.NullPointerException: null keys not allowed

Oracle Community | 666705 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    DataCache NPE with generation strategy=IDENTITY

    Oracle Community | 1 decade ago | 666705
    java.lang.NullPointerException: null keys not allowed

    Root Cause Analysis

    1. java.lang.NullPointerException

      null keys not allowed

      at com.solarmetric.apache.commons.collections.map.AbstractReferenceMap.put()
    2. com.solarmetric.apache
      AbstractReferenceMap.put
      1. com.solarmetric.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:248)
      1 frame
    3. com.solarmetric.util
      EfficientEmptyReferenceMap.put
      1. com.solarmetric.util.EfficientEmptyReferenceMap.put(EfficientEmptyReferenceMap.java:43)
      1 frame
    4. com.solarmetric.apache
      MapBackedSet.add
      1. com.solarmetric.apache.commons.collections.set.MapBackedSet.add(MapBackedSet.java:110)
      1 frame
    5. com.solarmetric.util
      ReferenceSet.add
      1. com.solarmetric.util.ReferenceSet.add(ReferenceSet.java:59)
      1 frame
    6. kodo.datacache
      ClassRefCacheMap.entryAdded
      1. kodo.datacache.ClassRefCacheMap.entryAdded(ClassRefCacheMap.java:136)
      1 frame
    7. kodo.util
      CacheMap.put
      1. kodo.util.CacheMap.put(CacheMap.java:402)
      1 frame
    8. kodo.datacache
      DataCacheStoreManager.commit
      1. kodo.datacache.DataCacheImpl.putInternal(DataCacheImpl.java:109)
      2. kodo.datacache.AbstractDataCache.putAllInternal(AbstractDataCache.java:420)
      3. kodo.datacache.AbstractDataCache.commit(AbstractDataCache.java:98)
      4. kodo.datacache.DataCacheStoreManager.updateCaches(DataCacheStoreManager.java:222)
      5. kodo.datacache.DataCacheStoreManager.commit(DataCacheStoreManager.java:66)
      5 frames
    9. kodo.kernel
      DelegatingBroker.commit
      1. kodo.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:98)
      2. kodo.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1484)
      3. kodo.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2536)
      4. kodo.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:2182)
      5. kodo.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:85)
      6. kodo.kernel.BrokerImpl.commit(BrokerImpl.java:1546)
      7. kodo.kernel.DelegatingBroker.commit(DelegatingBroker.java:1250)
      7 frames
    10. kodo.persistence
      EntityManagerImpl.commit
      1. kodo.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:451)
      1 frame
    11. figbird.cms.application
      DAO.getRootItem
      1. figbird.cms.application.DAO.getRootItem(DAO.java:160)
      1 frame