[jboss-user] [jBPM] - Re: TaskServer, persistence file and session

bpmn2user do-not-reply at jboss.com
Tue Mar 29 15:52:15 EDT 2011


bpmn2user [http://community.jboss.org/people/bpmn2user] created the discussion

"Re: TaskServer, persistence file and session"

To view the discussion, visit: http://community.jboss.org/message/596367#596367

--------------------------------------------------------------
You get the following exception after making the modifications shown below in your example ProcessTaskTest.java
1.) Use different emfTask as you had suggested(EntityManagerFactory emfTask = Persistence.createEntityManagerFactory( "org.jbpm.myTask" );)
2.) Use WSHumanTaskHandler and Mina (i.e uncomment Mina code and the following line)
 //ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());

[2011:03:88 14:03:888:exception] Error while commiting the transaction
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:716)
    at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:134)
    at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:108)
    at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
..
....
Caused by: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
....
Caused by: java.sql.BatchUpdateException: ORA-02291: integrity constraint (NAGIOS.FK27A9A56CE1EF3A) violated - parent key not found

    at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:602)
    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9350)
    at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:210)
    at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110329/904e0013/attachment.html 


More information about the jboss-user mailing list