[SNMP4J] IllegalStateException in Snmp.send()

Alberto alberto_mascheroni at fastwebnet.it
Mon Dec 18 11:59:07 CET 2006


Hello Frank,

after running your snmp4j patched lib for the whole weekend, this morning we 
got again the "Task already scheduled or canceled" problem.
This time it seems related to an asynchronous request.
Below some log4j traces:

18/12/2006 08:32:58:829 DEBUG [Timer-6] [Log4jLogAdapter.debug] New pending 
async request with handle PduHandle[1136328694]
...
18/12/2006 08:33:00:845 DEBUG [Timer-7] [Log4jLogAdapter.debug] Running 
pending request (3 left) with handle: PduHandle[1136328694]
...
18/12/2006 08:33:00:945 DEBUG [SNMPDriverDispatchPool.1] [Log4jLogAdapter.
debug] Looking up pending request with handle PduHandle[1136328694]
...
18/12/2006 08:33:00:946 DEBUG [SNMPDriverDispatchPool.1] [Log4jLogAdapter.
debug] Canceling pending request with handle PduHandle[1136328694]
...
18/12/2006 08:33:00:948 ERROR [Timer-7] [Log4jLogAdapter.error] Failed to 
process pending request PduHandle[1136328694] because Task already scheduled or 
cancelled
java.lang.IllegalStateException: Task already scheduled or cancelled
        at java.util.Timer.sched(Timer.java:358)
        at java.util.Timer.schedule(Timer.java:170)
        at org.snmp4j.Snmp$PendingRequest.run(Snmp.java:1434)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
...



More information about the SNMP4J mailing list