[2.2.0-Java] netty exception about invalid version format

11,422 views
Skip to first unread message

Jun Han

unread,
Oct 24, 2013, 1:20:35 PM10/24/13
to play-fr...@googlegroups.com
Hi,

After upgrade to 2.2 from 2.1.2 this week, the netty exception comes out.
Everything is the same and I cannot figure out what is wrong with this decode exception.
Does someone have the same experience?

[error] p.nettyException - Exception caught in Netty
java
.lang.IllegalArgumentException: invalid version format: �~ᅪモᄏ.リ7'￷ユV;゚ᅡX¥���ᅤ(￀
        at org.jboss.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:102) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) ~[netty.jar:na]
[error] p.nettyException - Exception caught in Netty
java.lang.IllegalArgumentException: empty text
        at org.jboss.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:97) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) ~[netty.jar:na]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) ~[netty.jar:na]

Best regards,
Jun Han

Jun Han

unread,
Oct 24, 2013, 4:38:18 PM10/24/13
to play-fr...@googlegroups.com
Hi guys,

We managed to isolate the issue.
The browser tried to request an image resource with a url of https://localhost:9000/path/to/image.
And this https caused the exception.
After we replace https with http, netty works fine now.

Best regards,
Jun Han

Bin Shi

unread,
Dec 10, 2013, 1:10:22 AM12/10/13
to play-fr...@googlegroups.com
Hi,

I came across the same problem. Have you resolve it?


在 2013年10月25日星期五UTC+8上午1时20分35秒,Jun Han写道:

Jun Han

unread,
Dec 10, 2013, 1:22:37 PM12/10/13
to play-fr...@googlegroups.com
Hi,

As mentioned in my last email, the issue was due to sending https requests to localhost.
The solutions are:
1. easy way: keep localhost url, but replace https with http
2. hard way: set up correct domain name mapping by messing around with /etc/hosts and configure ssl to run on your localhost
 
Hope it helps.



--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/ip6cT70VjZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Bin Shi

unread,
Dec 12, 2013, 4:20:17 AM12/12/13
to play-fr...@googlegroups.com
Thank you.
The problem I came across happen when I use the play framework to run the source code of silk-workbench[1]. The URL is http://192.168.0.101:9000
The first way can not resolve the problem.

在 2013年12月11日星期三UTC+8上午2时22分37秒,Jun Han写道:
Reply all
Reply to author
Forward
0 new messages