[
https://jira.jboss.org/jira/browse/JBPM-1772?page=com.atlassian.jira.plug...
]
Thomas Diesler commented on JBPM-1772:
--------------------------------------
Test fails in line 57 signal
55: ProcessInstance processInstance = new ProcessInstance(processDefinition);
56: processInstance.signal();
57: processInstance.findToken("/a").signal();
Join.java
if (session!=null) {
LockMode lockMode = LockMode.FORCE;
if (parentLockMode!=null) {
lockMode = LockMode.parse(parentLockMode);
}
log.debug("forcing version increment on parent token "+parentToken);
// TODO why is a flush needed?!
// session.flush();
117: session.lock(parentToken, lockMode);
}
Fix JoinDbTest on postgresql
----------------------------
Key: JBPM-1772
URL:
https://jira.jboss.org/jira/browse/JBPM-1772
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Reporter: Thomas Diesler
Fix For: jBPM 3.3.1 GA
org.hibernate.StaleObjectStateException: Row was updated or deleted by another
transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#17]
at
org.hibernate.persister.entity.AbstractEntityPersister.forceVersionIncrement(AbstractEntityPersister.java:1239)
at
org.hibernate.event.def.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:82)
at
org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEventListener.java:64)
at org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:584)
at org.hibernate.impl.SessionImpl.lock(SessionImpl.java:576)
at org.jbpm.graph.node.Join.execute(Join.java:117)
at org.jbpm.graph.def.Node.enter(Node.java:314)
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:389)
at org.jbpm.graph.exe.Token.signal(Token.java:192)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.jpdl.exe.JoinDbTest.testJoinPersistence(JoinDbTest.java:57)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira