castor
  1. castor
  2. CASTOR-3192

IllegalStateException when using Atomikos transaction manager

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3rc1
    • Component/s: JDO
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Using Atomikos transaction manager one will frequently see following stacktrace:

      11-08-25 08:49:21,927 [http-7380-Processor21] Error during afterCompletion
      java.lang.IllegalStateException: Unexpected state: afterCompletion called with status 5
      at org.exolab.castor.jdo.engine.GlobalDatabaseImpl.afterCompletion(GlobalDatabaseImpl.java:219)
      at com.atomikos.icatch.jta.Sync2Sync.afterCompletion(Sync2Sync.java:84)

      At http://fogbugz.atomikos.com/default.asp?community.6.802.3 it is explained that Atomikos calls afterCompletion() with state unknown for read-only transactions. It also says that this does not comply to J2EE spec.

      To prevent the stacktraces in log and influences by the exception thrown we have to handle this situation.

        Activity

        Hide
        Ralf Joachim added a comment -

        Final patch

        Show
        Ralf Joachim added a comment - Final patch

          People

          • Assignee:
            Ralf Joachim
            Reporter:
            Ralf Joachim
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: