[SNMP4J] A question about TestAgent, thanks a lot
Frank Fock
fock at agentpp.com
Fri Dec 2 20:30:35 CET 2005
Pempeli,
Which SNMP4J-Agent version are you using? I think you need
to upgrade to 1.0-alpha2?
Best regards,
Frank Fock
星星 黎 wrote:
>Dear Frank,
>
> I'm a fresh man to SNMP4J but I am very interested in your great work. I'm very happy to find that SnmpRequest can cooperate with other Agent, for example net-snmp's agent.
>
> But I have a questions when I learn to execute your code. I will be very grateful if you would give me some advices. Thank you very much.
>
> Question:I failed to launch snmp4jagent when I execute the TestAgent.class. Here is the log:
>
> C:\SNMPworkplace\snmp4j\bin>java org.snmp4j.agent.test.TestAgent
>0 [main] WARN org.snmp4j.agent.BaseAgent - Could not find conig file: SNMP4JTestAgentConfig.cfg
>120 [main] INFO org.snmp4j.agent.BaseAgent - Wrote boot counter: 1
>170 [main] DEBUG org.snmp4j.security.Salt - Initialized Salt to c343d68fa63561ea.
>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)
>
> Sincerely Yours,
> Pempemli
> Dec. 2,2005
>
>
>---------------------------------
>无限容量雅虎相册,原图等大下载,超快速度,赶快抢注!
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>
>
>
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list