4 Replies Latest reply on Aug 22, 2011 9:13 AM by Marco Rietveld

    No Task with ID 205 was found!

    Xiaojun Hou Newbie

      Exception below occured in my web project when i complete the task with ID 205.

      Besides,in my mysql database,the status of task with id 205 is "completed" while the corresponding workitem is not completed.In the meantime,in the table nodeinstancelog table,the corresponding node of task with id 205 is not completed too.I think there is something wrong with my persistence configuration.

      Can somebody help me out?

      ……………………………………………………………………

      ……………………………………………………………………

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      [2011-08-15 16:29:54,281:debug] Message receieved on client : OperationResponse

      [2011-08-15 16:29:54,281:debug] Arguments : []

      Before remove,taskDocPairs.size()=9

      After remove,taskDocPairs.size()=8

      [2011-08-15 16:29:54,283:exception] No Task with ID 205 was found!

      1. javax.persistence.EntityNotFoundException: No Task with ID 205 was found!

          at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:773)

          at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:423)

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:96)

          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)

          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(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      1. javax.persistence.EntityNotFoundException: No Task with ID 205 was found!

          at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:773)

          at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:423)

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:96)

          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)

          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(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=375 cap=512: 00 00 01 73 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=375 cap=512: 00 00 01 73 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=375 cap=512: 00 00 01 73 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=375 cap=512: 00 00 01 73 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=2165 cap=4096: 00 00 08 71 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      [2011-08-15 16:29:54,294:debug] Message receieved on client : EventTriggerResponse

      [2011-08-15 16:29:54,296:debug] Arguments : [org.jbpm.task.event.EventPayload@10dd6db]

      [2011-08-15 16:29:54,296:debug] Message receieved on client : EventTriggerResponse

      [2011-08-15 16:29:54,296:debug] Arguments : [org.jbpm.task.event.EventPayload@194f49e]

      [2011-08-15 16:29:54,296:debug] Message receieved on client : EventTriggerResponse

      [2011-08-15 16:29:54,296:debug] Arguments : [org.jbpm.task.event.EventPayload@47b3ee]

      [2011-08-15 16:29:54,297:debug] Message receieved on client : EventTriggerResponse

      [2011-08-15 16:29:54,297:debug] Arguments : [org.jbpm.task.event.EventPayload@1b87736]

      [2011-08-15 16:29:54,298:debug] Message receieved on client : GetTaskResponse

      [2011-08-15 16:29:54,298:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 205 was found!]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: RECEIVED: HeapBuffer[pos=0 lim=422 cap=1024: 00 00 00 CF AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      [2011-08-15 16:29:54,299:debug] Message receieved on server : GetTaskRequest

      [2011-08-15 16:29:54,299:debug] Arguments : [205]

      Hibernate: select task0_.id as id129_3_, task0_.allowedToDelegate as allowedT2_129_3_, task0_.taskInitiator_id as taskIni23_129_3_, task0_.priority as priority129_3_, task0_.activationTime as activati4_129_3_, task0_.actualOwner_id as actualO24_129_3_, task0_.createdBy_id as createdBy25_129_3_, task0_.createdOn as createdOn129_3_, task0_.documentAccessType as document6_129_3_, task0_.documentContentId as document7_129_3_, task0_.documentType as document8_129_3_, task0_.expirationTime as expirati9_129_3_, task0_.faultAccessType as faultAc10_129_3_, task0_.faultContentId as faultCo11_129_3_, task0_.faultName as faultName129_3_, task0_.faultType as faultType129_3_, task0_.outputAccessType as outputA14_129_3_, task0_.outputContentId as outputC15_129_3_, task0_.outputType as outputType129_3_, task0_.parentId as parentId129_3_, task0_.previousStatus as previou18_129_3_, task0_.processInstanceId as process19_129_3_, task0_.skipable as skipable129_3_, task0_.status as status129_3_, task0_.workItemId as workItemId129_3_, user1_.id as id124_0_, user2_.id as id124_1_, user3_.id as id124_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=?

      8

      [2011-08-15 16:29:54,305:exception] No Task with ID 205 was found!

      1. javax.persistence.EntityNotFoundException: No Task with ID 205 was found!

          at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:773)

          at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:423)

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:96)

          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)

          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(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      1. javax.persistence.EntityNotFoundException: No Task with ID 205 was found!

          at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:773)

          at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:423)

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:96)

          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)

          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(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      [2011-08-15 16:29:54,308:debug] Message receieved on server : GetTaskRequest

      [2011-08-15 16:29:54,308:debug] Arguments : [205]

      Hibernate: select task0_.id as id129_3_, task0_.allowedToDelegate as allowedT2_129_3_, task0_.taskInitiator_id as taskIni23_129_3_, task0_.priority as priority129_3_, task0_.activationTime as activati4_129_3_, task0_.actualOwner_id as actualO24_129_3_, task0_.createdBy_id as createdBy25_129_3_, task0_.createdOn as createdOn129_3_, task0_.documentAccessType as document6_129_3_, task0_.documentContentId as document7_129_3_, task0_.documentType as document8_129_3_, task0_.expirationTime as expirati9_129_3_, task0_.faultAccessType as faultAc10_129_3_, task0_.faultContentId as faultCo11_129_3_, task0_.faultName as faultName129_3_, task0_.faultType as faultType129_3_, task0_.outputAccessType as outputA14_129_3_, task0_.outputContentId as outputC15_129_3_, task0_.outputType as outputType129_3_, task0_.parentId as parentId129_3_, task0_.previousStatus as previou18_129_3_, task0_.processInstanceId as process19_129_3_, task0_.skipable as skipable129_3_, task0_.status as status129_3_, task0_.workItemId as workItemId129_3_, user1_.id as id124_0_, user2_.id as id124_1_, user3_.id as id124_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=?

      [2011-08-15 16:29:54,313:exception] No Task with ID 205 was found!

      1. javax.persistence.EntityNotFoundException: No Task with ID 205 was found!

          at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:773)

          at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:423)

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:96)

          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)

          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(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      1. javax.persistence.EntityNotFoundException: No Task with ID 205 was found!

          at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:773)

          at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:423)

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:96)

          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)

          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(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=2165 cap=4096: 00 00 08 71 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=2165 cap=4096: 00 00 08 71 AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2011-8-15 16:29:54 org.apache.mina.filter.logging.LoggingFilter log

      信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]

      [2011-08-15 16:29:54,318:debug] Message receieved on client : GetTaskResponse

      [2011-08-15 16:29:54,318:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 205 was found!]

      [2011-08-15 16:29:54,319:debug] Message receieved on client : GetTaskResponse

      [2011-08-15 16:29:54,319:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 205 was found!]

      2011-8-15 16:29:55 org.apache.mina.filter.logging.LoggingFilter log

      信息: IDLE

        • 1. Re: No Task with ID 205 was found!
          wei wei Newbie

          I met the same problem .But i don't know how to reslove it ?

          • 2. Re: No Task with ID 205 was found!
            Mauricio Salatino Master

            Hi guys,

            Both of you are having the same issue with the task number 205? are you both using MySQL?

            If the task gets completed but the process don't continue that means that the session that should be listening to the task server events is not.

            Can you describe your environment a little bit more in detail, and confirm me that you are only having troubles with the task number 205.

            Cheers

            • 3. Re: No Task with ID 205 was found!
              Xiaojun Hou Newbie

              No,it's not only the task with ID 205.This is just an example id.About session,i created a new statefulknowledgesession everytime when i start a new processinstance.There are two persistence unit in my persistence.xml,one for starting task server,and the other for creating the statefulknowleldgesession, just like this:

              <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

              <persistence version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd

              http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/persistence">

                  <persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">

                      <provider>org.hibernate.ejb.HibernatePersistence</provider>

                      <jta-data-source>java:comp/env/jdbc/testDS1</jta-data-source>

                      <class>org.drools.persistence.info.SessionInfo</class>

                      <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

                      <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

                      <class>org.drools.persistence.info.WorkItemInfo</class>

                      <class>org.jbpm.process.audit.ProcessInstanceLog</class>

                      <class>org.jbpm.process.audit.NodeInstanceLog</class>

                      <class>org.jbpm.process.audit.VariableInstanceLog</class>

               

                      <class>org.jbpm.task.Attachment</class>

                      <class>org.jbpm.task.Content</class>

                      <class>org.jbpm.task.BooleanExpression</class>

                      <class>org.jbpm.task.Comment</class>

                      <class>org.jbpm.task.Deadline</class>

                      <class>org.jbpm.task.Comment</class>

                      <class>org.jbpm.task.Deadline</class>

                      <class>org.jbpm.task.Delegation</class>

                      <class>org.jbpm.task.Escalation</class>

                      <class>org.jbpm.task.Group</class>

                      <class>org.jbpm.task.I18NText</class>

                      <class>org.jbpm.task.Notification</class>

                      <class>org.jbpm.task.EmailNotification</class>

                      <class>org.jbpm.task.EmailNotificationHeader</class>

                      <class>org.jbpm.task.PeopleAssignments</class>

                      <class>org.jbpm.task.Reassignment</class>

                      <class>org.jbpm.task.Status</class>

                      <class>org.jbpm.task.Task</class>

                      <class>org.jbpm.task.TaskData</class>

                      <class>org.jbpm.task.SubTasksStrategy</class>

                      <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>

                      <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>

                      <class>org.jbpm.task.User</class>

                      <properties>

                         

                        

                          <property name="hibernate.connection.autocommit" value="false"/>

                          <property name="hibernate.max_fetch_depth" value="3"/>

                          <property name="hibernate.hbm2ddl.auto" value="update" />

                          <property name="hibernate.show_sql" value="true" />

                          <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup"/>

                      </properties>

                   

                   

                  </persistence-unit>

                  <persistence-unit name="org.jbpm.task">

                      <provider>org.hibernate.ejb.HibernatePersistence</provider>

                   

                      <class>org.drools.persistence.info.SessionInfo</class>

                      <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

                      <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

                      <class>org.drools.persistence.info.WorkItemInfo</class>

                      <class>org.jbpm.process.audit.ProcessInstanceLog</class>

                      <class>org.jbpm.process.audit.NodeInstanceLog</class>

                      <class>org.jbpm.process.audit.VariableInstanceLog</class>

               

                      <class>org.jbpm.task.Attachment</class>

                      <class>org.jbpm.task.Content</class>

                      <class>org.jbpm.task.BooleanExpression</class>

                      <class>org.jbpm.task.Comment</class>

                      <class>org.jbpm.task.Deadline</class>

                      <class>org.jbpm.task.Comment</class>

                      <class>org.jbpm.task.Deadline</class>

                      <class>org.jbpm.task.Delegation</class>

                      <class>org.jbpm.task.Escalation</class>

                      <class>org.jbpm.task.Group</class>

                      <class>org.jbpm.task.I18NText</class>

                      <class>org.jbpm.task.Notification</class>

                      <class>org.jbpm.task.EmailNotification</class>

                      <class>org.jbpm.task.EmailNotificationHeader</class>

                      <class>org.jbpm.task.PeopleAssignments</class>

                      <class>org.jbpm.task.Reassignment</class>

                      <class>org.jbpm.task.Status</class>

                      <class>org.jbpm.task.Task</class>

                      <class>org.jbpm.task.TaskData</class>

                      <class>org.jbpm.task.SubTasksStrategy</class>

                      <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>

                      <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>

                      <class>org.jbpm.task.User</class>

               

                      <properties>

                     

                           <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

                          <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>

                          <property name="hibernate.connection.url" value="jdbc:mysql://192.168.89.199:3306/jbpm_db" />

                          <property name="hibernate.connection.username" value="root"/>

                          <property name="hibernate.connection.password" value="123456"/>

                      

                          <property name="hibernate.connection.autocommit" value="false" />

                          <property name="hibernate.max_fetch_depth" value="3"/>

                          <property name="hibernate.hbm2ddl.auto" value="update" />

                          <property name="hibernate.show_sql" value="true" />

                         

                      </properties>

                  </persistence-unit>

              </persistence>

              • 4. Re: No Task with ID 205 was found!
                Marco Rietveld Novice

                Hi Xiaojun,

                 

                One thing that I noticed is that you're using JTA for the first datasource -- but not for the second. I would try having both use JTA and seeing if that fixes the problem you're seeing -- especially if the datasource (java:comp/env/jdbc/testDS1) is referring to the same database (jdbc:mysql://192.168.89.199:3306/jbpm_db).

                 

                Regards,

                Marco