Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23240

[GSS](7.4.z) JBERET-537 - Error closing ItemReader.: javax.transaction.TransactionalException: ARJUNA016110: Transaction is required for invocation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.4.5.CR1, 7.4.5.GA
    • None
    • Batch
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              mstefank Martin Stefanko
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: