1 Reply Latest reply on May 14, 2012 5:54 PM by Demian Calcaprina

    Getting referential integrity errors while running sample evaluation project

    Ashtuosh Sharma Newbie

           [java] Task service running ...      [java] 0    14/05 13:13:29,645[NioProcessor-2] ERROR hibernate.util.JDBCExceptionReporter.logExceptions  - Referential integrity constraint violation: "FK27A9A56CE1EF3A: PUB LIC.TASK FOREIGN KEY(ACTUALOWNER_ID) REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:      [java] update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentCo ntentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previ ousStatus=?, processId=?, processInstanceId=?, processSessionId=?, skipable=?, status=?, workItemId=? where id=? [23506-161]      [java] 47   14/05 13:13:29,692[NioProcessor-2] ERROR hibernate.util.JDBCExceptionReporter.logExceptions  - Referential integrity constraint violation: "FK27A9A56CE1EF3A: PUB LIC.TASK FOREIGN KEY(ACTUALOWNER_ID) REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:      [java] update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentCo ntentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previ ousStatus=?, processId=?, processInstanceId=?, processSessionId=?, skipable=?, status=?, workItemId=? where id=? [23506-161]      [java] 141  14/05 13:13:29,786[NioProcessor-2] ERROR event.def.AbstractFlushingEventListener.performExecutions  - Could not synchronize database state with session      [java] org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update      [java]     at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)      [java]     at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)      [java]     at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)      [java]     at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)      [java]     at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)      [java]     at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)      [java]     at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)      [java]     at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)      [java]     at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)      [java]     at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)      [java]     at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)      [java]     at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:971)      [java]     at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:171)      [java]     at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:109)      [java]     at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)      [java]     at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)      [java]     at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)      [java]     at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)      [java]     at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)      [java]     at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)      [java]     at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)      [java]     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)      [java]     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)      [java]     at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)      [java]     at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)      [java]     at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)      [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)      [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)      [java]     at java.lang.Thread.run(Thread.java:662)      [java] Caused by: org.h2.jdbc.JdbcBatchUpdateException: Referential integrity constraint violation: "FK27A9A56CE1EF3A: PUBLIC.TASK FOREIGN KEY(ACTUALOWNER_ID) REFERENCES PUB LIC.ORGANIZATIONALENTITY(ID)"; SQL statement:     Any help?