[SNMP4J] Getting IllegalBlockingModeException when receiving trap via TCP

Frank Fock fock at agentpp.com
Wed Oct 12 18:25:56 CEST 2005


Hi Bill,

Could you please tell us which operating system and Java runtime version
you are using? It seems that this error is platform specific.

Thanks,
Frank

Mccarty, William (Bill) wrote:

>I am using snmp4j-1.5.1 and when I attempt to receive a trap with the
>API
>configured for TCP an IllegalBlockingModeException occurs. Below is the 
>stack trace that is displayed.
> 
>Listening on 0.0.0.0/1024
>java.nio.channels.IllegalBlockingModeException
> at java.nio.channels.spi.AbstractSelectableChannel.register(Unknown
>Source)
> at java.nio.channels.SelectableChannel.register(Unknown Source)
> at
>org.snmp4j.transport.DefaultTcpTransportMapping$ServerThread.run(Default
>TcpTransportMapping.java:475)
>
>I first saw this exception in my application. So I tried running the
>console
>application included in the SNMP4J package and saw the same exception.
>Am I missing something? Or is this a bug in the API?
> 
>Bill
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>
>  
>


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





More information about the SNMP4J mailing list