java.lang.IllegalArgumentException: You must address one ResourceStore with this operation!

Sonatype JIRA | Brian Demers | 8 years ago
  1. 0

    (Initially reported by gorshing on codehaus irc #nexus) Using an invalid url for maven deployment, http://localhost:8081/nexus/content/snapshots, for example (excluding the /repositories/ portion). Will throw an exception in Nexus. Ultimately the router should just return a 404 in this case. INFO | jvm 1 | 2008/07/21 21:47:20 | Jul 21, 2008 9:47:20 PM org.sonatype.nexus.rest.AbstractResourceStoreContentResource handleException INFO | jvm 1 | 2008/07/21 21:47:20 | SEVERE: Illegal argument! INFO | jvm 1 | 2008/07/21 21:47:20 | java.lang.IllegalArgumentException: You must address one ResourceStore with this operation! INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.proxy.router.AbstractRegistryDrivenRepositoryRouter.doStoreItem(AbstractRegistryDrivenRepositoryRouter.java:477) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.proxy.router.AbstractRepositoryRouter.storeItem(AbstractRepositoryRouter.java:260) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.rest.AbstractResourceStoreContentResource.put(AbstractResourceStoreContentResource.java:513) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.resource.Resource.handlePut(Resource.java:548) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePut(AbstractNexusResourceHandler.java:359) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Finder.handle(Finder.java:299) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Router.handle(Router.java:445) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Guard.accept(Guard.java:83) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Guard.doHandle(Guard.java:198) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.rest.NexusAuthenticationGuard.doHandle(NexusAuthenticationGuard.java:100) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.rest.NexusWriteAccessAuthenticationGuard.doHandle(NexusWriteAccessAuthenticationGuard.java:60) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/07/21 21:47:20 | at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.restlet.Application.handle(Application.java:294) INFO | jvm 1 | 2008/07/21 21:47:20 | at com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.sonatype.nexus.rest.ContentRestServlet.service(ContentRestServlet.java:68) INFO | jvm 1 | 2008/07/21 21:47:20 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.Server.handle(Server.java:320) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) INFO | jvm 1 | 2008/07/21 21:47:20 | at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

    Sonatype JIRA | 8 years ago | Brian Demers
    java.lang.IllegalArgumentException: You must address one ResourceStore with this operation!
  2. 0
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.
  3. 0
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.IllegalArgumentException

      You must address one ResourceStore with this operation!

      at org.sonatype.nexus.proxy.router.AbstractRegistryDrivenRepositoryRouter.doStoreItem()
    2. ${project.groupId}:${project.artifactId}
      AbstractRepositoryRouter.storeItem
      1. org.sonatype.nexus.proxy.router.AbstractRegistryDrivenRepositoryRouter.doStoreItem(AbstractRegistryDrivenRepositoryRouter.java:477)
      2. org.sonatype.nexus.proxy.router.AbstractRepositoryRouter.storeItem(AbstractRepositoryRouter.java:260)
      2 frames
    3. Nexus Core
      AbstractResourceStoreContentResource.put
      1. org.sonatype.nexus.rest.AbstractResourceStoreContentResource.put(AbstractResourceStoreContentResource.java:513)
      1 frame
    4. org.restlet.resource
      Resource.handlePut
      1. org.restlet.resource.Resource.handlePut(Resource.java:548)
      1 frame
    5. Nexus Core
      AbstractNexusResourceHandler.handlePut
      1. org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePut(AbstractNexusResourceHandler.java:359)
      1 frame
    6. org.restlet
      Guard.doHandle
      1. org.restlet.Finder.handle(Finder.java:299)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      4. org.restlet.Router.handle(Router.java:445)
      5. org.restlet.Filter.doHandle(Filter.java:105)
      6. org.restlet.Filter.handle(Filter.java:135)
      7. org.restlet.Filter.doHandle(Filter.java:105)
      8. org.restlet.Guard.accept(Guard.java:83)
      9. org.restlet.Guard.doHandle(Guard.java:198)
      9 frames
    7. Nexus Core
      NexusWriteAccessAuthenticationGuard.doHandle
      1. org.sonatype.nexus.rest.NexusAuthenticationGuard.doHandle(NexusAuthenticationGuard.java:100)
      2. org.sonatype.nexus.rest.NexusWriteAccessAuthenticationGuard.doHandle(NexusWriteAccessAuthenticationGuard.java:60)
      2 frames
    8. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.handle(Filter.java:135)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      4. org.restlet.Filter.doHandle(Filter.java:105)
      5. org.restlet.Filter.handle(Filter.java:135)
      6. org.restlet.Filter.doHandle(Filter.java:105)
      6 frames
    9. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89)
      1 frame
    10. org.restlet
      Filter.handle
      1. org.restlet.Filter.handle(Filter.java:135)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      3 frames
    11. com.noelios.restlet
      ApplicationHelper.handle
      1. com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98)
      1 frame
    12. org.restlet
      Application.handle
      1. org.restlet.Application.handle(Application.java:294)
      1 frame
    13. com.noelios.restlet
      ServletConverter.service
      1. com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129)
      1 frame
    14. Nexus Core
      ContentRestServlet.service
      1. org.sonatype.nexus.rest.ContentRestServlet.service(ContentRestServlet.java:68)
      1 frame
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    16. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      10. org.mortbay.jetty.Server.handle(Server.java:320)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      16 frames
    17. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
      1 frame