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

2011-02-18 Thread anshul gupta
Hi, I think community target and target address are corrects as asked by u so now tell me how to solve the problem Regards Anshul ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j

[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

[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

[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

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

2011-02-16 Thread anshul gupta
Hi, We are working on college project. We are unable to solve the problem that we have come up while coding. Please, help us.Here is our code. //import java.net.InetAddress;import org.snmp4j.CommunityTarget;import org.snmp4j.PDU;import org.snmp4j.Snmp;import

[SNMP4J] (no subject)

2011-02-16 Thread anshul gupta
___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j

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

2011-02-16 Thread anshul gupta
Hi, I have send u a code in my last mail and before that u asked some questions mentioned below Is the community correct? Target address correct? Is the agent running? Actually we are new to the project so we are not able to understand the question asked by u so if possible from the code