1 Reply Latest reply on Jul 28, 2011 2:25 PM by frankee787

    No Task with ID 7 was found!

    houxiaojun

      Sometimes when i start a process with jBPM5,the database has the saved the related task successfully.But when i complete the task through the human task view,in the console,information will be printed just like this:

      [2011:06:158 15:06:580:debug] Message receieved on client : AddTaskResponse

      [2011:06:158 15:06:581:debug] Arguments : [5]

      [2011:06:158 15:06:743:debug] Message receieved on client : EventTriggerResponse

      [2011:06:158 15:06:743:debug] Arguments : [org.jbpm.task.event.EventPayload@98bbf6]

      Task completed 5

      [2011:06:158 15:06:745:debug] Message receieved on client : EventTriggerResponse

      [2011:06:158 15:06:745:debug] Arguments : [org.jbpm.task.event.EventPayload@147e668]

      [2011:06:158 15:06:745:debug] Message receieved on client : EventTriggerResponse

      [2011:06:158 15:06:746:debug] Arguments : [org.jbpm.task.event.EventPayload@167c5e3]

      [2011:06:158 15:06:747:debug] Message receieved on client : EventTriggerResponse

      [2011:06:158 15:06:750:debug] Arguments : [org.jbpm.task.event.EventPayload@1f0cf51]

      Task completed 5

      [2011:06:158 15:06:751:debug] Message receieved on client : EventTriggerResponse

      [2011:06:158 15:06:751:debug] Arguments : [org.jbpm.task.event.EventPayload@c9b196]

      Task completed 5

      [2011:06:158 15:06:805:debug] Message receieved on client : GetTaskResponse

      [2011:06:158 15:06:805:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 5 was found!]

      [2011:06:158 15:06:806:debug] Message receieved on client : GetTaskResponse

      [2011:06:158 15:06:806:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 5 was found!]

      [2011:06:158 15:06:807:debug] Message receieved on client : GetTaskResponse

      [2011:06:158 15:06:807:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 5 was found!]

       

       

      Sometimes like this and the database shows that task 7 was completed:

      [2011:07:192 14:07:842:debug] Arguments : [7]

      [2011:07:192 14:07:857:exception] No Task with ID 7 was found!

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

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

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

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

          at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)

          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:796)

          at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)

          at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)

          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:796)

          at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)

          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:796)

          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:693)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:646)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:635)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:67)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1079)

          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)

      By the way,the task with id 5 shows completed in the database.Can somebody help me with this?

        • 1. Re: No Task with ID 7 was found!
          frankee787

          We too had noticed the same problem. However things seems to be ok when done using the API. The human task view (Eclipse Component) seems to be screwing up something. Was found out by a colleague. Was too tired to debug more.

           

          However, if you check the commands received on the server you might be able to understand why this strange behaviour is there.

           

          Also we notice that it doesnt occur when using H2 database, but strangely appears when using MySQL database.

           

          Regards,

          Franklin