Executing a jBPM process results in a org.hibernate.StaleObjectStateException on SOA-P 4.3.0 CP02

Solution Verified - Updated -

Issue

We run into problems related to org.hibernate.StaleObjectStateException during the execution of ExecuteNodeJob. For example:

ERROR [org.hibernate.event.def.AbstractFlushingEventListener] (JbpmJobExector:10.10.10.10:1:) 
   Could not synchronize database state with session
   org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction 
   (or unsaved-value mapping was incorrect): [org.jbpm.job.ExecuteNodeJob#12345]

These race conditions even occur when there is only a single JobExecutorThread configured.

Environment

  • JBoss Enterprise SOA Platform (SOA-P) 4.3 CP02 (jBPM 3.2.7)

  • JBoss Enterprise SOA Platform (SOA-P) 4.3 CP02 with SOA-1514 patch applied (jBPM 3.2.8_SOA)

  • jBPM configured with a single JobExecutorThread
  • Non-clustered environment

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.