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

LogWriter.<clinit> throws Guice error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.1, 14.0.0
    • Fix Version/s: 13.5.1, 14.0.0
    • Component/s: audit logging
    • Labels:
    • Sprint:
      AM Sustaining Sprint 32

      Description

      After fix for OPENAM-9749, ssoadm.jsp page no longer works

      1. login to admin console
      2. on server instance's [Advanced] tab, add "ssoadm.disabled false" and click [Save] button
      3. access http://<host>:<port>/openam/ssoadm.jsp?cmd=list-agents
      4. type in the following input field value and click [Submit] button
      Name of realm*: /
      Filter (Pattern):
      Type of agent. : J2EEAgent

      4-repro) you will see the following exception on browser window

      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.cli.agentconfig.ListAgents.handleRequest(ListAgents.java:85)
      	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:728)
      	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:88)
      	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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sachiko Sachiko Wallace
                Reporter:
                sachiko Sachiko Wallace
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: