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

The error message in "Unable to send SOAPMessage to IDP" is misleading at times

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0.5
    • Fix Version/s: None
    • Component/s: debug logging, SAML
    • Labels:
    • Rank:
      1|hzzhyn:
    • Support Ticket IDs:

      Description

      Bug description

      This error message "Unable to send SOAPMessage to IDP" is misleading.

      How to reproduce the issue

      #1. Setup one AM SP

      #2. Setup one AM IDP

      #3. Do the SP initiated SSO

      #4. kill the SP process.

      #5. Run IDP initiated SLO

      #6. Observe the Federation log from the IDP and observe the misleading error message.

       

      ERROR: Unable to send SOAPMessage to IDP    <=========== 
      com.sun.xml.messaging.saaj.SOAPExceptionImpl: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
       at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:163)
       at com.sun.identity.saml2.common.SOAPCommunicator.sendSOAPMessage(SOAPCommunicator.java:292)
       at com.sun.identity.saml2.profile.LogoutUtil.doSLOBySOAP(LogoutUtil.java:404)
       at com.sun.identity.saml2.profile.LogoutUtil.doLogout(LogoutUtil.java:299)
       at com.sun.identity.saml2.profile.IDPSingleLogout.initiateLogoutRequest(IDPSingleLogout.java:307)
       at org.apache.jsp.saml2.jsp.idpSingleLogoutInit_jsp._jspService(idpSingleLogoutInit_jsp.java:279)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      
      < truncated > 
      
      CAUSE:com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
              at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:295)
              at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:159)
              at com.sun.identity.saml2.common.SOAPCommunicator.sendSOAPMessage(SOAPCommunicator.java:292)
              at com.sun.identity.saml2.profile.LogoutUtil.doSLOBySOAP(LogoutUtil.java:404)
              at com.sun.identity.saml2.profile.LogoutUtil.doLogout(LogoutUtil.java:299)
              at com.sun.identity.saml2.profile.IDPSingleLogout.initiateLogoutRequest(IDPSingleLogout.java:307)
              at 
      <truncated>
      Caused by: java.net.ConnectException: Connection refused (Connection refused)
              at java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
              at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392

      Code analysis

      openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile/LogoutUtil.java
              try {
                 resMsg = SOAPCommunicator.getInstance().sendSOAPMessage(sloRequestXMLString, sloURL,
                         true);
             } catch (SOAPException se) {
                  debug.error("Unable to send SOAPMessage to IDP ", se);   <====== 
                  throw new SAML2Exception(se.getMessage());
              }

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sam.phua Sam Phua
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: