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

AuthContext failover doesn't work

    XMLWordPrintable

    Details

    • Rank:
      1|hzo4mn:
    • Support Ticket IDs:

      Description

      Steps to reproduce:

      • set up two OpenAM instances
      • do NOT set up a site
      • install a Java EE agent
      • modify the OpenSSOAgentBootstrap.properties file, so that the naming.url points to both OpenAM instances (space separated), for example:
        com.iplanet.am.naming.url=http://openam.example.com:8080/openam/namingservice http://openam2.example.com:18080/openam/namingservice
        
      • shut down the first server in the list (in this case openam.example.com)
      • try to start up the agent (this part can depend on the container, for example with Tomcat the agent code is invoked as part of the startup process, but this may differ for other agents).
        At this point (or after the first attempt to access an agent protected application) the agent will fail with a similar stacktrace:
        com.sun.identity.authentication.spi.AuthLoginException: Error occurred while processing XML request.
        Connection refused
                at com.sun.identity.authentication.AuthContext.processRequest(AuthContext.java:2067)
                at com.sun.identity.authentication.AuthContext.runRemoteOldAuthContext(AuthContext.java:1078)
                at com.sun.identity.authentication.AuthContext.runLogin(AuthContext.java:826)
                at com.sun.identity.authentication.AuthContext.login(AuthContext.java:706)
                at com.sun.identity.authentication.AuthContext.login(AuthContext.java:614)
                at com.sun.identity.authentication.AuthContext.login(AuthContext.java:417)
                at com.sun.identity.agents.common.ApplicationSSOTokenProvider.getApplicationSSOToken(ApplicationSSOTokenProvider.java:64)
                at com.sun.identity.agents.arch.AgentConfiguration.setAppSSOToken(AgentConfiguration.java:616)
                at com.sun.identity.agents.arch.AgentConfiguration.bootStrapClientConfiguration(AgentConfiguration.java:722)
                at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:1140)
                at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1579)
                at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:675)
                at com.sun.identity.agents.tomcat.v6.AmTomcatRealm.<clinit>(AmTomcatRealm.java:67)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
                at java.lang.Class.newInstance(Class.java:374)
                at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
                at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
                at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
                at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1347)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2768)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:846)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:775)
                at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
                at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
                at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:628)
                at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:610)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
                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:606)
                at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
        Caused by: com.iplanet.services.comm.client.SendRequestException: Connection refused
                at com.iplanet.services.comm.client.PLLClient.send(PLLClient.java:218)
                at com.iplanet.services.comm.client.PLLClient.send(PLLClient.java:134)
                at com.sun.identity.authentication.AuthContext.processRequest(AuthContext.java:2054)
                ... 39 more
        

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: