2 Replies Latest reply on Apr 18, 2013 7:28 AM by Krisv W

    ERROR drools.persistence.SingleSessionCommandService.rollbackTransaction  Could not commit session java.lang.IllegalArgumentException: IOException while loading process instance: null

    Krisv W Newbie
      • Hi!
      • I'm new to jBPM5.Today I've encountered a problem when studying the persistence feature of JBPM5 using Hello Proces example. Everything is OK berfore I click the button 'Complete' in Human Task View.The console shows like this:

       

      Hibernate: select workitemin0_.workItemId as workItemId3_0_, workitemin0_.creationDate as creation2_3_0_, workitemin0_.name as name3_0_, workitemin0_.processInstanceId as processI4_3_0_, workitemin0_.state as state3_0_, workitemin0_.OPTLOCK as OPTLOCK3_0_, workitemin0_.workItemByteArray as workItem7_3_0_ from WorkItemInfo workitemin0_ where workitemin0_.workItemId=?

      java.io.EOFException

      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2720)

      at java.io.ObjectInputStream$BlockDataInputStream.readUTFChar(ObjectInputStream.java:3112)

      at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:3009)

      at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2818)

      at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1051)

      at org.drools.marshalling.impl.InputMarshaller.readWorkItem(InputMarshaller.java:1168)

      at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:110)

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:187)

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:115)

      at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)

      at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)

      at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)

      at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:273)

      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler$1.run(GenericHTWorkItemHandler.java:239)

      at java.lang.Thread.run(Thread.java:619)

      Exception in thread "Thread-5" java.lang.IllegalArgumentException: IOException while loading process instance: null

      at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:114)

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:187)

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:115)

      at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)

      at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)

      at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)

      at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:273)

      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler$1.run(GenericHTWorkItemHandler.java:239)

      at java.lang.Thread.run(Thread.java:619)

      0 06/04 17:37:50,777[Thread-5] ERROR drools.persistence.SingleSessionCommandService.rollbackTransaction - Could not commit session

      java.lang.IllegalArgumentException: IOException while loading process instance: null

      at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:114)

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:187)

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:115)

      at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)

      at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)

      at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)

      at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:273)

      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler$1.run(GenericHTWorkItemHandler.java:239)

      at java.lang.Thread.run(Thread.java:619)

       

       

           Could someone please suggest where I am wrong?

           Thanks in advance!