You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Steffen Pingel (JIRA)" <ji...@apache.org> on 2007/02/12 18:23:05 UTC

[jira] Created: (HTTPCORE-44) NPE in BufferingHttpServiceHandler when request is invalid

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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Resolved: (HTTPCORE-44) NPE in BufferingHttpServiceHandler when request is invalid

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-44.
---------------------------------------

    Resolution: Fixed

Checked in a fix for the bug. Please re-test and re-open the report of the problem persists.

Oleg 

> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Assigned: (HTTPCORE-44) NPE in BufferingHttpServiceHandler when request is invalid

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski reassigned HTTPCORE-44:
-----------------------------------------

    Assignee: Oleg Kalnichevski

> 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
>
> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Updated: (HTTPCORE-44) NPE in BufferingHttpServiceHandler when request is invalid

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCORE-44:
--------------------------------------

    Fix Version/s: 4.0-alpha4

> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCORE-44) NPE in BufferingHttpServiceHandler when request is invalid

Posted by "Steffen Pingel (JIRA)" <ji...@apache.org>.
    [ 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org