synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Linton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SYNAPSE-443) If ClientHandler receives a response of bad request from http server, causes many NullPointerExceptions.
Date Mon, 20 Oct 2008 19:43:44 GMT

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

Ruwan Linton resolved SYNAPSE-443.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

Fixed on the trunk..

> If ClientHandler receives a response of bad request from http server, causes many NullPointerExceptions.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-443
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-443
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 1.3
>            Reporter: Jason Walton
>            Assignee: Ruwan Linton
>             Fix For: 1.3
>
>
> In ClientHandler.responseReceived(), if the resposne.getStatusLine().getStatusCode()
is HttpStatus.SC_BAD_REQUEST, we log the error and return.  After this, IO Reactor tries to
stream the response content to us with a call to inputReady(), however the RESPONSE_SINK_BUFFER
will be null, so we throw a NullPointerException.  IO Reactor will continue to try to deliver
content to us, so the result is a huge pile of NullPointerExceptions.
> Easy fix seems to be to call "processResponse()" in the SC_BAD_REQUEST case of the switch
statement, like every other case does.

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


Mime
View raw message