You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org> on 2013/07/19 20:02:48 UTC

[jira] [Resolved] (SYNAPSE-866) Incorrect error handling in HttpCoreNIOSender#sendAsyncResponse

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

Hiranya Jayathilaka resolved SYNAPSE-866.
-----------------------------------------

    Resolution: Fixed

Removed the code block in question. Now in case of an IllegalStateException, Synapse will log a more general error message with the full stacktrace and also throw an AxisFault.
                
> Incorrect error handling in HttpCoreNIOSender#sendAsyncResponse
> ---------------------------------------------------------------
>
>                 Key: SYNAPSE-866
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-866
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>            Reporter: Andreas Veithen
>            Assignee: Hiranya Jayathilaka
>
> HttpCoreNIOSender#sendAsyncResponse has a code block with a catch block for IllegalStateException that logs a warning "Connection closed by client". However, since IllegalStateException is an unchecked exception, it may be thrown anywhere in the code block. In particular, the code block calls the Axis2 message formatter. If the formatter fails with IllegalStateException, then the error is not logged and the only message is "Connection closed by client" which is incorrect.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org