[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-17 Thread anshul gupta
Hi, I am sending the code with the error line no. //import java.net.InetAddress; import org.snmp4j.CommunityTarget; import org.snmp4j.PDU; import org.snmp4j.Snmp; import org.snmp4j.TransportMapping; import org.snmp4j.event.ResponseEvent; import org.snmp4j.event.ResponseListener; import org.snmp4j.

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-17 Thread anshul gupta
Hi, I have one more code the output is coming NULL for it i dont why.Please if u can help me on this and the output language is not understandable  import java.io.IOException;   import org.snmp4j.*;   import org.snmp4j.smi.Address;   import org.snmp4j.CommandResponder;   import org.sn

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-17 Thread anshul gupta
Hi, I have tried running code by commenting hte line u have asked but error is still coming ERROR: Exception in thread "DefaultUDPTransportMapping_192.168.2.2/0" java.lang.NullPointerException     at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(Unknown Source)     at jav