com.google.inject.ProvisionException

Guice provision errors: 1) Error starting: class org.sonatype.nexus.DefaultNexus while locating org.sonatype.nexus.DefaultNexus 1 error

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web400

  • via nabble.com by Unknown author, 1 year ago
    Guice provision errors: 1) Error starting: class org.sonatype.nexus.DefaultNexus   while locating org.sonatype.nexus.DefaultNexus 1 error
  • via Sonatype JIRA by Juven Xu, 1 year ago
    Guice provision errors: 1) Error starting: class org.sonatype.nexus.DefaultNexus while locating org.sonatype.nexus.DefaultNexus 1 error
  • Guice provision errors: 1) Error starting: class org.sonatype.nexus.DefaultNexus while locating org.sonatype.nexus.DefaultNexus 1 error
  • Stack trace

    • 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) 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) 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) 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.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

    You’re the first here who have seen this exception.