Anderstang
Anderstang
  • 发布:2016-01-16 17:14
  • 更新:2016-11-23 13:46
  • 阅读:2142

推送透传消息有小概率会导致闪退

分类:HTML5+

大概1%左右的概率会闪退,友盟抓到的错误日志看下面,不知道怎么定位bug

java.lang.RuntimeException: Unable to start receiver io.dcloud.feature.apsGt.PushMessageReceiver: java.util.UnknownFormatConversionException: Conversion: 的  
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2430)  
    at android.app.ActivityThread.access$1700(ActivityThread.java:141)  
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1288)  
    at android.os.Handler.dispatchMessage(Handler.java:102)  
    at android.os.Looper.loop(Looper.java:136)  
    at android.app.ActivityThread.main(ActivityThread.java:5113)  
    at java.lang.reflect.Method.invokeNative(Native Method)  
    at java.lang.reflect.Method.invoke(Method.java:515)  
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)  
    at dalvik.system.NativeStart.main(Native Method)  
Caused by: java.util.UnknownFormatConversionException: Conversion: 的  
    at java.util.Formatter$FormatToken.unknownFormatConversionException(Formatter.java:1399)  
    at java.util.Formatter$FormatToken.checkFlags(Formatter.java:1336)  
    at java.util.Formatter.transform(Formatter.java:1442)  
    at java.util.Formatter.doFormat(Formatter.java:1081)  
    at java.util.Formatter.format(Formatter.java:1042)  
    at java.util.Formatter.format(Formatter.java:1011)  
    at java.lang.String.format(String.java:1999)  
    at java.lang.String.format(String.java:1973)  
    at io.dcloud.feature.aps.a.b(PushManager.java:368)  
    at io.dcloud.feature.aps.APSFeatureImpl.execScript(APSFeatureImpl.java:137)  
    at io.dcloud.feature.apsGt.PushMessageReceiver.onReceive(PushMessageReceiver.java:71)  
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2423)  
    ... 10 more  
java.util.UnknownFormatConversionException: Conversion: 的  
    at java.util.Formatter$FormatToken.unknownFormatConversionException(Formatter.java:1399)  
    at java.util.Formatter$FormatToken.checkFlags(Formatter.java:1336)  
    at java.util.Formatter.transform(Formatter.java:1442)  
    at java.util.Formatter.doFormat(Formatter.java:1081)  
    at java.util.Formatter.format(Formatter.java:1042)  
    at java.util.Formatter.format(Formatter.java:1011)  
    at java.lang.String.format(String.java:1999)  
    at java.lang.String.format(String.java:1973)  
    at io.dcloud.feature.aps.a.b(PushManager.java:368)  
    at io.dcloud.feature.aps.APSFeatureImpl.execScript(APSFeatureImpl.java:137)  
    at io.dcloud.feature.apsGt.PushMessageReceiver.onReceive(PushMessageReceiver.java:71)  
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2423)  
    at android.app.ActivityThread.access$1700(ActivityThread.java:141)  
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1288)  
    at android.os.Handler.dispatchMessage(Handler.java:102)  
    at android.os.Looper.loop(Looper.java:136)  
    at android.app.ActivityThread.main(ActivityThread.java:5113)  
    at java.lang.reflect.Method.invokeNative(Native Method)  
    at java.lang.reflect.Method.invoke(Method.java:515)  
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)  
    at dalvik.system.NativeStart.main(Native Method)
2016-01-16 17:14 负责人:无 分享
已邀请:
flashplume

flashplume

java.lang.RuntimeException: Unable to start receiver io.dcloud.feature.apsGt.PushMessageReceiver: java.lang.NullPointerException  
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2709)  
    at android.app.ActivityThread.access$1500(ActivityThread.java:162)  
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1457)  
    at android.os.Handler.dispatchMessage(Handler.java:99)  
    at android.os.Looper.loop(Looper.java:158)  
    at android.app.ActivityThread.main(ActivityThread.java:5777)  
    at java.lang.reflect.Method.invokeNative(Native Method)  
    at java.lang.reflect.Method.invoke(Method.java:511)  
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)  
    at dalvik.system.NativeStart.main(Native Method)  
Caused by: java.lang.NullPointerException  
    at io.dcloud.feature.aps.a.b(PushManager.java:396)  
    at io.dcloud.feature.aps.APSFeatureImpl.execScript(APSFeatureImpl.java:137)  
    at io.dcloud.feature.apsGt.PushMessageReceiver.onReceive(PushMessageReceiver.java:71)  
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2697)  
    ... 10 more  
java.lang.NullPointerException  
    at io.dcloud.feature.aps.a.b(PushManager.java:396)  
    at io.dcloud.feature.aps.APSFeatureImpl.execScript(APSFeatureImpl.java:137)  
    at io.dcloud.feature.apsGt.PushMessageReceiver.onReceive(PushMessageReceiver.java:71)  
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2697)  
    at android.app.ActivityThread.access$1500(ActivityThread.java:162)  
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1457)  
    at android.os.Handler.dispatchMessage(Handler.java:99)  
    at android.os.Looper.loop(Looper.java:158)  
    at android.app.ActivityThread.main(ActivityThread.java:5777)  
    at java.lang.reflect.Method.invokeNative(Native Method)  
    at java.lang.reflect.Method.invoke(Method.java:511)  
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)  
    at dalvik.system.NativeStart.main(Native Method)

看不懂,因为什么空值吗?

该问题目前已经被锁定, 无法添加新回复