Hi Suhan,

I believe we have to add the following to the inSequence.

<property name="OUT_ONLY" value="true"/>

Implying that it is a one way message.

Also see : https://docs.wso2.com/display/MB220/Integrating+WSO2+ESB

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +94777688882

On Wed, Apr 29, 2015 at 11:56 AM, Suhan Dharmasuriya <[email protected]>
wrote:

> Hi,
>
> I'm using MB 2.2.0 with ESB 4.8.1 for a specific use case.
>
> I'm using a proxy for the scenario [1].
> After processing payload from several class mediators (included in
> registry as sequences)
> I'm sending the messages to a MB Queue.
>
> Message is sent and can be seen in Queue as expected but I'm getting this
> error printed in ESB console [2].
> Please note that this error does not break the mediation flow.
>
> Is this caused by any missing configuration in proxy service?
>
> [1]
> <proxy name="UC1_MessageProcessorAndQueue"
>           transports="https"
>           startOnLoad="true"
>           trace="disable">
>       <description/>
>       <target>
>          <inSequence>
>             <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2"/>
>             <sequence key="conf:/BackendServiceMsgProcessorSequence"/>
>          </inSequence>
>          <outSequence>
>             <sequence key="conf:/PayloadProcessorSequence"/>
>             <send>
>                <endpoint>
>                   <address
> uri="jms:/messageQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;java.naming.provider.url=repository/conf/jndi.properties&amp;transport.jms.DestinationType=queue"/>
>                </endpoint>
>             </send>
>          </outSequence>
>       </target>
>       <policy
> key="conf:/repository/axis2/service-groups/UC1_MessageProcessorAndQueue/services/UC1_MessageProcessorAndQueue/policies/policyFromRegistry"/>
>       <parameter name="disableREST">true</parameter>
>       <parameter name="ScenarioID">policyFromRegistry</parameter>
>       <parameter
> name="secPolicyRegistryPath">conf:/policy/UTOverTransport.xml</parameter>
>       <enableSec/>
>    </proxy>
>
> [2]
> [2015-04-23 23:25:18,209] DEBUG - wire << "<?xml version="1.0"
> encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:esb="http://esb.wso2.org";
> xmlns:soap="soap"><soapenv:Header>[\n]"
> [2015-04-23 23:25:18,210] DEBUG - wire << "      [\n]"
> [2015-04-23 23:25:18,210] DEBUG - wire << "
> </soapenv:Header><soapenv:Body>[\n]"
> [2015-04-23 23:25:18,210] DEBUG - wire << "      <esb:serviceMethod>[\n]"
> [2015-04-23 23:25:18,210] DEBUG - wire << "0[\r][\n]"
> [2015-04-23 23:25:18,215] DEBUG - wire << "[\r][\n]"
> [2015-04-23 23:25:18,215] DEBUG - wire << "         [\n]"
> [2015-04-23 23:25:18,215] DEBUG - wire << "
>  <esb:args0>ABCDEF</esb:args0></esb:serviceMethod>[\n]"
> [2015-04-23 23:25:18,215] DEBUG - wire << "
> </soapenv:Body></soapenv:Envelope>[\r][\n]"
> [2015-04-23 23:25:18,215] DEBUG - wire << "0[\r][\n]"
> [2015-04-23 23:25:18,215] DEBUG - wire << "[\r][\n]"
> [2015-04-23 23:25:18,250] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
> [2015-04-23 23:25:18,250] DEBUG - wire >> "Content-Type: text/xml;
> charset=UTF-8[\r][\n]"
> [2015-04-23 23:25:18,250] DEBUG - wire >> "Date: Thu, 23 Apr 2015 17:55:18
> GMT[\r][\n]"
> [2015-04-23 23:25:18,250] DEBUG - wire >> "Transfer-Encoding:
> chunked[\r][\n]"
> [2015-04-23 23:25:18,250] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]"
> [2015-04-23 23:25:18,251] DEBUG - wire >> "[\r][\n]"
> [2015-04-23 23:25:18,252] DEBUG - wire >> "113[\r][\n]"
> [2015-04-23 23:25:18,253] DEBUG - wire >> "<?xml version="1.0"
> encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns:serviceMethodResponse
> xmlns:ns="http://esb.wso2.org
> "><ns:return>PQRXYZ</ns:return></ns:serviceMethodResponse></soapenv:Body></soapenv:Envelope>[\r][\n]"
> [2015-04-23 23:25:18,254] DEBUG - wire >> "0[\r][\n]"
> [2015-04-23 23:25:18,254] DEBUG - wire >> "[\r][\n]"
> soapbody007: <soapenv:Body xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/";><ns:serviceMethodResponse
> xmlns:ns="http://esb.wso2.org
> "><ns:return>PQRXYZ</ns:return></ns:serviceMethodResponse></soapenv:Body>
> return: PQRXYZ
> [2015-04-23 23:25:18,266]  INFO - LogMediator elementA = PQR, elementB =
> XYZ
> [2015-04-23 23:25:48,579] ERROR - *JMSSender Did not receive a JMS
> response within 30000 ms to destination* :
> direct://amq.direct/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933?routingkey='TempQueuee24f5f02-9531-4e88-ba18-834f179c9933'&exclusive='true'&autodelete='true'
> with JMS correlation ID : ID:36ba5b5f-ec5c-3040-b5a7-1ca722f2e379
> [2015-04-23 23:25:48,611] ERROR - Axis2Sender Unexpected error during
> sending message out
> org.apache.axis2.AxisFault: Did not receive a JMS response within 30000 ms
> to destination :
> direct://amq.direct/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933?routingkey='TempQueuee24f5f02-9531-4e88-ba18-834f179c9933'&exclusive='true'&autodelete='true'
> with JMS correlation ID : ID:36ba5b5f-ec5c-3040-b5a7-1ca722f2e379
> at
> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:231)
> at
> org.apache.axis2.transport.jms.JMSSender.waitForResponseAndProcess(JMSSender.java:312)
> at org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:250)
> at org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:157)
> at
> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
> at
> org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
> at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:309)
> at
> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
> at
> org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:268)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2015-04-23 23:25:48,619]  WARN - EndpointContext Endpoint :
> AnonymousEndpoint will be marked SUSPENDED as it failed
> [2015-04-23 23:25:48,620]  WARN - EndpointContext Suspending endpoint :
> AnonymousEndpoint - last suspend duration was : 30000ms and current suspend
> duration is : 30000ms - Next retry after : Thu Apr 23 23:26:18 IST 2015
> [2015-04-23 23:25:48,620]  INFO - LogMediator To:
> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
> MessageID: urn:uuid:d4ed03e0-0ab2-4c4f-ac82-b64b227d73f5, Direction:
> response, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0,
> ERROR_MESSAGE = Unexpected error during sending message out, Envelope:
> <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><urn:Response
> xmlns:urn="http://esb.wso2.org
> "><urn:elementA>PQR</urn:elementA><urn:elementB>XYZ</urn:elementB></urn:Response></soapenv:Body></soapenv:Envelope>
>
> Thanks,
> Suhan
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to