Proposal : enhancement of HTTP exceptions messages
--------------------------------------------------
Key: CXF-2537
URL: https://issues.apache.org/jira/browse/CXF-2537
Project: CXF
Issue Type: Improvement
Components: Transports
Affects Versions: 2.2.3
Reporter: Cyrille Le Clerc
Troubleshooting of client side HTTP exceptions is often difficult for
development, integration and troubleshooting teams.
Here is a proposal of enhancements of the exception messages :
* Add the HTTP error code for 404 exceptions in addition to the message
returned by the server.
** Current message : {{java.io.IOException: Not Found}}
** Enhanced Message : {{java.io.IOException: HTTP response '404: Not Found'}}
* Add intermediate IOException with the invoked URL in the stack of causes of
the "WebServiceException: Could not send Message." exception.
{noformat:title=Current HTTP 404 exception message}
javax.xml.ws.WebServiceException: Could not send Message.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at $Proxy67.sayHi(Unknown Source)
...
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: Not Found
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2115)
... 71 more
{noformat}
{noformat:title=Enhanced HTTP 404 exception message}
javax.xml.ws.WebServiceException: Could not send Message.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at $Proxy67.sayHi(Unknown Source)
...
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: IOException invoking
http://localhost:8080/jmx-demo/faults/this-page-does-not-exist-404.jsp
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1984)
... 62 more
Caused by: java.io.IOException: HTTP response '404: Not Found'
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2115)
... 71 more
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.