0 Replies Latest reply on Sep 22, 2006 1:41 AM by kvak_tnt

    BPEL beta1: DelegationException

    kvak_tnt

      Hi there!

      I found out something and I wanna know whether I only have pressed the wrong button :-)

      OK Here's the matter:

      I added a new Partner-Implementation to the ATM-Example (copied the ticket-partner).
      In ever partner you can find a partnername.impl.wsdl.

      If I change the partnername.wsdl - I can see in Eclipse 3.2 in the Designview of the partnername.impl.wsdl all the stuff I added to the partnername.wsdl.

      But If I look into the source - I have to add the code by myself like this:

      <operation name="endAction">
       <soap:operation soapAction="urn:samples:agilpro:action:endAction" />
       <input>
       <soap:body use="literal" namespace="urn:samples:agilpro" />
       </input>
       <output>
       <soap:body use="literal" namespace="urn:samples:agilpro" />
       </output>
       </operation>


      Is there something I can do to add this content automatically. I also tried the generate-artifacts function but I had to add this by myself.

      If I forget to do this or maybe missspell something I get this error:
      07:25:17,322 ERROR [StartListener] could not start process instance
      org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:349)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.bpel.relation.jms.StartListener.onMessage(StartListener.java:98)
       at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:694)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:349)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:88)
       at org.jbpm.graph.def.Transition.take(Transition.java:119)
       at org.jbpm.graph.def.Node.leave(Node.java:382)
       at org.jbpm.bpel.def.Activity.leave(Activity.java:148)
       at org.jbpm.bpel.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:43)
       at org.jbpm.bpel.def.Receive.accept(Receive.java:64)
       at org.jbpm.bpel.def.Receive$$FastClassByCGLIB$$516412f0.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
       at org.jbpm.bpel.def.Receive$$EnhancerByCGLIB$$e670a503.accept(<generated>)
       at org.jbpm.bpel.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:82)
       at org.jbpm.bpel.def.Sequence.accept(Sequence.java:84)
       at org.jbpm.bpel.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:123)
       at org.jbpm.bpel.def.Flow.accept(Flow.java:166)
       at org.jbpm.bpel.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:29)
       at org.jbpm.bpel.def.BpelDefinition.messageReceived(BpelDefinition.java:110)
       at org.jbpm.bpel.relation.jms.StartListener.onMessage(StartListener.java:94)
       ... 2 more
      Caused by: org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:349)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:88)
       at org.jbpm.graph.def.Transition.take(Transition.java:119)
       at org.jbpm.graph.def.Node.leave(Node.java:382)
       at org.jbpm.bpel.def.Activity.leave(Activity.java:148)
       at org.jbpm.bpel.def.Assign.execute(Assign.java:41)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:83)
       ... 18 more
      Caused by: org.jbpm.graph.def.DelegationException
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:349)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:343)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:88)
       at org.jbpm.graph.def.Transition.take(Transition.java:119)
       at org.jbpm.graph.def.Node.leave(Node.java:382)
       at org.jbpm.bpel.def.Activity.leave(Activity.java:148)
       at org.jbpm.bpel.def.Assign.execute(Assign.java:41)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:83)
       ... 23 more
      Caused by: java.lang.RuntimeException: service not found: service={urn:samples:agilpro}agilproService
       at org.jbpm.bpel.service.exe.SoapEndpointReference.selectPort(SoapEndpointReference.java:131)
       at org.jbpm.bpel.service.exe.SoapEndpointReference.selectPort(SoapEndpointReference.java:84)
       at org.jbpm.bpel.relation.jms.RelationContext.getPortConsumer(RelationContext.java:191)
       at org.jbpm.bpel.relation.jms.JmsRelationService.invoke(JmsRelationService.java:134)
       at org.jbpm.bpel.def.Invoke.execute(Invoke.java:28)
       at org.jbpm.bpel.def.Activity.enter(Activity.java:83)
       ... 28 more


      (So problem itself solfed - but I need maybe some hints how to avoid such a problem again. But maybe someone other falls into the same hole...)

      Greetings
      Claus