1 Reply Latest reply on Nov 17, 2013 5:53 AM by swiderski.maciej

    WS async task

    kamilfo

      Hello.

      I try to create WS task. It passes one String parameter to the web service and get back string value. It works fine with Mode="SYNC", but I get NullPointerException in async mode:

       

      java.lang.NullPointerException

      at org.drools.persistence.jpa.JpaPersistenceContext.findWorkItemInfo(JpaPersistenceContext.java:85)

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

      at org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler$1.run(WebServiceWorkItemHandler.java:124)

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

      ...

       

      What it can be related to?

        • 1. Re: WS async task
          swiderski.maciej

          was testing this the other day and all works fine for both sync and async. Could you provide your process definition and preferably the test that illustrates that issue?

           

          HTH