XMLWordPrintable

Details

    • Support Patch
    • Resolution: Done
    • Major
    • One Off Releases
    • EAP 6.0.0
    • Hibernate
    • None
    • JBPAPP-10494_4.1.3.Final-redhat-1
    • Hide
      PATCH NAME:
              JBPAPP-10494
      PRODUCT NAME:
              JBoss Enterprise Application Server
      VERSION:
              6.0.0
      SHORT DESCRIPTION:
              EAP 6.0.0 Support Patch for HHH-6043
              
      LONG DESCRIPTION:
              EAP 6.0.0 Support Patch for HHH-6043

              PostLoad method invoked before collection initialised
              https://hibernate.onjira.com/browse/HHH-6043

      MANUAL INSTALL INSTRUCTIONS:
              
               Backup and remove the following files:
                  
                  $JBOSS_HOME/modules/org/hibernate/main/hibernate-core*.jar
                  $JBOSS_HOME/modules/org/hibernate/main/hibernate-entitymanager*.jar
                  $JBOSS_HOME/modules/org/hibernate/main/module.xml
                         
              Extract the patched files by either:
              
              Using unzip:
                  unzip -d $JBOSS_HOME/ JBPAPP-10494.zip
                  
              Or by extracting the files from the zip to the following locations:
               
                  $JBOSS_HOME/modules/org/hibernate/main/hibernate-entitymanager_JBPAPP-10494_4.1.3.Final-redhat-1.jar
                  $JBOSS_HOME/modules/org/hibernate/main/hibernate-core_JBPAPP-10494_4.1.3.Final-redhat-1.jar
                  $JBOSS_HOME/modules/org/hibernate/main/module.xml

      COMPATIBILITY:
              None
      DEPENDENCIES:
              JBoss EAP 6.0.0
      SUPERSEDES:
              None
      SUPERSEDED BY:
              JBoss EAP 6.1.0
      CREATOR:
              Brett Meyer
      DATE:
              12th December 2012
      Show
      PATCH NAME:          JBPAPP-10494 PRODUCT NAME:         JBoss Enterprise Application Server VERSION:         6.0.0 SHORT DESCRIPTION:         EAP 6.0.0 Support Patch for HHH-6043          LONG DESCRIPTION:         EAP 6.0.0 Support Patch for HHH-6043         PostLoad method invoked before collection initialised          https://hibernate.onjira.com/browse/HHH-6043 MANUAL INSTALL INSTRUCTIONS:                   Backup and remove the following files:                          $JBOSS_HOME/modules/org/hibernate/main/hibernate-core*.jar             $JBOSS_HOME/modules/org/hibernate/main/hibernate-entitymanager*.jar             $JBOSS_HOME/modules/org/hibernate/main/module.xml                             Extract the patched files by either:                  Using unzip:             unzip -d $JBOSS_HOME/ JBPAPP-10494 .zip                      Or by extracting the files from the zip to the following locations:                       $JBOSS_HOME/modules/org/hibernate/main/hibernate-entitymanager_ JBPAPP-10494 _4.1.3.Final-redhat-1.jar             $JBOSS_HOME/modules/org/hibernate/main/hibernate-core_ JBPAPP-10494 _4.1.3.Final-redhat-1.jar             $JBOSS_HOME/modules/org/hibernate/main/module.xml COMPATIBILITY:         None DEPENDENCIES:         JBoss EAP 6.0.0 SUPERSEDES:         None SUPERSEDED BY:         JBoss EAP 6.1.0 CREATOR:         Brett Meyer DATE:         12th December 2012
    • NEW

    Description

      I have a bean with a @OneToMany relation mapping like

      private List<TherapieeinheitBean> therapieeinheiten;

      @OneToMany(
      cascade =
      Unknown macro:

      {CascadeType.REFRESH}

      ,
      fetch = FetchType.EAGER,
      mappedBy="therapiekatalog"
      )

      with FetchType.EAGER and a simnple @PostLoad like

      @PostLoad
      public void postLoad()
      Unknown macro:

      { System.out.println("!!!!!!!!!! postLoad !!!!!!!!!!"); System.out.print("size}

      When an entity of this bean is loaded JBoss trows

      org.hibernate.LazyInitializationException: illegal access to loading collection
      at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:341)
      at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
      at org.hibernate.collection.PersistentBag.iterator(PersistentBag.java:249)
      at de.visiodesk.therapiekatalog.TherapiekatalogBean.postLoad(TherapiekatalogBean.java:170)
      .
      .
      .

      and prints the messages

      WARN [LoadContexts] fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@2c8ce9<rs=Ingres-ResultSet[18523]>
      WARN [CollectionLoadContext] On CollectionLoadContext#cleanup, localLoadingCollectionKeys contained [206] entries

      afterwards. The PostLoad method should be called after the data was completely loaded. Is there a workaround for this Problem? I found some other ressources on the net where peole had the same problem, but I saw no resolution, no hint, no workaround.

      Attachments

        Activity

          People

            jbn-patch-team JBN Patch Team list
            rhn-support-rmartine Ricardo Martinelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: