[SNMP4J] Exception in running the TestAgent
Bryan Chung
bryanc at nortel.com
Fri Jan 5 20:10:29 CET 2007
I got the following exception in running the TestAgent when the
SNMP4JTestAgentBC.cfg and SNMP4JTestAgentConfig.cfg are present:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at org.snmp4j.smi.OctetString.get(OctetString.java:177)
at
org.snmp4j.agent.mo.snmp.DateAndTime.makeCalendar(DateAndTime.java:13
7)
at
org.snmp4j.agent.mo.snmp4j.example.Snmp4jHeartbeatMib$Snmp4jAgentHBRe
fTime.setValue(Snmp4jHeartbeatMib.java:361)
at org.snmp4j.agent.mo.MOScalar.load(MOScalar.java:305)
at
org.snmp4j.agent.io.MOServerPersistence.readData(MOServerPersistence.
java:128)
at
org.snmp4j.agent.io.MOServerPersistence.loadData(MOServerPersistence.
java:80)
at org.snmp4j.agent.BaseAgent.loadConfig(BaseAgent.java:263)
at org.snmp4j.agent.BaseAgent.loadConfig(BaseAgent.java:236)
at org.snmp4j.agent.test.TestAgent.main(TestAgent.java:333)
When I deleted these files, there is no exception. However, these files
are created every time TestAgent is running. Any ideas?
Thanks!
Regards,
Bryan Chung
More information about the SNMP4J
mailing list