You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/09/28 14:54:03 UTC
[jira] Updated: (SAND-11) RMMessageProcessorIdentifier throws
NullPointerException when processing an empty SOAP envelope
[ 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