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

Error during data processing. #303

Closed
pbondar opened this issue Jan 6, 2016 · 5 comments
Closed

Error during data processing. #303

pbondar opened this issue Jan 6, 2016 · 5 comments

Comments

@pbondar
Copy link

pbondar commented Jan 6, 2016

[ERROR] [] [com.corundumstudio.socketio.handler.InPacketHandler.channelRead0] [nioEventLoopGroup-3-6] [Error during data processing. Client sessionId: 9e0aa38e-637e-4594-a265-d9928382ca5c, data: 10:40/clipath]
java.lang.IllegalStateException: null
at com.corundumstudio.socketio.protocol.PacketType.valueOfInner(PacketType.java:57)
at com.corundumstudio.socketio.protocol.PacketDecoder.readInnerType(PacketDecoder.java:94)
at com.corundumstudio.socketio.protocol.PacketDecoder.decode(PacketDecoder.java:174)
at com.corundumstudio.socketio.protocol.PacketDecoder.decodePackets(PacketDecoder.java:144)
at com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:65)
at com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:36)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:270)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
at com.corundumstudio.socketio.transport.PollingTransport.onPost(PollingTransport.java:161)
at com.corundumstudio.socketio.transport.PollingTransport.handleMessage(PollingTransport.java:120)
at com.corundumstudio.socketio.transport.PollingTransport.channelRead(PollingTransport.java:97)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at com.corundumstudio.socketio.handler.AuthorizeHandler.channelRead(AuthorizeHandler.java:132)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)

@mrniko
Copy link
Owner

mrniko commented Jan 12, 2016

which lib version do you use? I can't reproduce it with netty-socketio 1.7.8

@pbondar
Copy link
Author

pbondar commented Jan 12, 2016

no problem with netty-socketio 1.7.8.
I'm reproduced it on 1.7.9-SNAPSHOT(the last one from trunk).
But maybe problem with client version.

@mrniko
Copy link
Owner

mrniko commented Jan 12, 2016

Can't reproduce it with test like this on master branch:

        PacketDecoder d = new PacketDecoder(null, null);
        ByteBuf buf = Unpooled.wrappedBuffer("10:40/clipath".getBytes());
        d.decodePackets(buf, null);

@pbondar
Copy link
Author

pbondar commented Jan 12, 2016

yes, you are right, in test works ok.

Will check my server. Thanks for help.

@pbondar
Copy link
Author

pbondar commented Jan 15, 2016

Hi, problem exist when packet data like 'd=', in my case 'd=10:40/clipath'

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

No branches or pull requests

2 participants