Using jBPM 6.1.0 libraries while starting workflow causes "Cannot create resource instance" exception

Solution Unverified - Updated -

Issue

  • While migrating to BPMS 6.1 from BPMS 6.0.3 the following exception is encountered.
...
2015-05-12 10:03:05,250 |  ProcessExecutionService | startProcess | WARN | xxxx | Could not commit session
org.jbpm.workflow.instance.WorkflowRuntimeException: [xxx] -- Unable to find transaction: Cannot create resource instance
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:168) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:354) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:369) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:117) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:162) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:354) ~[jbpm-flow-6.1.0.Final.jar:6.1.0.Final]
        ...
Caused by: java.lang.IllegalStateException: Unable to find transaction: Cannot create resource instance
        at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:139) ~[drools-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]
        at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:79) ~[drools-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]
        ...
Caused by: javax.naming.NamingException: Cannot create resource instance
        at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:116) ~[catalina.jar:7.0.23]
        ...

It looks like the process execution throws the exception when it is trying to go for the timer.

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.