I'm using snmp v1.9.1f. What I do is instantiate an Snmp object and use it for requests to different targets. Every time I want to send a new request I use a ResponseListener in order to get the response as soon as it's ready following the code snippet found at the documentation of the Snmp class.
What I've seen (from the logs as I couldn't reproduce the problem on a development machine) is that some times the snmp object just hangs. As I see from the logs the onResponse method of the listener will be called with an event but the given peerAddress is alway null. When the problem starts I can't get a "good" response from any possible target. I am pretty sure that there isn't any connectivity problems as one of the targets I'm using is the machine running the application. The application is osgi based, so I tried to just restart the bundle that handles the snmp stuff (witch contains the snmp4j library). What I noticed is that the osgi enviroment was waiting for the snmp.close() method to finish for some minutes before I terminated the virtual machine and restarted it. The problem does not have any kind of frequency and the only solution right now is a jvm restart. It can happen in 3 days or in 3 hours. -- Valotassios Yoryos GLOMAN S.A. 2 Papada str, Athens, GR 115 25 T: +30 210 6985700 E: [email protected] _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
