Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10196

java.lang.IllegalStateException: EntityManager is closed

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          People

            gustavolira Gustavo Lira Silva
            gustavolira Gustavo Lira Silva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: