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

OAuth 2 Wizard failing with NPE in Configuration logs

    Details

    • Sprint:
      Sprint 96 - Team Tesla

      Description

      When using the OAuth 2 Configuration Wizard from the common tasks page, the Wizard fails with a message saying "An error occurred while processing this request. Contact your administrator."

      The service is not added to the realm, nor is a policy created.

      There appears to be a NullPointerException in the Configuration debug log, coming out of AjaxProxy, an an error in the Entitlement debug log as follows

      Entitlement:

      Entitlement:07/06/2015 02:19:04:010 PM BST: Thread[http-bio-8080-exec-9,5,main]: TransactionId[58e18fd1-047d-40a8-8391-cbc687292a5d]
      ERROR: Entitlement.getApplication nullrealm=/subrealm applicationname=iPlanetAMWebAgentService
      

      debug/Configuration:

      workflow:07/06/2015 02:19:04:016 PM BST: Thread[http-bio-8080-exec-9,5,main]: TransactionId[58e18fd1-047d-40a8-8391-cbc687292a5d]
      ERROR: Uncaught exception in AjaxProxy
      java.lang.NullPointerException
              at com.sun.identity.workflow.ConfigureOAuth2.getUrlResourceTypeId(ConfigureOAuth2.java:166)
              at com.sun.identity.workflow.ConfigureOAuth2.execute(ConfigureOAuth2.java:140)
              at org.apache.jsp.console.ajax.AjaxProxy_jsp._jspService(AjaxProxy_jsp.java:200)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
              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 org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:90)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              at org.forgerock.openam.audit.AuditContextFilter.doFilter(AuditContextFilter.java:51)
              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:225)
              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:927)
              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:999)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              samdrew Sam Drew
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: