java.lang.ClassNotFoundException: org.sonatype.nexus.log.internal.NexusEventSystemAppender

Sonatype JIRA | Rich Seddon | 5 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    I'm seeing this error in the wrapper.log on upgrade to 2.2 from 2.1.2. Looks like the class was changed? We need an upgrade step. {noformat} jvm 1 | 14:38:35,348 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [org.sonatype.nexus.log.internal.NexusEventSystemAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.sonatype.nexus.log.internal.NexusEventSystemAppender jvm 1 | at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.sonatype.nexus.log.internal.NexusEventSystemAppender jvm 1 | at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:54) jvm 1 | at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:32) jvm 1 | at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) jvm 1 | at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) jvm 1 | at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) jvm 1 | at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) jvm 1 | at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:133) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:96) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:73) jvm 1 | at at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:467) jvm 1 | at at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:318) jvm 1 | at at org.sonatype.nexus.log.internal.LogbackReconfigureEventInspector.inspect(LogbackReconfigureEventInspector.java:43) jvm 1 | at at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:128) jvm 1 | at at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:101) jvm 1 | at at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:53) jvm 1 | at at org.sonatype.nexus.DefaultNexus.initialize(DefaultNexus.java:397) jvm 1 | at at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.initialize(PlexusLifecycleManager.java:338) jvm 1 | at at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:296) jvm 1 | at at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:148) jvm 1 | at at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108) jvm 1 | at at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) jvm 1 | at at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) jvm 1 | at at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45) jvm 1 | at at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) jvm 1 | at at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1043) jvm 1 | at at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) jvm 1 | at at com.google.inject.Scopes$1$1.get(Scopes.java:59) jvm 1 | at at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) jvm 1 | at at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:990) jvm 1 | at at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1036) jvm 1 | at at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:986) jvm 1 | at at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83) jvm 1 | at at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49) jvm 1 | at at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253) jvm 1 | at at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245) jvm 1 | at at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239) jvm 1 | at at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:40) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764) jvm 1 | at at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756) jvm 1 | at at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) jvm 1 | at at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) jvm 1 | at at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) jvm 1 | at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) jvm 1 | at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) jvm 1 | at at org.eclipse.jetty.server.Server.doStart(Server.java:262) jvm 1 | at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at at org.sonatype.sisu.jetty.Jetty8$JettyWrapperThread.run(Jetty8.java:145) jvm 1 | Caused by: java.lang.ClassNotFoundException: org.sonatype.nexus.log.internal.NexusEventSystemAppender jvm 1 | at at java.net.URLClassLoader$1.run(URLClassLoader.java:366) jvm 1 | at at java.net.URLClassLoader$1.run(URLClassLoader.java:355) jvm 1 | at at java.security.AccessController.doPrivileged(Native Method) jvm 1 | at at java.net.URLClassLoader.findClass(URLClassLoader.java:354) jvm 1 | at at java.lang.ClassLoader.loadClass(ClassLoader.java:423) jvm 1 | at at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) jvm 1 | at at java.lang.ClassLoader.loadClass(ClassLoader.java:356) jvm 1 | at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:46) jvm 1 | at ... 53 common frames omitted {noformat}

    Sonatype JIRA | 5 years ago | Rich Seddon
    java.lang.ClassNotFoundException: org.sonatype.nexus.log.internal.NexusEventSystemAppender
  2. 0

    I'm seeing this error in the wrapper.log on upgrade to 2.2 from 2.1.2. Looks like the class was changed? We need an upgrade step. {noformat} jvm 1 | 14:38:35,348 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [org.sonatype.nexus.log.internal.NexusEventSystemAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.sonatype.nexus.log.internal.NexusEventSystemAppender jvm 1 | at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.sonatype.nexus.log.internal.NexusEventSystemAppender jvm 1 | at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:54) jvm 1 | at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:32) jvm 1 | at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) jvm 1 | at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) jvm 1 | at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) jvm 1 | at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) jvm 1 | at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:133) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:96) jvm 1 | at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:73) jvm 1 | at at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:467) jvm 1 | at at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:318) jvm 1 | at at org.sonatype.nexus.log.internal.LogbackReconfigureEventInspector.inspect(LogbackReconfigureEventInspector.java:43) jvm 1 | at at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:128) jvm 1 | at at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:101) jvm 1 | at at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:53) jvm 1 | at at org.sonatype.nexus.DefaultNexus.initialize(DefaultNexus.java:397) jvm 1 | at at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.initialize(PlexusLifecycleManager.java:338) jvm 1 | at at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:296) jvm 1 | at at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:148) jvm 1 | at at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108) jvm 1 | at at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) jvm 1 | at at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) jvm 1 | at at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45) jvm 1 | at at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) jvm 1 | at at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1043) jvm 1 | at at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) jvm 1 | at at com.google.inject.Scopes$1$1.get(Scopes.java:59) jvm 1 | at at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) jvm 1 | at at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:990) jvm 1 | at at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1036) jvm 1 | at at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:986) jvm 1 | at at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83) jvm 1 | at at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49) jvm 1 | at at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253) jvm 1 | at at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245) jvm 1 | at at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239) jvm 1 | at at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:40) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764) jvm 1 | at at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756) jvm 1 | at at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) jvm 1 | at at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) jvm 1 | at at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) jvm 1 | at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) jvm 1 | at at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) jvm 1 | at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) jvm 1 | at at org.eclipse.jetty.server.Server.doStart(Server.java:262) jvm 1 | at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) jvm 1 | at at org.sonatype.sisu.jetty.Jetty8$JettyWrapperThread.run(Jetty8.java:145) jvm 1 | Caused by: java.lang.ClassNotFoundException: org.sonatype.nexus.log.internal.NexusEventSystemAppender jvm 1 | at at java.net.URLClassLoader$1.run(URLClassLoader.java:366) jvm 1 | at at java.net.URLClassLoader$1.run(URLClassLoader.java:355) jvm 1 | at at java.security.AccessController.doPrivileged(Native Method) jvm 1 | at at java.net.URLClassLoader.findClass(URLClassLoader.java:354) jvm 1 | at at java.lang.ClassLoader.loadClass(ClassLoader.java:423) jvm 1 | at at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) jvm 1 | at at java.lang.ClassLoader.loadClass(ClassLoader.java:356) jvm 1 | at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:46) jvm 1 | at ... 53 common frames omitted {noformat}

    Sonatype JIRA | 5 years ago | Rich Seddon
    java.lang.ClassNotFoundException: org.sonatype.nexus.log.internal.NexusEventSystemAppender
  3. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  6. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.

  1. osvzs 4 times, last 1 week ago
  2. olle.hallin 3 times, last 5 days ago
  3. rp 1 times, last 2 weeks ago
  4. Dunmer 1 times, last 2 weeks ago
  5. poroszd 1 times, last 3 weeks ago
78 more registered users
17 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.ClassNotFoundException

    org.sonatype.nexus.log.internal.NexusEventSystemAppender

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    7 frames
  3. Logback Core Module
    OptionHelper.instantiateByClassName
    1. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:46)
    1 frame