Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#42 ArrayIndexOutOfBoundsException in SecurityConstraint

open
nobody
None
5
2010-04-24
2010-04-24
Marc Klinger
No

This exception is thrown if web.xml contains a security-constraint -> web-resource-collection with more than one url-pattern entry.
I started writing a patch for it which I will upload to the Patches section, soon.

java.lang.ArrayIndexOutOfBoundsException: 1
at winstone.auth.SecurityConstraint.isApplicable(SecurityConstraint.java:132)
at winstone.auth.BaseAuthenticationHandler.doRoleCheck(BaseAuthenticationHandler.java:103)
at winstone.auth.BaseAuthenticationHandler.processAuthentication(BaseAuthenticationHandler.java:88)
at winstone.RequestDispatcher.continueAfterSecurityCheck(RequestDispatcher.java:349)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:323)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:619)

Discussion