Hello,
<br/><br/>We are trying to dynamically change the endpoint address of a PartnerLink in a BPEL file, following
<br/>the ideas in: <a href="http://www.oracle.com/technetwork/articles/carey-090553.html" target="_top" rel="nofollow" link="external">http://www.oracle.com/technetwork/articles/carey-090553.html</a>&nbsp;which describes
<br/>the usage of a EndpointReference variable from the <a href="http://schemas.xmlsoap.org/ws/2003/03/addressing" target="_top" rel="nofollow" link="external">http://schemas.xmlsoap.org/ws/2003/03/addressing</a>&nbsp;Schema.
<br/><br/>We designed a simple BPEL process to test the assignment of an EndpointReference variable containing the endpoint URL to a PartnetLinkReference. However, we get an exception when doing this.
<br/>The assignment is created by the PetalsStudio visual editor. The resulting BPEL process is attached <a href="http://forum.petalslink.com/file/n3528646/NewProcess.bpel" target="_top">NewProcess.bpel</a><br/><br/>We tried the following:
<br/>1) Assigning the EndpointReference variable to the addresser partnerLink = ERROR
<br/>2) Deleting the assignment = OK, the addresser partnerLink is called without errors
<br/>3) Assigning the EndpointReference variable to a test partnerLink which is not used in the orchestration = ERROR
<br/><br/>Explaining a little more the errors:
<br/><br/>During the first call, we get the following exception in the SOAP Response in case 1:
<br/><pre>
&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
   &lt;soapenv:Body&gt;
      &lt;soapenv:Fault xmlns:axis2ns1=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
         &lt;faultcode&gt;axis2ns1:Server&lt;/faultcode&gt;
         &lt;faultstring&gt;A timeout occurs on JBI exchange with id 'petals:uid:B1B6CDA85FBDA13A7A3965232904791'&lt;/faultstring&gt;
         &lt;detail&gt;
            &lt;Exception&gt;org.apache.axis2.AxisFault: A timeout occurs on JBI exchange with id 'petals:uid:B1B6CDA85FBDA13A7A3965232904791'
        at org.ow2.petals.binding.soap.listener.incoming.SOAPProcessor.process(SOAPProcessor.java:191)
        at org.ow2.petals.binding.soap.listener.incoming.PetalsReceiver.process(PetalsReceiver.java:173)
        at org.ow2.petals.binding.soap.listener.incoming.PetalsReceiver.invokeBusinessLogic(PetalsReceiver.java:123)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
        at org.ow2.petals.binding.soap.listener.incoming.servlet.SoapServlet.doPost(SoapServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)&lt;/Exception&gt;
         &lt;/detail&gt;
      &lt;/soapenv:Fault&gt;
   &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
</pre><br/>and this Exception is shown in petals log for case 3, without a SOAP Response to the client:
<br/><pre>
[Petals.Container.Components.petals-se-bpel]-INFO 2011-11-22 16:41:26,582 the receiver gives the message to workflow engine
java.lang.NullPointerException
        at com.ebmwebsourcing.easybpel.model.bpel.impl.runtime.BPELAssigner.affectPartner(BPELAssigner.java:220)
        at com.ebmwebsourcing.easybpel.model.bpel.impl.runtime.BPELAssigner.affect(BPELAssigner.java:121)
        at com.ebmwebsourcing.easyviper.core.impl.engine.behaviour.functionnal.AssignBehaviourImpl.affect(AssignBehaviourImpl.java:97)
        at com.ebmwebsourcing.easyviper.core.impl.engine.behaviour.functionnal.AssignBehaviourImpl.executeOnInactive(AssignBehaviourImpl.java:128)
        at com.ebmwebsourcing.easyviper.core.api.engine.behaviour.AbstractBehaviourImpl.execute(AbstractBehaviourImpl.java:167)
        at org.objectweb.fractal.julia.generated.C1efc3245_0.execute(INTERCEPTOR[AssignBehaviour])
        at org.objectweb.fractal.julia.generated.C49c8cf10_0.execute(INTERFACE[AssignBehaviour])
        at com.ebmwebsourcing.easyviper.core.impl.engine.NodeImpl.execute(NodeImpl.java:219)
        at org.objectweb.fractal.julia.generated.C6ac8a5f_0.execute(INTERCEPTOR[Node])
        at org.objectweb.fractal.julia.generated.C678ba6a_0.execute(INTERFACE[Node])
        at com.ebmwebsourcing.easyviper.core.impl.engine.ExecutionImpl.execute(ExecutionImpl.java:509)
        at com.ebmwebsourcing.easyviper.core.impl.engine.ExecutionImpl.nextSequentially(ExecutionImpl.java:452)
        at com.ebmwebsourcing.easyviper.core.impl.engine.ExecutionImpl.step(ExecutionImpl.java:404)
        at com.ebmwebsourcing.easyviper.core.impl.engine.ExecutionImpl.run(ExecutionImpl.java:189)
        at org.objectweb.fractal.julia.generated.Cb57c20ad_0.run(INTERCEPTOR[Execution])
        at org.objectweb.fractal.julia.generated.C53c8ca78_0.run(INTERFACE[Execution])
        at com.ebmwebsourcing.easyviper.core.impl.engine.EngineImpl$ThreadRunProcess.run(EngineImpl.java:578)
[Root]-SEVERE 2011-11-22 16:41:26,746 null
</pre><br/>During the following calls, we get only
<br/>[Root]-SEVERE 2011-11-22 16:29:55,889 No matching activity were found for given message null
<br/><br/>in Petals log, and there is no response to the client, for both cases 1 and 3.
<br/><br/><br/>I was wondering if this is the correct way to dynamically assign the endpoint URL to a partnerLink. Could you provide some help with that?
<br/><br/>Thanks very much.
<br/><br/>
        <div class="signature weak-color">CS Master student at University of São Paulo</div>
        <br/>
        <br/>
        <hr noshade="noshade" size="1" color="#cccccc" />
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.petalslink.com/BPEL-ERROR-assign-EndpointReference-variable-to-a-partnerLink-tp3528646p3528646.html">http://forum.petalslink.com/BPEL-ERROR-assign-EndpointReference-variable-to-a-partnerLink-tp3528646p3528646.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42@n3.nabble.com <br/>
                To unsubscribe from Users (get help, provide help), <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=2681628&amp;code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4">click here</a>.<br/>
                <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&amp;breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif">NAML</a>
        </div>