渊 李 [https://community.jboss.org/people/c1269355458] created the discussion

"My jBPM5.2 doesn't work! Like this......"

To view the discussion, visit: https://community.jboss.org/message/725490#725490

--------------------------------------------------------------
hi, all. 
JPA and MinaTaskServer are working well.

my action is like this:
| 
 | StatefulKnowledgeSession session = null; |
| 
 | 
 | try { |
| 
 | 
 | session = JbpmAPIUtil.createKnowledgeSession("bpmn/HumanTask.bpmn"); |
| 
 | 
 | session.getWorkItemManager().registerWorkItemHandler("Human Task", new 
WSHumanTaskHandler()); |
| 
 | 
 | } catch (Exception e) { |
| 
 | 
 | e.printStackTrace(); |
| 
 | 
 | } |
| 
 | 
 | Map<String, Object> params = new HashMap<String, Object>(); |
| 
 | 
 | params.put("userId", "krisv"); |
| 
 | 
 | params.put("description", "Need a new laptop computer"); |
| 
 | 
 | ProcessInstance instance = session.startProcess("com.sample.humantask", 
params); |
| 
 | 
 | 
 |
| 
 | 
 | System.out.println("\n\n start " + instance); |
| 
 | 
 | 
 |

and error:
Hibernate: insert into SessionInfo (lastModificationDate, rulesByteArray, 
startDate, OPTLOCK) values (?, ?, ?, ?)
Hibernate: insert into ProcessInstanceInfo (lastModificationDate, lastReadDate, 
processId, processInstanceByteArray, startDate, state, OPTLOCK) values (?, ?, 
?, ?, ?, ?, ?)
Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, 
state, OPTLOCK, workItemByteArray) values (?, ?, ?, ?, ?, ?)
2012-03-22 14:54:49,546 INFO  [LoggingFilter.java:158] : CREATED
2012-03-22 14:54:49,546 INFO  [LoggingFilter.java:158] : OPENED
2012-03-22 14:54:49,562 INFO  [LoggingFilter.java:140] : RECEIVED: 
HeapBuffer[pos=0 lim=675 cap=2048: 00 00 01 4F AC ED 00 05 73 72 01 00 1D 6F 72 
67...]
2012-03-22 14:54:49,734 INFO  [LoggingFilter.java:140] : RECEIVED: 
HeapBuffer[pos=0 lim=1007 cap=2048: 00 00 01 4D AC ED 00 05 73 72 01 00 1D 6F 
72 67...]
2012-03-22 14:54:49,750 WARN  [JDBCExceptionReporter.java:233] : SQL Error: 
1452, SQLState: 23000
2012-03-22 14:54:49,750 ERROR [JDBCExceptionReporter.java:234] : Cannot add or 
update a child row: a foreign key constraint fails 
(`example`.`peopleassignments_potowners`, CONSTRAINT `FK1EE418D2C122ED2` 
FOREIGN KEY (`entity_id`) REFERENCES `organizationalentity` (`id`))
javax.persistence.RollbackException: Error while committing the transaction

....
Caused by: java.sql.BatchUpdateException: Cannot add or update a child row: a 
foreign key constraint fails (`example`.`peopleassignments_potowners`, 
CONSTRAINT `FK1EE418D2C122ED2` FOREIGN KEY (`entity_id`) REFERENCES 
`organizationalentity` (`id`))
....
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/725490#725490]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to