[ http://issues.apache.org/jira/browse/SANDESHA2-59?page=all ]

Andrew Gatford updated SANDESHA2-59:
------------------------------------

    Attachment: ACKRequestNPE.patch

> NullPointerException thrown when processing a AckRequest for an unknown 
> sequence
> --------------------------------------------------------------------------------
>
>                 Key: SANDESHA2-59
>                 URL: http://issues.apache.org/jira/browse/SANDESHA2-59
>             Project: Apache Sandesha2
>          Issue Type: Bug
>            Reporter: Andrew Gatford
>            Priority: Minor
>         Attachments: ACKRequestNPE.patch
>
>
> If an AckRequest message is received for a sequence that is not known, then 
> the following NullPointerException is returned.
>   
>        <soapenv:Fault>
>             <faultcode>soapenv:Client</faultcode>
>             <faultstring>Sandesha2 got an exception when processing an in 
> message: java.lang.NullPointerException</faultstring>
>             <detail>
>                <Exception>org.apache.axis2.AxisFault: Sandesha2 got an 
> exception when processing an in message: java.lang.NullPointerException; 
> nested exception is:  java.lang.NullPointerException&#xd;     at 
> org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:156)&#xd;
>       at org.apache.axis2.engine.Phase.invoke(Phase.java:382)&#xd;    at 
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:245)&#xd;  at 
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:164)&#xd; at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:334)&#xd;
>   at 
> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:230)&#xd;
>       at 
> org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService(DefaultHttpServiceProcessor.java:180)&#xd;
>       at 
> org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123)&#xd;
>       at 
> org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(DefaultHttpServiceProcessor.java:252)&#xd;
>       at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)&#xd;
>       at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)&#xd;
>       at java.lang.Thread.run(Thread.java:797)&#xd;
> Caused by: java.lang.NullPointerException&#xd;
>       at 
> org.apache.sandesha2.msgprocessors.AckRequestedProcessor.processAckRequestedHeader(AckRequestedProcessor.java:143)&#xd;
>       at 
> org.apache.sandesha2.msgprocessors.AckRequestedProcessor.processAckRequestedHeaders(AckRequestedProcessor.java:88)&#xd;
>       at 
> org.apache.sandesha2.handlers.SandeshaInHandler.invoke(SandeshaInHandler.java:127)&#xd;
>       ... 11 more&#xd;
> </Exception>
>             </detail>
>          </soapenv:Fault>
> This is because there is no check for sequence existence inside the 
> AckRequestedProcessor::processAckRequestedHeader

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to