Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-537

Error closing ItemReader.: javax.transaction.TransactionalException: ARJUNA016110: Transaction is required for invocation

XMLWordPrintable

    When job fails and jberet calls close() method on ItemReader interface this exception is thrown:

     [org.jberet] (Batch Thread - 1) Error closing ItemReader.: javax.transaction.TransactionalException: ARJUNA016110: Transaction is required for invocation
    

    Looking at the code it looks like the ChunkRunner code calls rollback() first and then safeClose which in turn calls close() method on ItemReader. If I understand correctly close() method must be called within transactional scope so the above behaviour breaks the spec. I've attached a test case provided by the customer to this JIRA.

            cfang@redhat.com Cheng Fang
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: