[esb-issues] [JBoss JIRA] (JBESB-3872) Reformat exception in SOAPClient on http 500

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Mon Nov 12 11:19:19 EST 2012


    [ https://issues.jboss.org/browse/JBESB-3872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733456#comment-12733456 ] 

RH Bugzilla Integration commented on JBESB-3872:
------------------------------------------------

Rick Wagner <rwagner at redhat.com> made a comment on [bug 781067|https://bugzilla.redhat.com/show_bug.cgi?id=781067]

This fix incorporated in changeset found at [1].

Provided via JBESB-3872.


[1] https://source.jboss.org/changelog/JBossESB?cs=38240
                
> Reformat exception in SOAPClient on http 500
> --------------------------------------------
>
>                 Key: JBESB-3872
>                 URL: https://issues.jboss.org/browse/JBESB-3872
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web Services
>    Affects Versions: 4.11 CP2
>            Reporter: Tom Cunningham
>            Assignee: Tom Cunningham
>             Fix For: 4.11 CP2
>
>
> 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);
>             }
>         }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the esb-issues mailing list