[snmp] SNMP Trap send problem

Vijay Gholap vijay_gholap at datamatics.com
Wed Oct 24 17:57:37 BST 2007


Hi,

   I am using westhawk snmp stak(5.1) to send a trap(snmp v1). In my
application using snmpcontext class everything works fine, but if i changed
SnmpContext class to SnmpContextPool, its give me following error..

 Exception in thread "main" java.lang.ClassCastException:
 uk.co.westhawk.snmp.stack.SnmpContextPool
 	at uk.co.westhawk.snmp.stack.TrapPduv1.send(TrapPduv1.java:225)
 	at com.exfo.ems.nbi.client.SNMPClientV1.sendTrap(SNMPClientV1.java:65)
 	at com.exfo.ems.nbi.client.SNMPFactory.main(SNMPFactory.java:29)

 Please help me out...

 Regards,
 Vijay Gholap.

Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.


More information about the snmp mailing list