FrameEncode.decode() is not invoked

olle oleg at mobbie.net
Thu Aug 6 11:40:56 EDT 2009


The problem is solved.
I've tried to use the same instance as decoder and handler and also the
decoder has implemented messageReceived() which has prevented the superclass
to invoke decode() method.

Eventually I've splitted the functionality into two different classes - one
implements decode() and another messageReceived().

:-)




olle wrote:
> 
> Hi,
> 
> Probably I miss something basic but for some reason my FrameDecoder
> derived handler's decode() is never invoked.
> The same object works great for UDP and TCP however TCP messages are
> prefixed with a 4 bytes data length that should be handled in the decode
> function.
> 
> Any clue will be highly appreciated.
> 
> Handler code is attached.
>  http://n2.nabble.com/file/n3398871/ClientHandler.java ClientHandler.java 
> 

-- 
View this message in context: http://n2.nabble.com/FrameEncode.decode%28%29-is-not-invoked-tp3398871p3399019.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list