Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push message have error,what can I do ?help #228

Open
blogsit opened this issue Apr 27, 2015 · 4 comments
Open

push message have error,what can I do ?help #228

blogsit opened this issue Apr 27, 2015 · 4 comments

Comments

@blogsit
Copy link

blogsit commented Apr 27, 2015

io.netty.handler.codec.DecoderException: HttpRequestDecoder.decode() did not read anything but decoded a message.
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:287) ~[netty-codec-4.0.25.Final.jar:4.0.25.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:168) ~[netty-codec-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-transport-4.0.25.Final.jar:4.0.25.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [netty-common-4.0.25.Final.jar:4.0.25.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-common-4.0.25.Final.jar:4.0.25.Final]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]

@pablojr
Copy link

pablojr commented Apr 27, 2015

First of all, I would suggest you improve your post, giving more details about your environment and application (i.e. Java version, netty-socketio version, OS, if you're using an app container) and what you're trying to achieve with socket.io that leads to this error happening.
Please remember that this group/forum is comprised of software developers, not magicians or fortune tellers that can see the future!

@mrniko
Copy link
Owner

mrniko commented Apr 27, 2015

@blogsit

setup a logging level to 'trace' mode. this will show you a packet causes this error

@blogsit
Copy link
Author

blogsit commented Apr 30, 2015

@mrniko thanks
now I have new problem, socket can't disconnection , Do load balancing three virtual machine, the machine configuration is 8 gb of memory, Occasional connection can't disconnection, continually restart server connections will be normal

@blogsit
Copy link
Author

blogsit commented Apr 30, 2015

use netty socket.io version 1.7.7 socket.io version 1.3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants