Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15523

failed to lazily initialize a collection of role entityCollection, could not initialize proxy - no Session

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 25.0.0.Final
    • JPA / Hibernate
    • None

    Description

      Hi, after upgrading from Wildfly 24 to Wildlfy 25, with the same code in my application jakartaee 8 (no spring) I'm getting the following error : failed to lazily initialize a collection of role entityCollection, could not initialize proxy - no Session.

      The same application on jakartaee 9.1 working on Wildfly Preview 24 is no longer working on Wildfly 25, exactly the same error.

      How can I fix this please without changing the FETCH type to EAGER?

      Is there any change after the upgrade of Hibernate in Wildfly 25 (the session is closed earlier than expected)?

      Thank you.

      Attachments

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            eddabbabi Mounir Dabbabi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: