Closed erelsgl closed 11 years ago
I added some details to log during such cases. Does it helpful?
I looked at the commit and it looks helpful, thank you!
On Sun, Jan 6, 2013 at 12:00 PM, Nikita Koksharov notifications@github.comwrote:
I added some details to log during such cases. Does it helpful?
— Reply to this email directly or view it on GitHubhttps://github.com/mrniko/netty-socketio/issues/36#issuecomment-11926489.
As a test, I started a server with no listeners at all:
I then sent it a message from the "event-index.html" of the demo.
I got a null pointer exception, with no explanation about what I did wrong....
I would be happy to get a clearer error message:
ERROR 09:56:22 [New I/O worker #2 PacketHandler]: Exception occurs java.lang.NullPointerException at com.fasterxml.jackson.databind.ObjectMapper.treeToValue(ObjectMapper.java:1807) at com.corundumstudio.socketio.parser.JacksonJsonSupport$EventDeserializer.deserialize(JacksonJsonSupport.java:161) at com.corundumstudio.socketio.parser.JacksonJsonSupport$EventDeserializer.deserialize(JacksonJsonSupport.java:1) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2796) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:1988) at com.corundumstudio.socketio.parser.JacksonJsonSupport.readValue(JacksonJsonSupport.java:218) at com.corundumstudio.socketio.parser.Decoder.decodePacket(Decoder.java:160) at com.corundumstudio.socketio.parser.Decoder.decodePackets(Decoder.java:259) at com.corundumstudio.socketio.handler.PacketHandler.messageReceived(PacketHandler.java:67) at com.corundumstudio.socketio.handler.ResourceHandler.messageReceived(ResourceHandler.java:117) at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:415) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at com.corundumstudio.socketio.transport.WebSocketTransport.receivePackets(WebSocketTransport.java:141) at com.corundumstudio.socketio.transport.WebSocketTransport.messageReceived(WebSocketTransport.java:90) at com.corundumstudio.socketio.transport.XHRPollingTransport.messageReceived(XHRPollingTransport.java:95) at com.corundumstudio.socketio.handler.AuthorizeHandler.messageReceived(AuthorizeHandler.java:99) at com.corundumstudio.socketio.handler.PacketHandler.messageReceived(PacketHandler.java:79) at com.corundumstudio.socketio.handler.ResourceHandler.messageReceived(ResourceHandler.java:117) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:313) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)