在看起来工作了一段时间后,cloudrail 2.7.0现在反复崩溃,出现以下问题:
Fatal Exception: java.lang.RuntimeException: ServiceCode Error in function selfTest at 26
at com.cloudrail.si.servicecode.Interpreter.run(Unknown Source)
at com.cloudrail.si.servicecode.Interpreter.callFunction(Unknown Source)
at com.cloudrail.si.servicecode.InitSelfTest.execute(Unknown Source)
at com.cloudrail.si.servicecode.InitSelfTest.initTest(Unknown Source)
at com.cloudrail.si.statistics.InitSelfTestTask.run(Unknown Source)
Caused by java.lang.NullPointerException
at com.cloudrail.si.servicecode.commands.http.RequestCall.execute(Unknown Source)
at com.cloudrail.si.servicecode.Interpreter.run(Unknown Source)
at com.cloudrail.si.servicecode.Interpreter.callFunction(Unknown Source)
at com.cloudrail.si.servicecode.InitSelfTest.execute(Unknown Source)
at com.cloudrail.si.servicecode.InitSelfTest.initTest(Unknown Source)
at com.cloudrail.si.statistics.InitSelfTestTask.run(Unknown Source)我已经尝试过单步执行代码,但看不到原因。我所能看到的是,在InitSelfTest中,在try/catch块中没有包装下面这行代码,因此可能会假设appContext.getPackageName()不为空?
ip.callFunction("selfTest", new Object[]{interpreterStorage, appContext.getPackageName(), appInfo1.className, appVersionName, appVersionCode});发布于 2016-09-18 19:15:54
此问题已在版本2.7.1中得到解决。这也是通过github报道的:https://github.com/CloudRail/cloudrail-si-android-sdk/issues/38。
https://stackoverflow.com/questions/39536753
复制相似问题