java.io.IOException: Package content not found in remote repository

Sonatype JIRA | Kelly Robinson | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Noticed this when I typed in the wrong version populating content into a nuget repo for testing. The code explicitly throws an IOException when remote content isn't found. I would (perhaps naively) expect that this would just result in a 404. Truncated exception from log shown below: {code} 2015-12-03 10:10:29,465-0800 WARN [qtp54656185-342] admin com.sonatype.nexus.repository.nuget.internal.proxy.NugetFeedFetcher - Status code 404 contacting https://www.nuget.org/api/v2/Packages(Id='jQuery',Version='7.0.4') 2015-12-03 10:10:29,467-0800 WARN [qtp54656185-342] admin com.sonatype.nexus.repository.nuget.internal.proxy.NugetProxyFacet - Failed to fetch: jQuery/7.0.4 java.io.IOException: Package content not found in remote repository at com.sonatype.nexus.repository.nuget.internal.proxy.NugetProxyFacet.fetch(NugetProxyFacet.java:72) [na:na] at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:169) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:48) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:44) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler.handle(ConditionalRequestHandler.java:72) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.handlers.ExceptionHandler.handle(ExceptionHandler.java:41) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:45) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.start(Context.java:102) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:198) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:160) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:117) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.SNAPSHOT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api:3.1.0] {code} This was triggered with a request against the api for a version that does not exist: http://localhost:8081/repository/nuget.org-proxy/jQuery/7.1.4

    Sonatype JIRA | 1 year ago | Kelly Robinson
    java.io.IOException: Package content not found in remote repository

    Root Cause Analysis

    1. java.io.IOException

      Package content not found in remote repository

      at com.sonatype.nexus.repository.nuget.internal.proxy.NugetProxyFacet.fetch()
    2. com.sonatype.nexus
      NugetProxyFacet.fetch
      1. com.sonatype.nexus.repository.nuget.internal.proxy.NugetProxyFacet.fetch(NugetProxyFacet.java:72)[na:na]
      1 frame
    3. org.sonatype.nexus
      ViewServlet.service
      1. org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:169)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      2. org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:48)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      3. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      4. org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      5. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      6. org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:44)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      7. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      8. org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler.handle(ConditionalRequestHandler.java:72)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      9. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      10. org.sonatype.nexus.repository.view.handlers.ExceptionHandler.handle(ExceptionHandler.java:41)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      11. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      12. org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:45)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      13. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      14. org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      15. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      16. org.sonatype.nexus.repository.view.Context.start(Context.java:102)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      17. org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      18. org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      19. org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:198)[org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.SNAPSHOT]
      20. org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:160)[org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.SNAPSHOT]
      21. org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:117)[org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.SNAPSHOT]
      21 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api:3.1.0]
      1 frame