java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • (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)
    via by Brian Demers,
    • java.lang.IllegalArgumentException: You must address one ResourceStore with this operation! at org.sonatype.nexus.proxy.router.AbstractRegistryDrivenRepositoryRouter.doStoreItem(AbstractRegistryDrivenRepositoryRouter.java:477) at org.sonatype.nexus.proxy.router.AbstractRepositoryRouter.storeItem(AbstractRepositoryRouter.java:260) at org.sonatype.nexus.rest.AbstractResourceStoreContentResource.put(AbstractResourceStoreContentResource.java:513) at org.restlet.resource.Resource.handlePut(Resource.java:548) at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePut(AbstractNexusResourceHandler.java:359) at org.restlet.Finder.handle(Finder.java:299) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Guard.accept(Guard.java:83) at org.restlet.Guard.doHandle(Guard.java:198) at org.sonatype.nexus.rest.NexusAuthenticationGuard.doHandle(NexusAuthenticationGuard.java:100) at org.sonatype.nexus.rest.NexusWriteAccessAuthenticationGuard.doHandle(NexusWriteAccessAuthenticationGuard.java:60) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) at org.restlet.Application.handle(Application.java:294) at com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129) at org.sonatype.nexus.rest.ContentRestServlet.service(ContentRestServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
    No Bugmate found.