ws-sandesha-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SAND-11) RMMessageProcessorIdentifier throws NullPointerException when processing an empty SOAP envelope
Date Fri, 28 Sep 2007 12:54:03 GMT

     [ https://issues.apache.org/jira/browse/SAND-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Davanum Srinivas updated SAND-11:
---------------------------------

    Assignee:     (was: Davanum Srinivas)

> RMMessageProcessorIdentifier throws NullPointerException when processing an empty SOAP
envelope
> -----------------------------------------------------------------------------------------------
>
>                 Key: SAND-11
>                 URL: https://issues.apache.org/jira/browse/SAND-11
>             Project: Sandesha
>          Issue Type: Bug
>         Environment: Windows XP
> Axis 1.4
> Sandesha 1.0
>            Reporter: Akitoshi Yoshida
>         Attachments: changed.zip
>
>
> This problem occurs, when the response message to the TerminateSequence is not HTTP202
but
> HTTP200 with an empty SOAP envelope. In this case, RMMessageProcessorIdentifier tries
to find the Sequence object and reading its value, because the sequence object is null, resulting
in a NullPointerException.
> It would be better to check the existance of this object to avoid a NPE.
> The following change prevents a NPE to be thrown.
> org.apache.sandesha.server.RMMessageProcessorIdentifier#getMessageProcessor
> 53c53
> <                     rmHeaders.getSequence().getMessageNumber() != null) {
> ---
> >                     (rmHeaders.getSequence() != null && rmHeaders.getSequence().getMessageNumber()
!= null)) {
> 58c58
> <                 rmHeaders.getSequence().getMessageNumber() != null) {
> ---
> >                 (rmHeaders.getSequence() != null && rmHeaders.getSequence().getMessageNumber()
!= null)) {

-- 
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: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Mime
View raw message