[SNMP4J] Shutting down agent corrupts config properties

Matthew Shaver mshaver at yume.com
Wed Mar 23 01:03:52 CET 2016


I modified the SampleAgent code to call the agent shutdown() method 
after testing. The SampleAgentConfig.properties file then has binary 
data in it. When I run the SampleAgent again I get this exception:

Exception in thread "main" java.lang.IllegalArgumentException: Malformed 
\uxxxx encoding.
     at java.util.Properties.loadConvert(Properties.java:568)
     at java.util.Properties.load0(Properties.java:390)
     at java.util.Properties.load(Properties.java:341)
     at com.yumecorp.snmpmon.sample.SampleAgent.<init>(SampleAgent.java:151)
     at com.yumecorp.snmpmon.sample.SampleAgent.main(SampleAgent.java:475)

I don't think I need persistence right now. How do I disable it?

Thanks,
Matt.




More information about the SNMP4J mailing list