java.lang.NullPointerException

QOS.ch JIRA | jeffreyzhao | 9 months ago
  1. 0

    When I use 1.7.18,it cause app crash . {code:java} Fatal Exception: java.lang.ExceptionInInitializerError at com.mogujie.mwpsdk.mstate.impl.MStateImpl.(MStateImpl.java:14) at com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63) at com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71) at com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81) ... deleted (by Ceki) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.IllegalStateException: Unexpected initialization failure at org.slf4j.LoggerFactory.bind(LoggerFactory.java:175) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:122) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:378) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:328) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:349) at com.mogujie.mwpsdk.mstate.impl.MStateHandle.(MStateHandle.java:15) at com.mogujie.mwpsdk.mstate.impl.MStateImpl.(MStateImpl.java:14) at com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63) at com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71) at com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81) at com.mogujie.mwpsdk.common.SDKInitializer.initCore(SDKInitializer.java:25) at com.mogujie.mwpsdk.MWP.init(MWP.java:54) at com.mogujie.mwpsdk.api.EasyRemote.init(EasyRemote.java:77) at com.mogujie.app.MGClientApp.initNetwork(MGClientApp.java:648) at com.mogujie.app.MGClientApp.onCreate(MGClientApp.java:210) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4541) at android.app.ActivityThread.access$1500(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.NullPointerException at org.slf4j.helpers.SubstituteLogger.isDelegateEventAware(SubstituteLogger.java:353) at org.slf4j.LoggerFactory.playRecordedEvents(LoggerFactory.java:196) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:151) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:122) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:378) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:328) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:349) at com.mogujie.mwpsdk.mstate.impl.MStateHandle.(MStateHandle.java:15) at com.mogujie.mwpsdk.mstate.impl.MStateImpl.(MStateImpl.java:14) at com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63) at com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71) at com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81) at com.mogujie.mwpsdk.common.SDKInitializer.initCore(SDKInitializer.java:25) at com.mogujie.mwpsdk.MWP.init(MWP.java:54) at com.mogujie.mwpsdk.api.EasyRemote.init(EasyRemote.java:77) at com.mogujie.app.MGClientApp.initNetwork(MGClientApp.java:648) at com.mogujie.app.MGClientApp.onCreate(MGClientApp.java:210) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4541) at android.app.ActivityThread.access$1500(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) at dalvik.system.NativeStart.main(NativeStart.java) {code}

    QOS.ch JIRA | 9 months ago | jeffreyzhao
    java.lang.NullPointerException
  2. 0

    When I use 1.7.18,it cause app crash . {code:java} Fatal Exception: java.lang.ExceptionInInitializerError at com.mogujie.mwpsdk.mstate.impl.MStateImpl.(MStateImpl.java:14) at com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63) at com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71) at com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81) ... deleted (by Ceki) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.IllegalStateException: Unexpected initialization failure at org.slf4j.LoggerFactory.bind(LoggerFactory.java:175) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:122) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:378) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:328) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:349) at com.mogujie.mwpsdk.mstate.impl.MStateHandle.(MStateHandle.java:15) at com.mogujie.mwpsdk.mstate.impl.MStateImpl.(MStateImpl.java:14) at com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63) at com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71) at com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81) at com.mogujie.mwpsdk.common.SDKInitializer.initCore(SDKInitializer.java:25) at com.mogujie.mwpsdk.MWP.init(MWP.java:54) at com.mogujie.mwpsdk.api.EasyRemote.init(EasyRemote.java:77) at com.mogujie.app.MGClientApp.initNetwork(MGClientApp.java:648) at com.mogujie.app.MGClientApp.onCreate(MGClientApp.java:210) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4541) at android.app.ActivityThread.access$1500(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.NullPointerException at org.slf4j.helpers.SubstituteLogger.isDelegateEventAware(SubstituteLogger.java:353) at org.slf4j.LoggerFactory.playRecordedEvents(LoggerFactory.java:196) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:151) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:122) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:378) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:328) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:349) at com.mogujie.mwpsdk.mstate.impl.MStateHandle.(MStateHandle.java:15) at com.mogujie.mwpsdk.mstate.impl.MStateImpl.(MStateImpl.java:14) at com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63) at com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71) at com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81) at com.mogujie.mwpsdk.common.SDKInitializer.initCore(SDKInitializer.java:25) at com.mogujie.mwpsdk.MWP.init(MWP.java:54) at com.mogujie.mwpsdk.api.EasyRemote.init(EasyRemote.java:77) at com.mogujie.app.MGClientApp.initNetwork(MGClientApp.java:648) at com.mogujie.app.MGClientApp.onCreate(MGClientApp.java:210) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4541) at android.app.ActivityThread.access$1500(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) at dalvik.system.NativeStart.main(NativeStart.java) {code}

    QOS.ch JIRA | 9 months ago | jeffreyzhao
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.slf4j.helpers.SubstituteLogger.isDelegateEventAware()
    2. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.helpers.SubstituteLogger.isDelegateEventAware(SubstituteLogger.java:353)
      2. org.slf4j.LoggerFactory.playRecordedEvents(LoggerFactory.java:196)
      3. org.slf4j.LoggerFactory.bind(LoggerFactory.java:151)
      4. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:122)
      5. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:378)
      6. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:328)
      7. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:349)
      7 frames
    3. com.mogujie.mwpsdk
      EasyRemote.init
      1. com.mogujie.mwpsdk.mstate.impl.MStateHandle.<init>(MStateHandle.java:15)
      2. com.mogujie.mwpsdk.mstate.impl.MStateImpl.<init>(MStateImpl.java:14)
      3. com.mogujie.mwpsdk.mstate.MState.getMState(MState.java:63)
      4. com.mogujie.mwpsdk.mstate.MState.getMStateDefault(MState.java:71)
      5. com.mogujie.mwpsdk.common.SdkConfig.init(SdkConfig.java:81)
      6. com.mogujie.mwpsdk.common.SDKInitializer.initCore(SDKInitializer.java:25)
      7. com.mogujie.mwpsdk.MWP.init(MWP.java:54)
      8. com.mogujie.mwpsdk.api.EasyRemote.init(EasyRemote.java:77)
      8 frames
    4. com.mogujie.app
      MGClientApp.onCreate
      1. com.mogujie.app.MGClientApp.initNetwork(MGClientApp.java:648)
      2. com.mogujie.app.MGClientApp.onCreate(MGClientApp.java:210)
      2 frames
    5. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
      2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:4541)
      3. android.app.ActivityThread.access$1500(ActivityThread.java:151)
      4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
      5. android.os.Handler.dispatchMessage(Handler.java:110)
      6. android.os.Looper.loop(Looper.java:193)
      7. android.app.ActivityThread.main(ActivityThread.java:5299)
      7 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(NativeStart.java)
      1 frame