[SNMP4J] TestAgent and BaseAgent Example
Brian Kirwan
bkirwan at adaptive-mobile.com
Thu Jun 16 17:05:43 CEST 2005
Hi Murali,
This is a bug in the toolkit - it was discussed a month or so ago on the
mailing list. It just requires a simple code change. If you search the
mailing list archive you will find it.
Brian.
----- Original Message -----
From: "Muralidharan Narayanan" <murali at TriveniDigital.com>
To: <snmp4j at agentpp.org>
Sent: Thursday, June 16, 2005 3:40 PM
Subject: [SNMP4J] TestAgent and BaseAgent Example
> 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)
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
More information about the SNMP4J
mailing list