[SNMP4J] Uncaught CancelledKeyException

Frank Fock fock at agentpp.com
Wed Sep 30 23:39:01 CEST 2009


Patrick,

This is a bug which is caused at some different
code location. There are cases were a channel
is not closed but only its selector key is canceled
instead.

This seems to have a couple of negative consequences.
I will fix the source of the problem for 1.10.2.

Best regards,
Frank

Patrick Marchwiak wrote:
> Is there a reason the following CancelledKeyException is not getting caught
> by snmp4j?
> 
> INFO   | jvm 1    | 2009/09/30 17:15:43 | Exception in thread
> "DefaultTCPTransportMapping_127.0.0.1/0"
> java.nio.channels.CancelledKeyException
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> sun.nio.ch.SelectionKeyImpl.ensureV
> alid(Unknown Source)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> sun.nio.ch.SelectionKeyImpl.interestOps(Unknown Source)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> java.nio.channels.spi.AbstractSelectableChannel.register(Unknown Source)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> java.nio.channels.SelectableChannel.register(Unknown Source)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> org.snmp4j.transport.DefaultTcpTransportMapping$ServerThread.processPending(DefaultTcpTransportMapping.java:533)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> org.snmp4j.transport.DefaultTcpTransportMapping$ServerThread.run(DefaultTcpTransportMapping.java:796)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2009/09/30 17:15:43 |       at
> org.snmp4j.util.DefaultThreadFactory$WorkerThread.run(DefaultThreadFactory.java:65)
> 
> Thanks.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list