--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/cc535986-ead3-4018-b5c8-acdd353b2811%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2018-02-15 08:56:17.801 TRACE 272 --- [ main] com.arjuna.ats.arjuna : BasicAction::onePhaseCommit() for action-id 0:ffffc0a83801:f7ed:5a84fdd8:2 2018-02-15 08:56:17.803 TRACE 272 --- [ main] com.arjuna.ats.jta : XAResourceRecord.topLevelOnePhaseCommit for XAResourceRecord < resource:org.apache.commons.dbcp2.managed.LocalXAConnectionFactory$LocalXAResource@261275ae, txid:< formatId=131077, gtrid_length=41, bqual_length=36, tx_uid=0:ffffc0a83801:f7ed:5a84fdd8:2, node_name=kie-server-tx, branch_uid=0:ffffc0a83801:f7ed:5a84fdd8:5, subordinatenodename=null, eis_name=0 >, heuristic: TwoPhaseOutcome.FINISH_OK com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord@77c692b4 >, record id=0:ffffc0a83801:f7ed:5a84fdd8:6
Full Log :- https://raw.githubusercontent.com/PeterJerald/kie-server-narayana-non-xa/master/kie-server-spring-boot-sample/log_h2.log
I am able to deploy a Kjar & start business process via non-xa but once transactions are finished hibernate layer trying to release connection but at one case before releasing the connection . It was closed . Hence I am getting null pointer exception like below trace but after that i am seeing successful transaction executed . I tried multiple workaround but didn't work. Can you please tell me how to fix this issue ?
code :- https://github.com/PeterJerald/kie-server-narayana-non-xa
2018-02-15 08:57:39.055 WARN 272 --- [0.1-8090-exec-4] com.arjuna.ats.jta : ARJUNA016029: SynchronizationImple.afterCompletion - failed for org.hibernate.resource.transaction.backend.jta.internal.synchronization.RegisteredSynchronization@39e6ca57 with exception java.lang.NullPointerException: null at org.apache.commons.dbcp2.DelegatingConnection.isClosed(DelegatingConnection.java:597) ~[commons-dbcp2-2.1.1.jar:2.1.1] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.releaseConnection(LogicalConnectionManagedImpl.java:166) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final]
Hibernate attempts to aggressively releases connections , so I made flip in release mode from after_transcation to on_close .
If you refer application.properties I updated release mode. Its working for SINGLETON runtimestragey but if I change to PER_PROCESS_INSTANCE for BPM project same issue occurring again .