CFX does not log caught RuntimeException
----------------------------------------
Key: CXF-2086
URL: https://issues.apache.org/jira/browse/CXF-2086
Project: CXF
Issue Type: Improvement
Components: REST
Affects Versions: 2.1.4
Environment: Java 6 and Windows 7
Reporter: Matt Helgren
Fix For: 2.1.5
We are using CXF and the JAXRS component to build our next generation
application based on REST services. Recently we have a very hard time
debugging REST requests that fail with a 500 response. We find that the
failures are due to our own issues with JAXB marsharlling but it is very hard
to discover because JAXRS and CXF do not report/log the exceptions caught from
JAXB.
JAXB errors seem to be caught by the framework in
JAXRSInIntercepter.handleMessage(). Please add some logging to the catch
block. Right now all it does is create a fault response for the client that
has very little information about the actual root cause.
This may seem like a small change but it would help us immensely in our
development process with CXF.
I would also request that you review your error handling in general and
determine if appropriate logging is in place.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.