cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyrille Le Clerc (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2538) Proposal : enhancement of PhaseInterceptorChain warning message
Date Mon, 16 Nov 2009 15:51:39 GMT
Proposal : enhancement of PhaseInterceptorChain warning message
---------------------------------------------------------------

                 Key: CXF-2538
                 URL: https://issues.apache.org/jira/browse/CXF-2538
             Project: CXF
          Issue Type: Improvement
    Affects Versions: 2.3
            Reporter: Cyrille Le Clerc


PhaseInterceptorChain outputs a warning message in the logs when an unchecked application
exception or a RuntimeException is throwned.

Unfortunately, this message doesn't tell which operation on which service is involved. If
the stack traces are not emitted in the logs, it can be impossible to associate the error
message with a web service. 

Here is a proposal of enhancement of the warning message : add service name and operation
name to the message.

Current warning message for a RuntimeException
======================================

Application has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: the runtime exception
	at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
	...
	at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.RuntimeException: the runtime exception
	... 72 more

Enhanced warning message for a RuntimeException
========================================

Application {http://www.example.com/}helloWorldService#{http://www.example.com/}sayHi has
thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: the runtime exception
	at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
	...
	at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.RuntimeException: the runtime exception
	... 72 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message