[ 
https://wso2.org/jira/browse/ESBJAVA-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Evanthika Amarasiri closed ESBJAVA-422.
---------------------------------------


Tested on wso2esb-1.7. Tried out with the given configuration and the 
NullPointerException was not thrown. The issue can be closed

> NullpointerException thrown when a Callout mediator is specified inline 
> inside a Proxy Service
> ----------------------------------------------------------------------------------------------
>
>                 Key: ESBJAVA-422
>                 URL: https://wso2.org/jira/browse/ESBJAVA-422
>             Project: WSO2 ESB
>          Issue Type: Bug
>    Affects Versions: 1.6-QA-b3
>         Environment: Ubuntu7.04, JDK1.5.0_12
>            Reporter: Evanthika Amarasiri
>            Assignee: indika kumara
>             Fix For: 1.7
>
>
> Created a Proxy service as below with an inline Callout mediator
> <syn:definitions xmlns:syn="http://ws.apache.org/ns/synapse";>
>     <syn:proxy name="Callout_Proxy" transports="https http" 
> startOnLoad="true">
>         <syn:target outSequence="out">
>             <syn:inSequence>
>                 <syn:callout 
> serviceURL="http://localhost:9000/soap/SimpleStockQuoteService"; 
> action="urn:getQuote">
>                     <syn:source 
> xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:s12="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:ns1="http://org.apache.synapse/xsd"; 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xpath="s11:Body/child::*[fn:position()=1] | 
> s12:Body/child::*[fn:position()=1]"/>
>                     <syn:target 
> xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:s12="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:ns1="http://org.apache.synapse/xsd"; 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xpath="s11:Body/child::*[fn:position()=1] | 
> s12:Body/child::*[fn:position()=1]"/>
>                 </syn:callout>
>                 <syn:property name="REESPONSE" value="true"/>
>                 <syn:header name="To" action="remove"/>
>                 <syn:send/>
>                 <syn:drop/>
>             </syn:inSequence>
>         </syn:target>
>     </syn:proxy>
>     <syn:sequence statistics="enable" name="out">
>         <syn:send/>
>     </syn:sequence>
> </syn:definitions>
> Received a NEP on the ESB console as below
> *****************************************************************************************************************************************************************************************************************************
> 2008-01-18 08:58:07,634 [10.100.1.97-testc-ubuntu] [HttpServerWorker-1] ERROR 
> CalloutMediator Error invoking service : 
> http://localhost:9000/soap/SimpleStockQuoteService with action : urn:getQuote
> java.lang.NullPointerException
>         at 
> org.apache.synapse.mediators.builtin.CalloutMediator.mediate(CalloutMediator.java:78)
>         at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
>         at 
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122)
>         at 
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:140)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at 
> org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:226)
>         at 
> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:190)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 2008-01-18 08:58:07,638 [10.100.1.97-testc-ubuntu] [HttpServerWorker-1]  WARN 
> ProxyServiceMessageReceiver Executing fault handler due to exception 
> encountered
> 2008-01-18 08:58:07,639 [10.100.1.97-testc-ubuntu] [HttpServerWorker-1]  WARN 
> FaultHandler Fault handler - setting ERROR_MESSAGE : Error invoking service : 
> http://localhost:9000/soap/SimpleStockQuoteService with action : urn:getQuote
> 2008-01-18 08:58:07,640 [10.100.1.97-testc-ubuntu] [HttpServerWorker-1]  WARN 
> FaultHandler Fault handler - setting ERROR_DETAIL : 
> org.apache.synapse.SynapseException: Error invoking service : 
> http://localhost:9000/soap/SimpleStockQuoteService with action : urn:getQuote
>         at 
> org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:220)
>         at 
> org.apache.synapse.mediators.builtin.CalloutMediator.mediate(CalloutMediator.java:123)
>         at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
>         at 
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122)
>         at 
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:140)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at 
> org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:226)
>         at 
> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:190)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.synapse.mediators.builtin.CalloutMediator.mediate(CalloutMediator.java:78)
>         ... 10 more
> 2008-01-18 08:58:07,640 [10.100.1.97-testc-ubuntu] [HttpServerWorker-1]  WARN 
> FaultHandler Fault handler - setting ERROR_EXCEPTION : 
> org.apache.synapse.SynapseException: Error invoking service : 
> http://localhost:9000/soap/SimpleStockQuoteService with action : urn:getQuote

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to