]
Huisheng Xu resolved JBPM-2795.
-------------------------------
Fix Version/s: jBPM 4.5
Resolution: Done
checked in r6538.
Cannot delete or update a parent row: a foreign key constraint fails
(`jbpmdb/jbpm4_execution`, CONSTRAINT `FK_EXEC_SUPEREXEC` FOREIGN KEY (`SUPEREXEC_`)
REFERENCES `jbpm4_execution` (`DBID_`))
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBPM-2795
URL:
https://jira.jboss.org/browse/JBPM-2795
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.3
Environment: windows xp, jdk1.6, mysql5.1
Reporter: vic chen
Assignee: Huisheng Xu
Fix For: jBPM 4.5
Attachments: com.rar, ExecutionImpl.java, JBPM-2795.patch
Original Estimate: 1 day
Remaining Estimate: 1 day
when a case like follow:
a process and it include three sub-processes(fork), when any one of sub-processes reject,
the main process will go to End.
it will hit exception:Cannot delete or update a parent row: a foreign key constraint
fails
like:
11:26:11,727 ERROR [org.hibernate.util.JDBCExceptionReporter] Cannot delete or update a
parent row: a foreign key constraint fails (`jbpmdb/jbpm4_execution`, CONSTRAINT
`FK_EXEC_SUPEREXEC` FOREIGN KEY (`SUPEREXEC_`) REFERENCES `jbpm4_execution` (`DBID_`))
11:26:11,727 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not
synchronize database state with session
it occur due to hibernate's behavior.
the code:org.jbpm.pvm.internal.model.ExecutionImpl
the method:end|(String state)
move "end all child" to bottom
but i ain't sure it really been solved.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: