[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-1046) HTTPClientInvoker throws NullPointerException when HttpURLConnection.getInputStream() returns null

Ron Sigal (JIRA) jira-events at lists.jboss.org
Sat Oct 25 02:26:21 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBREM-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12435469#action_12435469 ] 

Ron Sigal commented on JBREM-1046:
----------------------------------

HTTPClientInvoker.useHttpURLConnection() now checks if HttpURLConnection.getInputStream() returns null.

There is no particular unit test.  In fact, CoyoteInvoker always returns an Exception along with an error code of 500, so it's not clear how to reproduce the problem inside Remoting.

Will observe hudson results before closing issue.

> HTTPClientInvoker throws NullPointerException when HttpURLConnection.getInputStream() returns null
> --------------------------------------------------------------------------------------------------
>
>                 Key: JBREM-1046
>                 URL: https://jira.jboss.org/jira/browse/JBREM-1046
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.5.0.GA (Flounder)
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>             Fix For: 2.5.0.SP1 (Flounder)
>
>
> When an HTTP server returns an error code and no content, it is possible for java.net.HttpUrlConnection.getInputStream() to retun null, which causes a NullPointerException in org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection().

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

        



More information about the jboss-remoting-issues mailing list