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.