You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running org.jboss.netty.example.proxy.hexDumpProxy I get an NPE in HexDumpProxyInboundHandler.channelInterestChanged when a new connection arrives:
publicvoidchannelInterestChanged(ChannelHandlerContextctx,
ChannelStateEvente) throwsException {
// If inboundChannel is not saturated anymore, continue accepting// the incoming traffic from the outboundChannel.synchronized (trafficLock) {
if (e.getChannel().isWritable()) {
outboundChannel.setReadable(true);
}
}
}
I think this happens because in channelOpen inboundChannel.setReadable(false); is called before executing outboundChannel = f.getChannel();
The text was updated successfully, but these errors were encountered:
Here's the stack trace. I'm using a recent 3.4.1.Final-SNAPSHOT for testing.
Proxying *:1919 to www.google.co.uk:80 ...
java.lang.NullPointerException
at org.jboss.netty.example.proxy.HexDumpProxyInboundHandler.channelInterestChanged(HexDumpProxyInboundHandler.java:102)
at org.jboss.netty.channel.Channels.fireChannelInterestChanged(Channels.java:361)
at org.jboss.netty.channel.Channels$3.run(Channels.java:349)
at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:41)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processEventQueue(AbstractNioWorker.java:352)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:236)
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:722)
Running
org.jboss.netty.example.proxy.hexDumpProxy
I get an NPE inHexDumpProxyInboundHandler.channelInterestChanged
when a new connection arrives:I think this happens because in channelOpen
inboundChannel.setReadable(false);
is called before executingoutboundChannel = f.getChannel();
The text was updated successfully, but these errors were encountered: