org.jboss.netty.handler.codec.http.DefaultHttpResponse cannot be cast to org.jboss.netty.buffer.ChannelBuffer
valodzka
valodzka at gmail.com
Mon Jul 25 17:03:59 EDT 2011
After upgrading from 3.2.1 to 3.2.4 I got exception for simple pipeline
setup:
java.lang.ClassCastException:
org.jboss.netty.handler.codec.http.DefaultHttpResponse cannot be cast to
org.jboss.netty.buffer.ChannelBuffer
at org.jboss.netty.channel.socket.oio.OioWorker.write(OioWorker.java:116)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(OioClientSocketPipelineSink.java:84)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.logging.LoggingHandler.handleDownstream(LoggingHandler.java:237)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:65)
~[netty-3.2.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:522)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.logging.LoggingHandler.handleUpstream(LoggingHandler.java:231)
~[netty-3.2.4.Final.jar:na]
at
org.jboss.netty.handler.timeout.ReadTimeoutHandler.messageReceived(ReadTimeoutHandler.java:186)
~[netty-3.2.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
~[netty-3.2.4.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
~[netty-3.2.4.Final.jar:na]
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90)
~[netty-3.2.4.Final.jar:na]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_26]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_26]
ChannelPipeline pipe = new LoaderPipeline(task);
pipe.addLast("timeout", new ReadTimeoutHandler(timer,
task.taskSettings.getReadTimeout()));
pipe.addLast("logger", new LoggingHandler(InternalLogLevel.DEBUG));
pipe.addLast("decoder", new HttpResponseDecoder());
AFAIK problem with this commit
https://github.com/netty/netty/commit/4fd034ab5d28ac96d2ab59f33753d6b4d4c025b1
"100-continue response must be passed through."
Is it netty bug or I should change something?
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/org-jboss-netty-handler-codec-http-DefaultHttpResponse-cannot-be-cast-to-org-jboss-netty-buffer-Chanr-tp6620114p6620114.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list