1 Reply Latest reply on Jan 18, 2011 6:05 PM by Kim Kuylen

    jbpm in seam results in Transaction is not active

    Kim Kuylen Newbie

      Hi,

       

      I am currently developing a project which is making use of seam 2.2.0.GA and JBPM 3.2.7. The goal of the project is to collect data from our cisco network switches, process the data and storing it ofcourse.

       

      The seam project is currently making use of 2 seperate database backends, one for the application and one for the jbpm stuff. These databases are defined in seam via xa-datasources. To be precise it are PostgreSQL 8.4.4 databases.

       

      In my seam application I have a page which displays a table with all the networkswitches (see networkswitches.xhtml).

      In this page I can launch a network scan which will process each network switch one by one by calling the scanAction.scanAll() routine (see ScanAction.java)

       

      The scanAll routine will launch a new ProcessInstance for each networkswitch...so far so good

       

      jbpm now follows the nodes as described in the process definition (see scanswitch.jpdl.xml)

       

      However, when an error is thrown in one of the nodes I receive the following stack trace (see full stacktrace in stacktrace.txt):

       

      2:32:41,544 ERROR [CiscoInterfaces] Exception occurred in CiscoInterfaces: String index out of range: 39
      22:32:41,560 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      22:32:41,560 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >)
      22:32:41,560 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      22:32:41,560 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: af8450e:260d:4d1ba891:6e status: ActionStatus.ABORT_ONLY >)
      22:32:41,560 ERROR [GraphElement] action threw exception: Cannot open connection

       

      Note that the exception "String index out of range: 39" in the above stack trace is one we expected...but this seems to cause the "Transaction is not active" one.

      Where did I go wrong?

       

      Any help is much apreciated...I am strugling with this for quite some time now....please bear in mind that I am just a beginner in seam/jbpm

      If I need to provide other files/info let me know.

       

      Thanks for having a look into my problem!

       

      Kim