Hi, I am using drools flow 5.1, and occurr the next problem.
I start OK task 2:
client.start( 2, a_user, responseHandler);
responseHandler.waitTillDone(3000);
But when complete task 2:
client.complete(2, "user", null, responseHandler);
responseHandler.waitTillDone(000);
Hibernate: select task0_.id as id284_3_, task0_.allowedToDelegate as
allowedT2_284_3_, task0_.taskInitiator_id as taskIni22_284_3_,
task0_.priority as priority284_3_, task0_.activationTime as
activati4_284_3_, task0_.actualOwner_id as actualO23_284_3_,
task0_.createdBy_id as createdBy24_284_3_, task0_.createdOn as
createdOn284_3_, task0_.documentAccessType as document6_284_3_,
task0_.documentContentId as document7_284_3_, task0_.documentType as
document8_284_3_, task0_.expirationTime as expirati9_284_3_,
task0_.faultAccessType as faultAc10_284_3_, task0_.faultContentId as
faultCo11_284_3_, task0_.faultName as faultName284_3_, task0_.faultType as
faultType284_3_, task0_.outputAccessType as outputA14_284_3_,
task0_.outputContentId as outputC15_284_3_, task0_.outputType as
outputType284_3_, task0_.parentId as parentId284_3_, task0_.previousStatus
as previou18_284_3_, task0_.skipable as skipable284_3_, task0_.status as
status284_3_, task0_.workItemId as workItemId284_3_, user1_.id as id279_0_,
user2_.id as id279_1_, user3_.id as id279_2_ from Task task0_ left outer
join OrganizationalEntity user1_ on task0_.taskInitiator_id=user1_.id left
outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id
left outer join OrganizationalEntity user3_ on task0_.createdBy_id=user3_.id
where task0_.id=?
INFO 10-09 13:21:46,436 - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
INFO 10-09 13:21:46,437 - SENT: HeapBuffer[pos=0 lim=192 cap=256: 00 00 00
BC AC ED 00 05 73 72 01 00 1F 6F 72 67...]
INFO 10-09 13:21:46,437 - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
[2010:09:253 13:09:437:debug] Message receieved on client :
QueryTaskSummaryResponse
[2010:09:253 13:09:437:debug] Arguments : [[]]
[2010:09:253 13:09:444:exception] No Task with ID 2 was found!
javax.persistence.EntityNotFoundException: No Task with ID 2 was found!
at
org.drools.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:669)
at
org.drools.task.service.TaskServiceSession.getTask(TaskServiceSession.java:428)
at
org.drools.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:95)
at
org.drools.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)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:375)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:229)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
at
org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:176)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
at
org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
javax.persistence.EntityNotFoundException: No Task with ID 2 was found!
at
org.drools.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:669)
at
org.drools.task.service.TaskServiceSession.getTask(TaskServiceSession.java:428)
at
org.drools.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:95)
at
org.drools.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)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:375)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:229)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
at
org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:176)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
at
org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)