org.sonatype.nexus.proxy.RepositoryNotAvailableException: Repository with ID='apache-snapshots' is not available!

Sonatype JIRA | Peter Lynch | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I have a repo called apache-snapshots manually blocked. On startup I see the following message in the logs. My concern is it is at INFO level but prints a stack trace. Please make the message less chatty if it is harmless. ( ie. no stack trace ) {noformat} 2011-04-13 14:04:27 INFO [main ] - o.s.n.p.m.MacPlugin~ - Unable to install the generated archetype catalog! org.sonatype.nexus.proxy.RepositoryNotAvailableException: Repository with ID='apache-snapshots' is not available! at org.sonatype.nexus.proxy.repository.AbstractRepository.storeItem(AbstractRepository.java:989) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.storeItem(AbstractMavenRepository.java:409) at org.sonatype.nexus.plugins.mac.MacPluginEventInspector.inspect(MacPluginEventInspector.java:98) at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:157) at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:122) at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:129) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.insertRepository(DefaultRepositoryRegistry.java:248) at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.addRepository(DefaultRepositoryRegistry.java:83) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:531) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:494) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:476) at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:686) at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:648) at org.codehaus.plexus.PlexusLifecycleManager.start(PlexusLifecycleManager.java:303) at org.codehaus.plexus.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:254) at org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:154) at org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:78) 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:254) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003) at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47) 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:1021) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964) at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79) at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:229) at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:48) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) 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:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 2011-04-13 14:04:27 DEBUG [main ] - o.s.n.i.DefaultInde~ - Searching on repository ID='apache-snapshots' is set to: true {noformat}

    Sonatype JIRA | 6 years ago | Peter Lynch
    org.sonatype.nexus.proxy.RepositoryNotAvailableException: Repository with ID='apache-snapshots' is not available!

    Root Cause Analysis

    1. org.sonatype.nexus.proxy.RepositoryNotAvailableException

      Repository with ID='apache-snapshots' is not available!

      at org.sonatype.nexus.proxy.repository.AbstractRepository.storeItem()
    2. ${project.groupId}:${project.artifactId}
      AbstractMavenRepository.storeItem
      1. org.sonatype.nexus.proxy.repository.AbstractRepository.storeItem(AbstractRepository.java:989)
      2. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.storeItem(AbstractMavenRepository.java:409)
      2 frames
    3. org.sonatype.nexus
      MacPluginEventInspector.inspect
      1. org.sonatype.nexus.plugins.mac.MacPluginEventInspector.inspect(MacPluginEventInspector.java:98)
      1 frame
    4. ${project.groupId}:${project.artifactId}
      DefaultEventInspectorHost.onEvent
      1. org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:157)
      2. org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:122)
      3. org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:129)
      3 frames
    5. ${project.groupId}:${project.artifactId}
      AbstractSimpleEventMulticaster.notifyEventListeners
      1. org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55)
      1 frame
    6. ${project.groupId}:${project.artifactId}
      DefaultNexus.start
      1. org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.insertRepository(DefaultRepositoryRegistry.java:248)
      2. org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.addRepository(DefaultRepositoryRegistry.java:83)
      3. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:531)
      4. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:494)
      5. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:476)
      6. org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:686)
      7. org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:648)
      7 frames
    7. Plexus
      PlexusLifecycleManager.manage
      1. org.codehaus.plexus.PlexusLifecycleManager.start(PlexusLifecycleManager.java:303)
      2. org.codehaus.plexus.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:254)
      3. org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:154)
      3 frames
    8. Sisu-Inject-Plexus : legacy wrapper
      PlexusBeanBinder.afterInjection
      1. org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:78)
      1 frame
    9. Google Guice - Core Library
      InjectorImpl.getInstance
      1. com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:97)
      2. com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:95)
      3. com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
      4. com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
      5. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
      6. com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
      7. com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)
      7 frames
    10. Sisu-Inject-Bean : legacy wrapper
      AbstractDeferredClass.get
      1. org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
      1 frame
    11. Google Guice - Core Library
      InjectorImpl$4.get
      1. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      2. com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      3. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
      4. com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      5. com.google.inject.Scopes$1$1.get(Scopes.java:59)
      6. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      7. com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
      8. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
      9. com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
      9 frames
    12. Sisu-Inject-Bean : legacy wrapper
      LazyBeanEntry.getValue
      1. org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
      1 frame
    13. org.sonatype.guice
      LazyPlexusBean.getValue
      1. org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
      1 frame
    14. Plexus
      DefaultPlexusContainer.lookup
      1. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
      2. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
      3. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:229)
      3 frames
    15. ${project.groupId}:${project.artifactId}
      NexusBooterListener.contextInitialized
      1. org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:48)
      1 frame
    16. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
      6. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
      7. org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
      8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
      9. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
      11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      12. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      13. org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      15. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      16. org.apache.catalina.core.StandardService.start(StandardService.java:519)
      17. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      18. org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      18 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    18. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      2 frames