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

Ron Sigal (JIRA) jira-events at lists.jboss.org
Thu Nov 13 17:38:36 EST 2008


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

Ron Sigal commented on JBREM-1052:
----------------------------------

Applied changes from JBREM-1046.  In particular:

 A new variable, HTTPClientInvoker.UNMARSHAL_NULL_STREAM (actual value "unmarshalNullStream"), has been added to control this behavior. If it is set to "true", which is the default value, the default behavior occurs. If it is set to "false", the call to UnMarshaller.read() is skipped.

Unit test: org.jboss.test.remoting.transport.http.NullInputStreamTestCase. 

Unit test is passing locally.  Will run full HTTP test suite.

> CLONE [JBREM-1046] - HTTPClientInvoker throws NullPointerException when HttpURLConnection.getInputStream() returns null
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBREM-1052
>                 URL: https://jira.jboss.org/jira/browse/JBREM-1052
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.2.2.SP10
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>             Fix For: 2.2.2.SP11
>
>
> 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