java.lang.ExceptionInInitializerError

hibernate.org | 5 months 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.getLogger()
    2. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)
      2. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
      2 frames
    3. Hibernate HQL/JP-QL Parser
      ASTQueryTranslatorFactory.<clinit>
      1. org.hibernate.hql.ast.ASTQueryTranslatorFactory.<clinit>(ASTQueryTranslatorFactory.java:44)
      1 frame
    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
    5. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.SettingsFactory.createQueryTranslatorFactory(SettingsFactory.java:399)
      2. org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:240)
      3. org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
      4. org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
      5. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
      5 frames
    6. nethibernate
      InitSessionFactory.<clinit>
      1. nethibernate.InitSessionFactory.<clinit>(InitSessionFactory.java:24)
      1 frame
    7. net.hibernate
      StartDatabase.insertVariables
      1. net.hibernate.BasicManager.getSession(BasicManager.java:28)
      2. net.hibernate.EventManager.storeVariable(EventManager.java:20)
      3. net.hibernate.DatabaseInterface.createAndStoreVariable(DatabaseInterface.java:27)
      4. net.hibernate.StartDatabase.insertVariables(StartDatabase.java:41)
      4 frames
    8. netservice
      StartService.<init>
      1. netservice.StartService.<init>(StartService.java:19)
      1 frame
    9. net.contextlistener
      ContextListener$1.run
      1. net.contextlistener.ContextListener$1.run(ContextListener.java:25)
      1 frame