java.lang.ArrayIndexOutOfBoundsException: 0

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.

  • # don't access nexus UI # visit a protected resource directly, eg: http://localhost:8081/nexus/service/local/users/admin # when the browser prompt for username/password, click log in without entering any info # got java.lang.ArrayIndexOutOfBoundsException on sever log {noformat} jvm 1 | 2010-05-06 23:17:12 ERROR [@qtp-29905988-0] - o.s.n.s.f.a.NexusSe~ - Unable to login jvm 1 | java.lang.ArrayIndexOutOfBoundsException: 0 jvm 1 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.getPrincipalsAndCredentials(NexusHttpAuthenticationFilter.java:438) jvm 1 | at org.jsecurity.web.filter.authc.BasicHttpAuthenticationFilter.getPrincipalsAndCredentials(BasicHttpAuthenticationFilter.java:334) jvm 1 | at org.jsecurity.web.filter.authc.BasicHttpAuthenticationFilter.createToken(BasicHttpAuthenticationFilter.java:302) jvm 1 | at org.jsecurity.web.filter.authc.AuthenticatingFilter.executeLogin(AuthenticatingFilter.java:41) jvm 1 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.onAccessDenied(NexusHttpAuthenticationFilter.java:129) jvm 1 | at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) jvm 1 | at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) jvm 1 | at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) jvm 1 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 1 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) jvm 1 | at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) jvm 1 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) jvm 1 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) jvm 1 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) jvm 1 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) jvm 1 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) jvm 1 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) jvm 1 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) jvm 1 | at org.mortbay.jetty.Server.handle(Server.java:326) jvm 1 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) jvm 1 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) jvm 1 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) jvm 1 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) jvm 1 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) jvm 1 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) jvm 1 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) {noformat}
    via by Juven Xu,
  • # don't access nexus UI # visit a protected resource directly, eg: http://localhost:8081/nexus/service/local/users/admin # when the browser prompt for username/password, click log in without entering any info # got java.lang.ArrayIndexOutOfBoundsException on sever log {noformat} jvm 1 | 2010-05-06 23:17:12 ERROR [@qtp-29905988-0] - o.s.n.s.f.a.NexusSe~ - Unable to login jvm 1 | java.lang.ArrayIndexOutOfBoundsException: 0 jvm 1 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.getPrincipalsAndCredentials(NexusHttpAuthenticationFilter.java:438) jvm 1 | at org.jsecurity.web.filter.authc.BasicHttpAuthenticationFilter.getPrincipalsAndCredentials(BasicHttpAuthenticationFilter.java:334) jvm 1 | at org.jsecurity.web.filter.authc.BasicHttpAuthenticationFilter.createToken(BasicHttpAuthenticationFilter.java:302) jvm 1 | at org.jsecurity.web.filter.authc.AuthenticatingFilter.executeLogin(AuthenticatingFilter.java:41) jvm 1 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.onAccessDenied(NexusHttpAuthenticationFilter.java:129) jvm 1 | at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) jvm 1 | at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) jvm 1 | at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) jvm 1 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 1 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) jvm 1 | at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) jvm 1 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) jvm 1 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) jvm 1 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) jvm 1 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) jvm 1 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) jvm 1 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) jvm 1 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) jvm 1 | at org.mortbay.jetty.Server.handle(Server.java:326) jvm 1 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) jvm 1 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) jvm 1 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) jvm 1 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) jvm 1 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) jvm 1 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) jvm 1 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) {noformat}
    via by Juven Xu,
    • java.lang.ArrayIndexOutOfBoundsException: 0 at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.getPrincipalsAndCredentials(NexusHttpAuthenticationFilter.java:438) at org.jsecurity.web.filter.authc.BasicHttpAuthenticationFilter.getPrincipalsAndCredentials(BasicHttpAuthenticationFilter.java:334) at org.jsecurity.web.filter.authc.BasicHttpAuthenticationFilter.createToken(BasicHttpAuthenticationFilter.java:302) at org.jsecurity.web.filter.authc.AuthenticatingFilter.executeLogin(AuthenticatingFilter.java:41) at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.onAccessDenied(NexusHttpAuthenticationFilter.java:129) at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) 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:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
    No Bugmate found.