java.lang.IllegalStateException

Could not initialize Nexus.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15

  • via Unknown by Juven Xu,
  • via Unknown by Marc Lustig,
  • Stack trace

    • java.lang.IllegalStateException: Could not initialize Nexus. at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:53) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.sonatype.plexus.jetty.DefaultServletContainer.start(DefaultServletContainer.java:308) at org.codehaus.plexus.PlexusLifecycleManager.start(PlexusLifecycleManager.java:229) at org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:145) at org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:79) at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:97) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:95) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253) at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:63) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:217) at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:211) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:989) at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211) at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:192) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:122) at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:100) at com.google.inject.Guice.createInjector(Guice.java:95) at com.google.inject.Guice.createInjector(Guice.java:72) at com.google.inject.Guice.createInjector(Guice.java:61) at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:433) at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:177) at org.sonatype.appbooter.PlexusAppBooter.startContainer(PlexusAppBooter.java:256) at org.sonatype.appbooter.PlexusAppBooterService.startContainer(PlexusAppBooterService.java:48) at org.sonatype.appbooter.jsw.PlexusAppBooterJSWListener.start(PlexusAppBooterJSWListener.java:68) at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788) Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting: org.sonatype.nexus.DefaultNexus at ClassRealm[plexus.core, parent: null] at ClassRealm[plexus.core, parent: null] while locating org.sonatype.nexus.Nexus 1 error role: org.sonatype.nexus.Nexus roleHint: at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:238) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:226) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:220) at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:43) ... 41 more Caused by: com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting: org.sonatype.nexus.DefaultNexus at ClassRealm[plexus.core, parent: null] at ClassRealm[plexus.core, parent: null] while locating org.sonatype.nexus.Nexus 1 error at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:952) at org.sonatype.guice.bean.locators.QualifiedBean.getValue(QualifiedBean.java:85) at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:55) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234) ... 44 more Caused by: com.google.inject.ProvisionException: Guice provision errors: 1) Error starting: class org.sonatype.nexus.DefaultNexus while locating org.sonatype.nexus.DefaultNexus 1 error at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:952) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:978) at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:63) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:943) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:939) ... 47 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException: Could not start Nexus! at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:651) at org.codehaus.plexus.PlexusLifecycleManager.start(PlexusLifecycleManager.java:229) at org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:145) at org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:79) at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:97) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:95) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:943) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:939) ... 58 more Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed at org.apache.lucene.index.DocumentsWriter.waitReady(DocumentsWriter.java:849) at org.apache.lucene.index.DocumentsWriter.getThreadState(DocumentsWriter.java:689) at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:755) at org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:743) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1917) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1895) at org.sonatype.timeline.DefaultTimelineIndexer.add(DefaultTimelineIndexer.java:210) at org.sonatype.timeline.DefaultTimeline.add(DefaultTimeline.java:99) at org.sonatype.nexus.timeline.DefaultNexusTimeline.add(DefaultNexusTimeline.java:127) at org.sonatype.nexus.feeds.DefaultFeedRecorder.addToTimeline(DefaultFeedRecorder.java:518) at org.sonatype.nexus.feeds.DefaultFeedRecorder.addToTimeline(DefaultFeedRecorder.java:513) at org.sonatype.nexus.feeds.DefaultFeedRecorder.addSystemEvent(DefaultFeedRecorder.java:407) at org.sonatype.nexus.DefaultNexus.addSystemEvent(DefaultNexus.java:495) at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:694) at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:647) ... 67 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.