[ 
https://issues.apache.org/jira/browse/HTTPCORE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472381
 ] 

Steffen Pingel commented on HTTPCORE-44:
----------------------------------------

Thanks for the quick response and fix! The returned response is now "HTTP/1.0 
400 Bad Request" and no exceptions are thrown.

> NPE in BufferingHttpServiceHandler when request is invalid
> ----------------------------------------------------------
>
>                 Key: HTTPCORE-44
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-44
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>            Reporter: Steffen Pingel
>         Assigned To: Oleg Kalnichevski
>             Fix For: 4.0-alpha4
>
>
> I get a NullPointerException in BufferingHttpServiceHandler on head of 
> HttpCore when sending an invalid request. The exception is 
> "org.apache.http.ProtocolException: Invalid request line: / HTTP/1.1" which 
> is delegated in DefaultNHttpServerConnection.consumeInput() to 
> BufferingHttpServiceHandler which assumes that a valid request has been 
> constructed which is not the case:
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.http.nio.protocol.BufferingHttpServiceHandler.handleException(BufferingHttpServiceHandler.java:294)
>       at 
> org.apache.http.nio.protocol.BufferingHttpServiceHandler.exception(BufferingHttpServiceHandler.java:196)
>       at 
> org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:119)
>       at 
> org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:77)
> [...]

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to