[SNMP4J] TestAgent and BaseAgent Example

Muralidharan Narayanan murali at TriveniDigital.com
Thu Jun 16 16:40:21 CEST 2005


Can anyone help me with the below error I am getting upon running the
TestAgent example from SNMP-Agent download? I just downloaded and executed
the example but not sure why the null pointer exception occurred.

Thanks for help
Murali


0 [main] INFO org.snmp4j.agent.BaseAgent  - Engine boots is: 11
48 [main] INFO org.snmp4j.agent.BaseAgent  - Wrote boot counter: 12
128 [main] DEBUG org.snmp4j.security.Salt  - Initialized Salt to
51d1e8c1bc8ee7dc.
Exception in thread "main" java.lang.NullPointerException
	at org.snmp4j.agent.mo.MOScalar.isVolatileByDefault(MOScalar.java:54)
	at org.snmp4j.agent.mo.MOScalar.<init>(MOScalar.java:50)
	at
org.snmp4j.agent.mo.snmp.SnmpFrameworkMIB$1.<init>(SnmpFrameworkMIB.java:56)
	at
org.snmp4j.agent.mo.snmp.SnmpFrameworkMIB.createMOs(SnmpFrameworkMIB.java:58
)
	at
org.snmp4j.agent.mo.snmp.SnmpFrameworkMIB.<init>(SnmpFrameworkMIB.java:52)
	at org.snmp4j.agent.BaseAgent.init(BaseAgent.java:81)
	at org.snmp4j.agent.test.TestAgent.main(TestAgent.java:270)





More information about the SNMP4J mailing list