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

Cannot create circle of trust with ssoadm.jsp

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 14.0.0, 14.0.0-M5, 14.0.0-M6
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When trying to configure CoT via ssoadm.jsp "500 Internal Server Error" is observed and the following Tomcat page:

      HTTP Status 500 - AMSetupFilter.doFilter
      
      type Exception report
      
      message AMSetupFilter.doFilter
      
      description The server encountered an internal error that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: AMSetupFilter.doFilter
      	com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:141)
      	org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	org.forgerock.openam.audit.servlet.AuditAccessServletFilter.doFilter(AuditAccessServletFilter.java:62)
      
      root cause
      
      org.apache.jasper.JasperException: An exception occurred processing JSP page /ssoadm.jsp at line 89
      
      86:                     "com.sun.identity.cli.AccessManager,com.sun.identity.federation.cli.FederationManager",
      87:                     "ssoadm",
      88:                     request.getContextPath() + "/ssoadm.jsp");
      89:             out.println(helper.getHTML(request, ssoToken));
      90:             Object[] param = {"0"};
      91:             out.println(MessageFormat.format(CLIConstants.JSP_EXIT_CODE_TAG, param));
      92: 
      
      
      Stacktrace:
      	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:575)
      	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:462)
      	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	org.forgerock.openam.audit.servlet.AuditAccessServletFilter.doFilter(AuditAccessServletFilter.java:62)
      
      root cause
      
      javax.servlet.ServletException: java.lang.ExceptionInInitializerError
      	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:916)
      	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845)
      	org.apache.jsp.ssoadm_jsp._jspService(ssoadm_jsp.java:256)
      	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
      	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	org.forgerock.openam.audit.servlet.AuditAccessServletFilter.doFilter(AuditAccessServletFilter.java:62)
      
      root cause
      
      java.lang.ExceptionInInitializerError
      	com.sun.identity.cli.AuthenticatedCommand.writeLog(AuthenticatedCommand.java:171)
      	com.sun.identity.federation.cli.CreateCircleOfTrust.handleRequest(CreateCircleOfTrust.java:83)
      	com.sun.identity.cli.SubCommand.execute(SubCommand.java:296)
      	com.sun.identity.cli.CLIRequest.process(CLIRequest.java:217)
      	com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
      	com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:581)
      	com.sun.identity.cli.WebCLIHelper.processRequest(WebCLIHelper.java:151)
      	com.sun.identity.cli.WebCLIHelper.getHTML(WebCLIHelper.java:92)
      	org.apache.jsp.ssoadm_jsp._jspService(ssoadm_jsp.java:228)
      	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
      	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	org.forgerock.openam.audit.servlet.AuditAccessServletFilter.doFilter(AuditAccessServletFilter.java:62)
      
      root cause
      
      com.google.inject.ConfigurationException: Guice configuration errors:
      
      1) Could not find a suitable constructor in org.forgerock.http.Client. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at org.forgerock.http.Client.class(Unknown Source)
        while locating org.forgerock.http.Client
      
      1 error
      	com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)
      	com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961)
      	com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
      	org.forgerock.guice.core.InjectorHolder.getInstance(InjectorHolder.java:80)
      	com.sun.identity.cli.LogWriter.<clinit>(LogWriter.java:101)
      	com.sun.identity.cli.AuthenticatedCommand.writeLog(AuthenticatedCommand.java:171)
      	com.sun.identity.federation.cli.CreateCircleOfTrust.handleRequest(CreateCircleOfTrust.java:83)
      	com.sun.identity.cli.SubCommand.execute(SubCommand.java:296)
      	com.sun.identity.cli.CLIRequest.process(CLIRequest.java:217)
      	com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
      	com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:581)
      	com.sun.identity.cli.WebCLIHelper.processRequest(WebCLIHelper.java:151)
      	com.sun.identity.cli.WebCLIHelper.getHTML(WebCLIHelper.java:92)
      	org.apache.jsp.ssoadm_jsp._jspService(ssoadm_jsp.java:228)
      	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
      	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	org.forgerock.openam.audit.servlet.AuditAccessServletFilter.doFilter(AuditAccessServletFilter.java:62)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.64 logs.
      Apache Tomcat/7.0.64
      

      To reproduce:

      1. enable ssoadm.jsp in OpenAM instance configuration
      2. go to: /openam/ssoadm.jsp
      3. click on create-cot
      4. fill in the fields and submit

      Expected result: CoT is created
      Observed result: code 500

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                n4al Nemanja Lukic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: