org.jboss.netty.handler.codec.http.DefaultHttpResponse cannot be cast to org.jboss.netty.buffer.ChannelBuffer
이희승 (Trustin Lee)
trustin at gmail.com
Tue Aug 2 23:55:44 EDT 2011
I think this is a bug. It should call sendUpstream() instead. Could you change HttpContentDecoder.java:65 from 'ctx.sendDownstream(e);' to 'ctx.sendUpstream(e);' and let me know if it fixes the problem?
--
Trustin Lee (http://gleamynode.net/)
On Wednesday, August 3, 2011 at 12:27 PM, valodzka wrote:
> Hm, with netty 3.2.5 it became IllegalArgumentException.
>
> Can somebody explain why HttpContentDecoder sends downstream
> upstreamMessageEvent ( HttpResponse 100 Continue)?
>
>
> Caused by: java.lang.IllegalArgumentException: cannot send an upstream event
> to downstream
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:587)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:776)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:65)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.handler.logging.LoggingHandler.handleUpstream(LoggingHandler.java:231)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)
> [netty-3.2.5.Final.jar:na]
> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:522)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:77)
> ~[netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
> [netty-3.2.5.Final.jar:na]
> at
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)
> [netty-3.2.5.Final.jar:na]
>
> --
> 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-tp6620114p6647318.html
> Sent from the Netty User Group mailing list archive at Nabble.com (http://Nabble.com).
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org (mailto:netty-users at lists.jboss.org)
> https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110803/abbc1efc/attachment.html
More information about the netty-users
mailing list