Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22497

[GSS](7.4.z) CXF-8596 - Fix infinite loop in WebFaultOutInterceptor

    XMLWordPrintable

Details

    Description

      This happens when :
      1. jaxws service endpoint A calls another endpoint service B
      2. endpoint service B throws SOAPFaultException, and this SOAPFaultException wraps a SOAPFault which is constructed with an Exception class like :

      
          public String proxyException(String input) throws SOAPFaultException {
              try {
                  Integer.parseInt(input);
              } catch (Exception e) {
                  throw new SOAPFaultException(
                          createSOAPFault(new EchoException("exception from testException()")));
              }
              return "DONE";
          }
      
          private SOAPFault createSOAPFault(Throwable ex) {
              try {
                  SOAPFault soapFault = SOAPFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL).createFault();
                  soapFault.setFaultCode(new QName(SOAPConstants.URI_NS_SOAP_ENVELOPE, "Server", "a"));
                  soapFault.setFaultString("SOAPFaultString");
                  soapFault.setFaultActor("ServerSide");
                  soapFault.addDetail();
                  return soapFault;
              } catch (SOAPException e) {
                  throw new RuntimeException(e);
              }
          }
      
      

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: JBEAP

              People

                rhn-support-ivassile Ilia Vassilev
                rhn-support-leiyu Lei Yu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: