Uploaded image for project: 'Hibernate ORM'
  1. HHH-8225

EMF cannot be created, closed, then re-created in OSGi

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 4.2.2, 4.3.0.Beta3
    • Components: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      In non-managed JPA OSGi:

      emf = persistenceProvider.createEntityManagerFactory( "HibernateOSGi_AppManaged", null );
      emf.close();
      emf = persistenceProvider.createEntityManagerFactory( "HibernateOSGi_AppManaged", null );
      

      Results in an NPE. The persistence unit cannot be found more than once.

        Attachments

          Activity

            People

            • Assignee:
              brmeyer Brett Meyer
              Reporter:
              brmeyer Brett Meyer
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: