Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15965

[GSS](7.1.z) HHH-12298: Inconsistent JOIN FETCH for standard entities and enhanced entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.1.5.GA, 7.1.6.GA
    • Hibernate
    • Hide

      Access/navigate a lazy association after bytecode enhanced, join-fetched entities are detached from the session in which they were fetched.

      Show
      Access/navigate a lazy association after bytecode enhanced, join-fetched entities are detached from the session in which they were fetched.

      ... org.hibernate.LazyInitializationException: Unable to perform requested lazy initialization [support.hibernate.entity.Employee.otherEntities] - no session and settings disallow loading outside the Session
      	at org.hibernate.bytecode.enhance.spi.interceptor.Helper.throwLazyInitializationException(Helper.java:165)
      	at org.hibernate.bytecode.enhance.spi.interceptor.Helper.performWork(Helper.java:60)
      	at org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoadingInterceptor.loadAttribute(LazyAttributeLoadingInterceptor.java:76)
      	at org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoadingInterceptor.fetchAttribute(LazyAttributeLoadingInterceptor.java:72)
      	at org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoadingInterceptor.intercept(LazyAttributeLoadingInterceptor.java:61)
      	at org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoadingInterceptor.readObject(LazyAttributeLoadingInterceptor.java:296)
      	...
      

              gbadner@redhat.com Gail Badner (Inactive)
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: