java.lang.NullPointerException

Stack Overflow | Mat Haas | 8 months 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

    NullPointerException in Hibernate for fetch = EAGER

    Stack Overflow | 8 months ago | Mat Haas
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.hibernate.engine.internal.StatefulPersistenceContext.getLoadedCollectionOwnerOrNull()
    2. Hibernate
      PersistentSet.toArray
      1. org.hibernate.engine.internal.StatefulPersistenceContext.getLoadedCollectionOwnerOrNull(StatefulPersistenceContext.java:780)
      2. org.hibernate.event.spi.AbstractCollectionEvent.getLoadedOwnerOrNull(AbstractCollectionEvent.java:58)
      3. org.hibernate.event.spi.InitializeCollectionEvent.<init>(InitializeCollectionEvent.java:22)
      4. org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:2002)
      5. org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:562)
      6. org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:246)
      7. org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:558)
      8. org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:131)
      9. org.hibernate.collection.internal.PersistentSet.toArray(PersistentSet.java:170)
      9 frames
    3. testhib.entities
      Parent.$$_hibernate_write_children
      1. testhib.entities.Parent.$$_hibernate_write_children(Parent.java)
      1 frame