java.lang.Error: update: last is null!

Hibernate JIRA | John Kristian | 1 decade ago
  1. 0

    With Hibernate 2.1 beta 3b (but not 2.0.2), the following errors occur. I will supply a small test case and more detailed log, soon. 12:19:30,390 ERROR [LRUMemoryCache] verifycache: map does NOT contain key, what the HECK! 12:19:30,390 ERROR [TestCache] testScan failed java.lang.Error: update: last is null! at org.apache.jcs.engine.memory.lru.LRUMemoryCache.update(LRUMemoryCache.java:140) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:241) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:200) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:311) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:279) at net.sf.hibernate.cache.JCSCache.put(JCSCache.java:34) at net.sf.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:86) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2137) at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:221) at net.sf.hibernate.loader.Loader.doFind(Loader.java:113) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:661) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:676) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:52) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:44) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:378) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2059) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1913) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1872) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:84) at net.sf.hibernate.type.EntityType.assemble(EntityType.java:95) at net.sf.hibernate.collection.Set.<init>(Set.java:94) at net.sf.hibernate.type.SetType.assembleCachedCollection(SetType.java:36) at net.sf.hibernate.collection.CollectionPersister.getCachedCollection(CollectionPersister.java:370) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:67) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:178) at net.sf.hibernate.type.PersistentCollectionType.assemble(PersistentCollectionType.java:130) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:54) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:46) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2044) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1913) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1872) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:84) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:111) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:67) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:87) at com.docent.lms.entities.tests.hibernate.TestCache.scan(TestCache.java:104)

    Hibernate JIRA | 1 decade ago | John Kristian
    java.lang.Error: update: last is null!
  2. 0

    With Hibernate 2.1 beta 3b (but not 2.0.2), the following errors occur. I will supply a small test case and more detailed log, soon. 12:19:30,390 ERROR [LRUMemoryCache] verifycache: map does NOT contain key, what the HECK! 12:19:30,390 ERROR [TestCache] testScan failed java.lang.Error: update: last is null! at org.apache.jcs.engine.memory.lru.LRUMemoryCache.update(LRUMemoryCache.java:140) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:241) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:200) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:311) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:279) at net.sf.hibernate.cache.JCSCache.put(JCSCache.java:34) at net.sf.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:86) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2137) at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:221) at net.sf.hibernate.loader.Loader.doFind(Loader.java:113) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:661) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:676) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:52) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:44) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:378) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2059) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1913) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1872) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:84) at net.sf.hibernate.type.EntityType.assemble(EntityType.java:95) at net.sf.hibernate.collection.Set.<init>(Set.java:94) at net.sf.hibernate.type.SetType.assembleCachedCollection(SetType.java:36) at net.sf.hibernate.collection.CollectionPersister.getCachedCollection(CollectionPersister.java:370) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:67) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:178) at net.sf.hibernate.type.PersistentCollectionType.assemble(PersistentCollectionType.java:130) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:54) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:46) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2044) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1913) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1872) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:84) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:111) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:67) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:87) at com.docent.lms.entities.tests.hibernate.TestCache.scan(TestCache.java:104)

    Hibernate JIRA | 1 decade ago | John Kristian
    java.lang.Error: update: last is null!
  3. 0

    With Hibernate `cvs checkout -r v21branch` (but not 2.0.2), the following errors occur. 14:05:11,046 ERROR [org.apache.jcs.engine.memory.lru.LRUMemoryCache] verifycache: map does NOT contain key, what the HECK! 14:05:11,046 ERROR [com.docent.lms.entities.tests.hibernate.Scan] testScan failed java.lang.Error: update: last is null! at org.apache.jcs.engine.memory.lru.LRUMemoryCache.update(LRUMemoryCache.java:140) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:241) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:200) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:311) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:279) at net.sf.hibernate.cache.JCSCache.put(JCSCache.java:34) at net.sf.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:86) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2191) at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:216) at net.sf.hibernate.loader.Loader.doFind(Loader.java:111) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:664) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:679) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:52) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:44) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:424) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2115) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1977) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1936) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:76) at net.sf.hibernate.type.EntityType.assemble(EntityType.java:113) at net.sf.hibernate.collection.Set.<init>(Set.java:94) at net.sf.hibernate.type.SetType.assembleCachedCollection(SetType.java:36) at net.sf.hibernate.collection.CollectionPersister.getCachedCollection(CollectionPersister.java:371) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:67) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:184) at net.sf.hibernate.type.PersistentCollectionType.assemble(PersistentCollectionType.java:134) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:54) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:46) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2100) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1977) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1936) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:76) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:129) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:67) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:87) at com.docent.lms.entities.tests.hibernate.Scan.scan(Scan.java:59)

    Hibernate JIRA | 1 decade ago | John Kristian
    java.lang.Error: update: last is null!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    With Hibernate `cvs checkout -r v21branch` (but not 2.0.2), the following errors occur. 14:05:11,046 ERROR [org.apache.jcs.engine.memory.lru.LRUMemoryCache] verifycache: map does NOT contain key, what the HECK! 14:05:11,046 ERROR [com.docent.lms.entities.tests.hibernate.Scan] testScan failed java.lang.Error: update: last is null! at org.apache.jcs.engine.memory.lru.LRUMemoryCache.update(LRUMemoryCache.java:140) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:241) at org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:200) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:311) at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:279) at net.sf.hibernate.cache.JCSCache.put(JCSCache.java:34) at net.sf.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:86) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2191) at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:216) at net.sf.hibernate.loader.Loader.doFind(Loader.java:111) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:664) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:679) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:52) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:44) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:424) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2115) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1977) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1936) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:76) at net.sf.hibernate.type.EntityType.assemble(EntityType.java:113) at net.sf.hibernate.collection.Set.<init>(Set.java:94) at net.sf.hibernate.type.SetType.assembleCachedCollection(SetType.java:36) at net.sf.hibernate.collection.CollectionPersister.getCachedCollection(CollectionPersister.java:371) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:67) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:184) at net.sf.hibernate.type.PersistentCollectionType.assemble(PersistentCollectionType.java:134) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:54) at net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:46) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2100) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1977) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1936) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:76) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:129) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:67) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:87) at com.docent.lms.entities.tests.hibernate.Scan.scan(Scan.java:59)

    Hibernate JIRA | 1 decade ago | John Kristian
    java.lang.Error: update: last is null!
  6. 0

    While using JCS getting error java.lang.Error: update: last is null

    Stack Overflow | 6 months ago | Anil
    java.lang.Error: update: last is null!

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

      update: last is null!

      at org.apache.jcs.engine.memory.lru.LRUMemoryCache.update()
    2. JCS
      CacheAccess.put
      1. org.apache.jcs.engine.memory.lru.LRUMemoryCache.update(LRUMemoryCache.java:140)
      2. org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:241)
      3. org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:200)
      4. org.apache.jcs.access.CacheAccess.put(CacheAccess.java:311)
      5. org.apache.jcs.access.CacheAccess.put(CacheAccess.java:279)
      5 frames
    3. net.sf.hibernate
      IteratorImpl.next
      1. net.sf.hibernate.cache.JCSCache.put(JCSCache.java:34)
      2. net.sf.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:86)
      3. net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2137)
      4. net.sf.hibernate.loader.Loader.doResultSet(Loader.java:221)
      5. net.sf.hibernate.loader.Loader.doFind(Loader.java:113)
      6. net.sf.hibernate.loader.Loader.loadEntity(Loader.java:661)
      7. net.sf.hibernate.loader.Loader.loadEntity(Loader.java:676)
      8. net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:52)
      9. net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:44)
      10. net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:378)
      11. net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2059)
      12. net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1913)
      13. net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1872)
      14. net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:84)
      15. net.sf.hibernate.type.EntityType.assemble(EntityType.java:95)
      16. net.sf.hibernate.collection.Set.<init>(Set.java:94)
      17. net.sf.hibernate.type.SetType.assembleCachedCollection(SetType.java:36)
      18. net.sf.hibernate.collection.CollectionPersister.getCachedCollection(CollectionPersister.java:370)
      19. net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:67)
      20. net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:178)
      21. net.sf.hibernate.type.PersistentCollectionType.assemble(PersistentCollectionType.java:130)
      22. net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:54)
      23. net.sf.hibernate.impl.CacheEntry.assemble(CacheEntry.java:46)
      24. net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2044)
      25. net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1913)
      26. net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1872)
      27. net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:84)
      28. net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:111)
      29. net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:67)
      30. net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:87)
      30 frames
    4. com.docent.lms
      TestCache.scan
      1. com.docent.lms.entities.tests.hibernate.TestCache.scan(TestCache.java:104)
      1 frame