NullPointerException when endpoint/[EMAIL PROTECTED]"pox" and endpoint is
returning exception (500 error)
-------------------------------------------------------------------------------------------------------
Key: SYNAPSE-142
URL: https://issues.apache.org/jira/browse/SYNAPSE-142
Project: Synapse
Issue Type: Bug
Affects Versions: 1.0
Reporter: Upul Godage
Assignee: Asankha C. Perera
synapse_sample_100.xml: modified format="pox"
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy">
<target>
<endpoint>
<address format="pox"
uri="http://localhost:9001/soap/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<send/>
</outSequence>
</target>
<apublishWSDL
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
</definitions>
samples/axis2Server:
SimpleStockQuoteService.java modified as below.
public GetQuoteResponse getQuote(GetQuote request) {
System.out.println(new Date() + " " + this.getClass().getName() +
" :: Generating quote for : " + request.getSymbol());
if(1==1)
throw new RuntimeException("TESTING");
return new GetQuoteResponse(request.getSymbol());
}
POX returned from axis2Server:
HTTP/1.1 500 Internal Server Error
Content-Type: application/xml; charset=UTF-8
Date: Wed, 10 Oct 2007 09:46:57 GMT
Server: Synapse-HttpComponents-NIO
Transfer-Encoding: chunked
Connection: Close
22
<faultstring>TESTING</faultstring>
0
Synapse log:
2007-10-10 15:31:00,674 [127.0.1.1-upul] [HttpServerWorker-1] INFO
TimeoutHandler This engine will expire all callbacks after : 86400 seconds,
irrespective of the timeout action, after the specified or optional timeout
2007-10-10 15:31:00,783 [127.0.1.1-upul] [I/O dispatcher 3] ERROR ClientHandler
Received an internal server error : Internal Server Error
Exception in thread "HttpCoreNIOSender" java.lang.NullPointerException
at
org.apache.axis2.transport.nhttp.ClientHandler.inputReady(ClientHandler.java:223)
at
org.apache.axis2.transport.nhttp.LoggingNHttpClientHandler.inputReady(LoggingNHttpClientHandler.java:113)
at
org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:135)
at
org.apache.axis2.transport.nhttp.PlainClientIOEventDispatch.inputReady(PlainClientIOEventDispatch.java:71)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:94)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:189)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:174)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:137)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:69)
at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:281)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]