NullPointerException thrown when trying out SwA optimization when the required
service is not available
-------------------------------------------------------------------------------------------------------
Key: SYNAPSE-419
URL: https://issues.apache.org/jira/browse/SYNAPSE-419
Project: Synapse
Issue Type: Bug
Affects Versions: 1.2
Environment: Ubuntu7.10, JDK1.5.0_14
Reporter: Evanthika Amarasiri
Assignee: Ruwan Linton
Tried out the below configuration where a document is being sent to be uploaded
through SwA. When the request is sent from the client it fails since the
service required to do this task is not available and then a
NullPointerException is thrown on the Synapse console.
The configuration tried out is as below
******************************************************************************************************
<definitions xmlns="http://ws.apache.org/ns/synapse">
<in>
<filter source="get-property('Action')"
regex="urn:uploadFileUsingSwA">
<property name="example" value="swa"/>
<send>
<endpoint>
<address
uri="http://localhost:9000/soap/MTOMSwASampleService" optimize="swa"/>
</endpoint>
</send>
</filter>
</in>
<out>
<filter source="get-property('example')" regex="swa">
<property name="enableSwA" value="true" scope="axis2"/>
</filter>
<send/>
</out>
</definitions>
When executing the client, the following exception was thrown
2008-08-04 11:27:50,661 [127.0.1.1-evanthika-laptop] [I/O dispatcher 3] WARN
HttpCoreNIOSender System may be unstable: IOReactor encountered a runtime
exception : null
java.lang.NullPointerException
at
org.apache.synapse.transport.nhttp.ClientHandler.outputReady(ClientHandler.java:353)
at
org.apache.http.impl.nio.DefaultNHttpClientConnection.produceOutput(DefaultNHttpClientConnection.java:170)
at
org.apache.http.impl.nio.DefaultClientIOEventDispatch.outputReady(DefaultClientIOEventDispatch.java:105)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:114)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:198)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:180)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:142)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:70)
at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:318)
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]