-
Bug
-
Resolution: Done
-
Major
-
None
-
None
BaseJpaStoreTest.testStoreValuesViaNonJpaCacheStore is throwing java.lang.IllegalStateException: EntityManager is closed with EAP 6.
Other containers doesn't throw this exception
The problem is because entitymanager is being closed here https://github.com/infinispan/infinispan/blob/5ed19f4e77076146762f77a0c1e24338b4598599/persistence/jpa/src/test/java/org/infinispan/persistence/jpa/BaseJpaStoreTest.java#L154 and https://github.com/infinispan/infinispan/blob/5ed19f4e77076146762f77a0c1e24338b4598599/persistence/jpa/src/test/java/org/infinispan/persistence/jpa/BaseJpaStoreTest.java#L160
we just need the entitymanger to be closed in the finally method