Hey, can someone please help me resolve an issue, i recieve following message and yes URL is intended to be longer then 4096
org.jboss.netty.handler.codec.
frame.TooLongFrameException: An HTTP line is larger than 4096 bytes.
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.readLine(HttpMessageDecoder.java:642) ~[netty.jar:na]
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:182) ~[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]
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:485) ~[netty.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) ~[netty.jar:na]
Configuration for NettyServer.scala in /opt/play/framework/src/play/src/main/scala/play/core/server set to following, however altering this value still producing an error
val maxInitialLineLength = Option(System.getProperty("http.netty.maxInitialLineLength")).map(Integer.parseInt(_)).getOrElse(4096)
val maxHeaderSize = Option(System.getProperty("http.netty.maxHeaderSize")).map(Integer.parseInt(_)).getOrElse(8192)
val maxChunkSize = Option(System.getProperty("http.netty.maxChunkSize")).map(Integer.parseInt(_)).getOrElse(8192)
newPipeline.addLast("decoder", new HttpRequestDecoder(maxInitialLineLength, maxHeaderSize, maxChunkSize))
newPipeline.addLast("encoder", new HttpResponseEncoder())
newPipeline.addLast("decompressor", new HttpContentDecompressor())
newPipeline.addLast("http-pipelining", new HttpPipeliningHandler())
newPipeline.addLast("handler", defaultUpStreamHandler)
newPipeline
Can
someone please point me to the right way to address this, currently
running following version: play 2.2.1 built with Scala 2.10.2 (running
Java 1.6.0_27)
Thank you