2 Replies Latest reply on Jun 1, 2012 8:04 AM by jena74

    jBPM 5.3 - TaskClient error

    jena74 Newbie



      I use the TaskClient Java API to connect to the HornetQ human task service started on my laptop.

      But, each time, at the exit time of my Java code, I have a strange exception:


      Exception in thread "Thread-1" java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 6666

          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:127)

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

      Caused by: HornetQException[errorCode=102 message=Consumer is closed]

          at org.hornetq.core.client.impl.ClientConsumerImpl.checkClosed(ClientConsumerImpl.java:911)

          at org.hornetq.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:184)

          at org.hornetq.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:401)

          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:118)

          ... 1 more


      I can not explain what happen, but if I run my test several times, at the end I am no more able to connect to my human task server.


      I join the code of my client in attachment.

      Does-it mean something for you please?

      Thank you.