Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-1028

ArrayIndexOutOfBoundsException in debug log message in AMLoginContext

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.5.5, 10.0.0
    • authentication
    • None
    • Rank:
      1|hzn44v:

      Description

      This is just sloppy coding; only occurs when running with debug loglevel. Discovered while calling AuthModule through REST-api. Patch attached.

      amIdentityServices:12/19/2011 06:35:32:967 PM CET: Thread[http-bio-8080-exec-1,5,main]
      WARNING: Exception during invocation
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at com.sun.identity.idsvcs.rest.IdentityServicesHandler$SecurityMethod.invoke(IdentityServicesHandler.java:775)
      at com.sun.identity.idsvcs.rest.IdentityServicesHandler$SecurityMethod.execute(IdentityServicesHandler.java:668)
      at com.sun.identity.idsvcs.rest.IdentityServicesHandler.service(IdentityServicesHandler.java:126)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
      at com.sun.identity.authentication.service.AMLoginContext.submitRequiredInfo(AMLoginContext.java:970)
      at com.sun.identity.authentication.server.AuthContextLocal.submitRequirements(AuthContextLocal.java:694)
      at com.sun.identity.authentication.AuthContext.submitRequirements(AuthContext.java:1244)
      at com.sun.identity.authentication.AuthContext.submitRequirements(AuthContext.java:1230)
      at com.sun.identity.idsvcs.opensso.IdentityServicesImpl.authenticate(IdentityServicesImpl.java:207)
      ... 27 more

        Attachments

          Activity

            People

            peter.major Peter Major [X] (Inactive)
            bos bos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: