[infinispan-issues] [JBoss JIRA] (ISPN-10196) java.lang.IllegalStateException: EntityManager is closed

Gustavo Lira e Silva (Jira) issues at jboss.org
Wed May 15 09:54:00 EDT 2019


Gustavo Lira e Silva created ISPN-10196:
-------------------------------------------

             Summary: java.lang.IllegalStateException: EntityManager is closed
                 Key: ISPN-10196
                 URL: https://issues.jboss.org/browse/ISPN-10196
             Project: Infinispan
          Issue Type: Bug
            Reporter: Gustavo Lira e Silva


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



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list