[SNMP4J] Getting IllegalBlockingModeException when receiving trap via TCP

Mccarty, William (Bill) mccarty at avaya.com
Wed Oct 12 18:32:17 CEST 2005


Frank,

Thanks for your quick reply. 

This is running on Windows XP Professional, with SP1.
The Java is Java(TM) 2 Runtime Environment, Standard 
Edition (build 1.4.2_05-b04).

Bill

-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com] 
Sent: Wednesday, October 12, 2005 9:26 AM
To: Mccarty, William (Bill)
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] Getting IllegalBlockingModeException when
receiving trap via TCP

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(Defaul
>t
>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