[ 
https://issues.apache.org/jira/browse/CXF-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-2538.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.6
                   2.1.9
         Assignee: Daniel Kulp


Made a slight modification to the patch to put the single quotes into the 
StringBuilder so if the builder ends up empty, you don't see an empty set of 
quotes in the the log.  

> Proposal : enhancement of PhaseInterceptorChain warning message
> ---------------------------------------------------------------
>
>                 Key: CXF-2538
>                 URL: https://issues.apache.org/jira/browse/CXF-2538
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.3
>            Reporter: Cyrille Le Clerc
>            Assignee: Daniel Kulp
>             Fix For: 2.1.9, 2.2.6
>
>         Attachments: CXF-2538.patch
>
>
> 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.

Reply via email to