I have been attempting to setup JDBCRealm container managed security on my Glassfish server. I followed several blogs, and finally reached a point where I believed I was close to working. However, I now receive the exception below.
Can anyone give me any direction on what would cause the ArrayIndexOutOfBoundsException? I am using Glassfish v2u1and MySQL. MD5 hashing, Base64encoding. I thought maybe there was an issue with hashing the passwords, but I have checked, double checked, and settings appear fine. Has anyone seen this exception and what caused it?
oneCalled = false
Parent -> java.net.URLClassLoader_at_1de4dd8
Loading class from parent
SEC5046: Audit: Authentication refused for [rcastell].
doPasswordLogin fails
[b]java.lang.ArrayIndexOutOfBoundsException: 31[/b] at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at
com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:295)
at
com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:170)
at
com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:123)
at
com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:479)
at
com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:419)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:253)
at
org.apache.catalina.authenticator.AuthenticatorBase.processSecurityCheck(AuthenticatorBase.java:1011)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:622)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:609)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Web login failed: Login failed: java.lang.ArrayIndexOutOfBoundsException: 31 Failed authenticate() test ??/ReviewModule/faces/j_security_check
recycle()
recycle()
registerKey
[Message sent by forum member 'rcastellow' (rcastellow)]
http://forums.java.net/jive/thread.jspa?messageID=260255