[SNMP4J] Problem restarting DefaultUDPTransport

JD Bertron jbertron at sfa.com
Sat Mar 18 15:34:20 CET 2006


Hi,

I have had to implement a 'hot restart' function for an SNMP agent based on
the library. By hot start, I mean that the VM used to start the agent stays
running and I carefully terminate the running threads of the agent before
restarting it. 

The DefaultUdpTransportMapping.java class properly closes the socket, and
amazingly, the 'new' DefaultUDPTransportMapping also obtains a 'good'
socket. There are no exceptions thrown and no errors anywhere. The new
mapping seems to behave properly, the socket loop runs fine, but the socket
does not receive any data, and looks like it's bound to a null address and
port -1. 

This is on Solaris 8 with JDK 1.4.2. I can't upgrade to 1.5. 

Does anyone have suggestions for me to try ?

[I tried a socket.disconnect() before the close with no effect. ]

Thanks.

 

J.D. Bertron.

SFA Charleston. 

843-202-2593.

 




More information about the SNMP4J mailing list