Hi All,

When I use call mediator in my sequence as below it gives error [1].

<call blocking="true">

    <endpoint *key-expression*="$ctx:SAMPLE_ENDPOINT"/>

</call>
If I change the code as any of below, its works fine.

<call>

    <endpoint *key-expression*="$ctx:SAMPLE_ENDPOINT"/>

</call>

<call blocking="true">

    <endpoint *key="*gov:/testEndpoint*"*/>

</call>

Do we have a problem in Call mediator with the combination of *blocking=true
*and *key-expression *in endpoint ?


[1] org.apache.synapse.SynapseException: Error while performing the call
operation
at
org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
at
org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
at
org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at
org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at
org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
at
org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)


Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
twitter: https://twitter.com/godwinamila
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to