org.hibernate.LazyInitializationException: illegal access to loading collection at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:366) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\] at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\] at org.hibernate.collection.PersistentSet.hashCode(PersistentSet.java:434) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\]

dozer | metatechbe | 5 years ago
  1. 0

    Unexpected exception in LogMsgFactory (same as bug 1797808)

    dozer | 5 years ago | metatechbe
    org.hibernate.LazyInitializationException: illegal access to loading collection at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:366) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\] at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\] at org.hibernate.collection.PersistentSet.hashCode(PersistentSet.java:434) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\]
  2. 0

    Initialize lazy collections

    Stack Overflow | 1 year ago | IlGala
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session exception is thrown. stack trace: at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
  3. 0
    Use eager fetch (fetch = FetchType.EAGER) annotation.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use the proper ORM annotations (@ManyToOne and @OneToMany).
  6. 0

    Execute @PostLoad _after_ eagerly fetching?

    Stack Overflow | 6 years ago | Alexandros
    org.hibernate.LazyInitializationException: illegal access to loading collection" error. </p> <pre><code> at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:363)

    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. org.hibernate.LazyInitializationException

      illegal access to loading collection at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:366) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\] at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\] at org.hibernate.collection.PersistentSet.hashCode(PersistentSet.java:434) ~\[hibernate-core-3.6.10.Final.jar:3.6.10.Final\]

      at org.dozer.util.LogMsgFactory.createFieldMappingErrorMsg()
    2. Dozer
      DozerBeanMapper.map
      1. org.dozer.util.LogMsgFactory.createFieldMappingErrorMsg(LogMsgFactory.java:52)
      2. org.dozer.MappingProcessor.mapField(MappingProcessor.java:283)
      3. org.dozer.MappingProcessor.map(MappingProcessor.java:245)
      4. org.dozer.MappingProcessor.map(MappingProcessor.java:187)
      5. org.dozer.MappingProcessor.map(MappingProcessor.java:124)
      6. org.dozer.MappingProcessor.map(MappingProcessor.java:119)
      7. org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:111)
      7 frames