Gary Struthers [http://community.jboss.org/people/GaryS] created the discussion
"Re: TaskService Referential integrity constraint violation" To view the discussion, visit: http://community.jboss.org/message/620890#620890 -------------------------------------------------------------- Thanks Demian, I was adding users but no groups. But I still have the problem with a group added. Hibernate: select task0_.id as col_0_0_, deadline1_.id as col_1_0_, deadline1_.deadline_date as col_2_0_ from Task task0_, Deadline deadline1_ where (deadline1_.id in (select startdeadl2_.id from Deadline startdeadl2_ where task0_.id=startdeadl2_.Deadlines_StartDeadLine_Id) or deadline1_.id in (select enddeadlin3_.id from Deadline enddeadlin3_ where task0_.id=enddeadlin3_.Deadlines_EndDeadLine_Id)) and deadline1_.escalated=0 order by deadline1_.deadline_date Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?) Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?) Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?) Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?) Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) >From further down the stacktrace at java.lang.Thread.run(Thread.java:680) Caused by: org.h2.jdbc.JdbcBatchUpdateException: Referential integrity constraint violation: "FK1EE418D2C122ED2: PUBLIC.PEOPLEASSIGNMENTS_POTOWNERS FOREIGN KEY(ENTITY_ID) REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement: insert into PeopleAssignments_PotOwners (task_id, entity_id) values (?, ?) [23002-128] at org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1119) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:247) ... 37 more javax.persistence.RollbackException: Error while commiting the transaction at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71) at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:820) at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:134) at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:109) at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41) -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/620890#620890] Start a new discussion in jBPM at Community [http://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
