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
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]