Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-3873

Reformat exception in SOAPClient on http 500

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.11
    • Fix Version/s: 4.12
    • Component/s: Web Services
    • Labels:
      None

      Description

      ESB behavior when SOAPClient is used and an HTTP 500 is encountered. SOA-P in this case throws an Exception that contains the HTTP 500 stack trace, which ActionProcessingPipeline receives. In forming replyTo Msg, it uses Util and fails because the Exception isn't in a format it is prepared to handle.

      The end result is that the pipeline does not provide a useful message.

      A fix is suggested below. By properly formatting the Exception, Util is happy with the results and everything works as it should. The customer that opened the case validates that the symptom reported has not happened since using this code.

      // Code from SOAPClient, as fixed. To find the spot, grep for 'if(responseAsOgnlMap) then compare from there.

      if(responseAsOgnlMap) {
      try

      { String mergedResponse = soapUIInvoker.mergeResponseTemplate(wsdl, getEndpointOperation(), soapServiceName, response.getBody(), httpClientProps, null, soapNs); response.setBody(mergedResponse); }

      catch (IOException e)

      { Exception validException = new Exception("IOException in attempt to set Response body with merged result, possibly as result of an HTTP 500"); throw new ActionProcessingException("soapUI Client Service invocation failed3.", validException); }

      catch (SAXException e)

      { throw new ActionProcessingException("soapUI Client Service invocation failed4.", e); }

      }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tcunning Thomas Cunningham
                  Reporter:
                  tcunning Thomas Cunningham
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: