[2.4 Java] Netty https error

556 views
Skip to first unread message

Konrad Pozniak

unread,
Jun 3, 2015, 3:32:44 PM6/3/15
to play-fr...@googlegroups.com
When  use 

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0")

instead of

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0-M3")

my whole application breaks, all https connections fail:

[error] p.c.s.n.PlayDefaultUpstreamHandler - Exception caught in Netty
java.lang.IllegalArgumentException: empty text
        at org.jboss.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:89) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:191) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:102) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:554) ~[netty-3.10.3.Final.jar:na]
        at org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365) [netty-3.10.3.Final.jar:na]
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) [netty-3.10.3.Final.jar:na]
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.3.Final.jar:na]


Any ideas on how to fix this? Looks like a bug in netty to me.

Konrad Pozniak

unread,
Jun 8, 2015, 4:15:14 AM6/8/15
to play-fr...@googlegroups.com
Deletion and reload of the sbt and ivy2 caches resolved the problem

Kshitij Gupta

unread,
Apr 18, 2016, 7:00:50 PM4/18/16
to play-framework
@Konrad Does that involve steps beyond activator clean? I am stuck at the same problem post I tried to enable https on my local server. Pl suggest.

Igmar Palsenberg

unread,
Apr 25, 2016, 7:41:12 AM4/25/16
to play-framework


Op dinsdag 19 april 2016 01:00:50 UTC+2 schreef Kshitij Gupta:
@Konrad Does that involve steps beyond activator clean? I am stuck at the same problem post I tried to enable https on my local server. Pl suggest.

rm -rf ~/.ivy2/cache/*

Oh, make sure you have a fresh pot of coffee read when doing this.



Igmar
Reply all
Reply to author
Forward
0 new messages