java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by jeffreyzhao,
  • After upgrading 3.0.2 -> 3.1-beta3, shutting down tomcat gives errors in catalina.log: {noformat}Nov 20, 2009 11:24:58 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Nov 20, 2009 11:24:59 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Nov 20, 2009 11:25:20 AM org.apache.tomcat.util.modeler.Registry unregisterComponent SEVERE: Error unregistering mbean java.lang.NullPointerException at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243) at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:159) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:244) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:596) at com.sun.jmx.trace.TraceManager.send(TraceManager.java:219) at com.sun.jmx.trace.Trace.send(Trace.java:110) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:72) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:77) at com.sun.jmx.mbeanserver.Repository.contains(Repository.java:472) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:593) at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598) at org.apache.tomcat.util.modeler.Registry.unregisterComponent(Registry.java:573) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:720) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448) at org.apache.catalina.core.StandardService.stop(StandardService.java:584) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina.start(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Nov 20, 2009 11:25:20 AM org.apache.tomcat.util.modeler.Registry unregisterComponent SEVERE: Error unregistering mbean java.lang.NullPointerException at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243) at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:159) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:244) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:596) at com.sun.jmx.trace.TraceManager.send(TraceManager.java:219) at com.sun.jmx.trace.Trace.send(Trace.java:110) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:72) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:77) at com.sun.jmx.mbeanserver.Repository.contains(Repository.java:472) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:593) at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598) at org.apache.tomcat.util.modeler.Registry.unregisterComponent(Registry.java:573) at org.apache.catalina.loader.WebappLoader.destroy(WebappLoader.java:592) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:727) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448) at org.apache.catalina.core.StandardService.stop(StandardService.java:584) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina.start(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Nov 20, 2009 11:25:20 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 {noformat}
    via by Mark Hrynczak [Atlassian],
  • After upgrading 3.0.2 -> 3.1-beta3, shutting down tomcat gives errors in catalina.log: {noformat}Nov 20, 2009 11:24:58 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Nov 20, 2009 11:24:59 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Nov 20, 2009 11:25:20 AM org.apache.tomcat.util.modeler.Registry unregisterComponent SEVERE: Error unregistering mbean java.lang.NullPointerException at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243) at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:159) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:244) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:596) at com.sun.jmx.trace.TraceManager.send(TraceManager.java:219) at com.sun.jmx.trace.Trace.send(Trace.java:110) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:72) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:77) at com.sun.jmx.mbeanserver.Repository.contains(Repository.java:472) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:593) at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598) at org.apache.tomcat.util.modeler.Registry.unregisterComponent(Registry.java:573) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:720) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448) at org.apache.catalina.core.StandardService.stop(StandardService.java:584) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina.start(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Nov 20, 2009 11:25:20 AM org.apache.tomcat.util.modeler.Registry unregisterComponent SEVERE: Error unregistering mbean java.lang.NullPointerException at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243) at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:159) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:244) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:596) at com.sun.jmx.trace.TraceManager.send(TraceManager.java:219) at com.sun.jmx.trace.Trace.send(Trace.java:110) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:72) at com.sun.jmx.mbeanserver.Repository.trace(Repository.java:77) at com.sun.jmx.mbeanserver.Repository.contains(Repository.java:472) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:593) at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598) at org.apache.tomcat.util.modeler.Registry.unregisterComponent(Registry.java:573) at org.apache.catalina.loader.WebappLoader.destroy(WebappLoader.java:592) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:727) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448) at org.apache.catalina.core.StandardService.stop(StandardService.java:584) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina.start(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Nov 20, 2009 11:25:20 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 {noformat}
    via by Mark Hrynczak [Atlassian],
    • java.lang.NullPointerException at org.slf4j.LoggerFactory.singleImplementationSanityCheck(LoggerFactory.java:192) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:113) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242) at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:33) at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:28) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308)

    Users with the same issue

    Unknown visitor1 times, last one,