|
|
@ -20,6 +20,7 @@ import java.util.Collections; |
|
|
|
import org.jboss.netty.buffer.ChannelBuffer; |
|
|
|
import org.jboss.netty.channel.ChannelHandler.Sharable; |
|
|
|
import org.jboss.netty.channel.ChannelHandlerContext; |
|
|
|
import org.jboss.netty.channel.ExceptionEvent; |
|
|
|
import org.jboss.netty.channel.MessageEvent; |
|
|
|
import org.jboss.netty.channel.SimpleChannelUpstreamHandler; |
|
|
|
import org.jboss.netty.util.CharsetUtil; |
|
|
@ -76,4 +77,9 @@ public class PacketHandler extends SimpleChannelUpstreamHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { |
|
|
|
log.error("Exception occurs", e.getCause()); |
|
|
|
} |
|
|
|
|
|
|
|
} |