java.lang.NullPointerException

QOS.ch JIRA | Joakim Erdfelt | 7 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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

    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.LoggerFactory.singleImplementationSanityCheck()
    2. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.singleImplementationSanityCheck(LoggerFactory.java:192)
      2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:113)
      3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
      4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
      4 frames
    3. Jetty
      Slf4jLog.<init>
      1. org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:33)
      2. org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:28)
      2 frames
    4. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames