You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "luc willems (JIRA)" <ji...@apache.org> on 2007/12/07 12:56:43 UTC

[jira] Created: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

HTTP protocol fails with "Unsupported HTTP version" exception
-------------------------------------------------------------

                 Key: DIRMINA-492
                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
             Project: MINA
          Issue Type: Bug
          Components: Protocol - HTTP
    Affects Versions: 2.0.0-M1
         Environment: JDK 1.6.0 update 3 
test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
test url : http://<server>/gif/l_arrow.gif

            Reporter: luc willems


when running load test using mina/Http protocol
i got Decoder exceptions during "medium/high load" when using 5 thread.

2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 

the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.

i checked the traffic using wireshark and noticed that:
- HTTP request/response seem to be ok (all 200 OK)
- 3 to 5 HTTP request where send before first response
- multible responses would follow each other.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550264 ] 

Trustin Lee commented on DIRMINA-492:
-------------------------------------

It's already there.

> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>            Assignee: Trustin Lee
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

Posted by "Vishal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549914 ] 

Vishal commented on DIRMINA-492:
--------------------------------

Thanks for letting me know :-)




> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>    Affects Versions: 2.0.0-M1
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

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

Emmanuel Lecharny closed DIRMINA-492.
-------------------------------------


> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>            Assignee: Trustin Lee
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

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

Trustin Lee resolved DIRMINA-492.
---------------------------------

    Resolution: Fixed
      Assignee: Trustin Lee

Thank you so much for the reproduceable code.  I successfully reproduced the problem and it was turned out to be the problem of DecodingStateProtocolDecoder.  It has been fixed now; I made sure your test run without an exception.

> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>            Assignee: Trustin Lee
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

Posted by "luc willems (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550189 ] 

luc willems commented on DIRMINA-492:
-------------------------------------


nice , I test it again as soon it is available at the m2 snapshot repository .

	greetings,
	luc



> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>            Assignee: Trustin Lee
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

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

luc willems updated DIRMINA-492:
--------------------------------

    Attachment: HTTPTestCase.java

Test application used.
see comments on how to manipulate url/speed


> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>    Affects Versions: 2.0.0-M1
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

Posted by "Vishal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549887 ] 

Vishal commented on DIRMINA-492:
--------------------------------

I suspect the issue i notice is also the same as this one. this is the stacktrace.

DEBUG 10 Dec 11:25:24,705 - [     NioProcessor-13] (DecodingStateMachine.java: 125) - Ignoring the exception caused by a closed session.
org.apache.mina.filter.codec.ProtocolDecoderException: Unexpected end of session while waiting for a HTTP version field.
        at org.apache.mina.filter.codec.http.HttpVersionDecodingState.finishDecode(HttpVersionDecodingState.java:68)
        at org.apache.mina.filter.codec.statemachine.DecodingStateMachine.finishDecode(DecodingStateMachine.java:112)
        at org.apache.mina.filter.codec.statemachine.DecodingStateMachine.finishDecode(DecodingStateMachine.java:112)
        at org.apache.mina.filter.codec.statemachine.DecodingStateProtocolDecoder.finishDecode(DecodingStateProtocolDecoder.java:49)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:248)
        at org.apache.mina.common.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:365)
        at org.apache.mina.common.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:38)
        at org.apache.mina.common.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:794)
        at org.apache.mina.common.DefaultIoFilterChain$HeadFilter.sessionClosed(DefaultIoFilterChain.java:581)
        at org.apache.mina.common.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:365)
        at org.apache.mina.common.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:360)
        at org.apache.mina.common.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:207)
        at org.apache.mina.common.AbstractPollingIoProcessor.removeNow(AbstractPollingIoProcessor.java:330)
        at org.apache.mina.common.AbstractPollingIoProcessor.remove(AbstractPollingIoProcessor.java:300)
        at org.apache.mina.common.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:43)
        at org.apache.mina.common.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:673)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
DEBUG 10 Dec 11:25:24,705 - [     NioProcessor-13] (DecodingStateMachine.java: 125) - Ignoring the exception caused by a closed session.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at org.apache.mina.filter.codec.http.HttpResponseDecodingState$2.finishDecode(HttpResponseDecodingState.java:121)
        at org.apache.mina.filter.codec.statemachine.DecodingStateMachine.finishDecode(DecodingStateMachine.java:129)
        at org.apache.mina.filter.codec.statemachine.DecodingStateMachine.finishDecode(DecodingStateMachine.java:112)
        at org.apache.mina.filter.codec.statemachine.DecodingStateProtocolDecoder.finishDecode(DecodingStateProtocolDecoder.java:49)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:248)
        at org.apache.mina.common.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:365)
        at org.apache.mina.common.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:38)
        at org.apache.mina.common.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:794)
        at org.apache.mina.common.DefaultIoFilterChain$HeadFilter.sessionClosed(DefaultIoFilterChain.java:581)
        at org.apache.mina.common.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:365)
        at org.apache.mina.common.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:360)
        at org.apache.mina.common.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:207)
        at org.apache.mina.common.AbstractPollingIoProcessor.removeNow(AbstractPollingIoProcessor.java:330)
        at org.apache.mina.common.AbstractPollingIoProcessor.remove(AbstractPollingIoProcessor.java:300)
        at org.apache.mina.common.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:43)
        at org.apache.mina.common.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:673)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)


> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>    Affects Versions: 2.0.0-M1
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

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

Trustin Lee updated DIRMINA-492:
--------------------------------

    Affects Version/s:     (was: 2.0.0-M1)

> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>            Assignee: Trustin Lee
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-492) HTTP protocol fails with "Unsupported HTTP version" exception

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549911 ] 

Trustin Lee commented on DIRMINA-492:
-------------------------------------

The exceptions logged in DEBUG level are safe to ignore.  They are logged when a session is closed.

> HTTP protocol fails with "Unsupported HTTP version" exception
> -------------------------------------------------------------
>
>                 Key: DIRMINA-492
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-492
>             Project: MINA
>          Issue Type: Bug
>          Components: Protocol - HTTP
>    Affects Versions: 2.0.0-M1
>         Environment: JDK 1.6.0 update 3 
> test server : Apache 2.2.4  using MPM workers on openSUSE 10.3
> test url : http://<server>/gif/l_arrow.gif
>            Reporter: luc willems
>         Attachments: HTTPTestCase.java
>
>
> when running load test using mina/Http protocol
> i got Decoder exceptions during "medium/high load" when using 5 thread.
> 2007-12-07 12:43:35,997|pool-3-thread-8|ERROR|HTTPTestCase.exceptionCaught(49)|error: org.apache.mina.filter.codec.http.HttpRequestDecoderException: Unsupported HTTP version: 9-95-ea36a8c0" (Hexdump: 0A 41 63 63 65 70 74 2D 52 61 
> the "9-95-ea36A8c0" belongs to the ETag header which is the 5 header in the response.
> i checked the traffic using wireshark and noticed that:
> - HTTP request/response seem to be ok (all 200 OK)
> - 3 to 5 HTTP request where send before first response
> - multible responses would follow each other.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.