[
https://issues.apache.org/jira/browse/CXF-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cyrille Le Clerc updated CXF-2538:
----------------------------------
Attachment: CXF-2538.patch
Proposed patch : in the warning message, add
${message.exchange.service.name}#${message.exchange.operation.name}.
Note : code relies on o.a.c.s.Service and o.a.c.s.model.OperationInfo rather
than on Message.WSDL_SERVICE and Message.WSDL_OPERATION to work with REST calls.
> 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
> 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.