java.lang.IllegalStateException: Unexpected initialization failure

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.IllegalStateException: Unexpected initialization failure
  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.IllegalStateException: Unexpected initialization failure
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    How could I let slf4j LoggerFactory print out debug message when it try to bind an implementation

    Stack Overflow | 2 years ago | user1532146
    java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also <a href="http://www.slf4j.org/codes.html#unsuccessfulInit" rel="nofollow">http://www.slf4j.org/codes.html#unsuccessfulInit</a>
  5. 0

    Cannot find commons logging class

    Stack Overflow | 4 years ago | dtrunk
    java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit

    4 unregistered visitors
    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.IllegalStateException

      Unexpected initialization failure

      at org.slf4j.LoggerFactory.bind()
    2. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.bind(LoggerFactory.java:175)
      2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:122)
      3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:378)
      4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:328)
      5. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:349)
      5 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