1 Reply Latest reply on Jun 7, 2006 4:01 AM by Roy Forever

    Ugrent, Invoke WebServices twice cause exception

    Roy Forever Newbie

      Hi all,

      I have a BPEL process which interact with a WebService

      The process flow are as following:
      1. Receive
      - (Init the correlation)
      2. Assign
      3. Invoke WebService.operation1
      - (inputVariable=var1, no outputVariable)
      4. Receive
      - (Correlated) // Resume process
      5. Invoke WebService.operation2
      - (inputVariable=var1, outputVariable=var2)

      While executing the process exception throw at 5
      I tried to swap the 3 and 5 and execute again, exception still throw at 5
      Then, I change 5 to empty, execute again and no exception thrown

      Is that a bug of BPEL?
      Please help me how to solve it.

      org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:299)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.bpel.service.messager.RequestListener.onMessage(RequestListener.java:115)
       at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:707)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:299)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:89)
       at org.jbpm.graph.def.Transition.take(Transition.java:92)
       at org.jbpm.graph.def.Node.leave(Node.java:349)
       at org.jbpm.bpel.def.Activity.leave(Activity.java:149)
       at org.jbpm.bpel.def.Receive.messageReceived(Receive.java:45)
       at org.jbpm.bpel.service.messager.RequestListener.onMessage(RequestListener.java:112)
       ... 2 more
      Caused by: org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:299)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:293)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:89)
       at org.jbpm.graph.def.Transition.take(Transition.java:92)
       at org.jbpm.graph.def.Node.leave(Node.java:349)
       at org.jbpm.bpel.def.Activity.leave(Activity.java:149)
       at org.jbpm.bpel.def.Assign.execute(Assign.java:36)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:84)
       ... 7 more
      Caused by: java.lang.NullPointerException
       at org.jbpm.bpel.xml.util.XmlUtil.copyAttributes(XmlUtil.java:663)
       at org.jbpm.bpel.xml.util.XmlUtil.copy(XmlUtil.java:617)
       at org.jbpm.bpel.service.soap.PortCaller.writeRpcBody(PortCaller.java:218)
       at org.jbpm.bpel.service.soap.PortCaller.writeInputMessage(PortCaller.java:176)
       at org.jbpm.bpel.service.soap.PortCaller.callImpl(PortCaller.java:129)
       at org.jbpm.bpel.service.soap.PortCaller.call(PortCaller.java:92)
       at org.jbpm.bpel.service.messager.MessagerSession.invoke(MessagerSession.java:140)
       at org.jbpm.bpel.service.def.Invoker.invoke(Invoker.java:80)
       at org.jbpm.bpel.def.Invoke.execute(Invoke.java:27)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:84)
       ... 12 more
      


      My Setting:
      - OS: WindowsXP SP2
      - Java: 1.5.06
      - Database: MySQL 5.0.21
      - jBPM BPEL: 1.0-alpha4
      - jBoss: 4.0.3SP1

      Any replies are welcome and thank you very much.
      Roy