在Eclipse里(安卓开发版)一new Jsonconfig 就会出现java.lang.ExceptionInInitializerError

Hey-man 发布于 2015/05/18 16:38
阅读 363
收藏 0

在Eclipse里(安卓开发版)一new Jsonconfig 就会出现java.lang.ExceptionInInitializerError 

java.lang.ExceptionInInitializerError

at com.schoolchild.ttsd.test.GeneralTest.testJsonObject(GeneralTest.java:138)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)
Caused by: java.lang.ExceptionInInitializerError
at net.sf.json.JsonConfig.<clinit>(JsonConfig.java:64)
... 13 more
Caused by: java.lang.NoClassDefFoundError: org.apache.commons.collections.map.ListOrderedMap
at net.sf.json.JSONObject.<init>(JSONObject.java:1553)
at net.sf.json.util.CycleDetectionStrategy.<clinit>(CycleDetectionStrategy.java:37)
... 14 more


加载中
返回顶部
顶部