You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2020/03/19 07:00:04 UTC
[jira] [Resolved] (CXF-8244) The "HTTP 405 Method Not Allowed"
warning is printing exception trace in log file
[ https://issues.apache.org/jira/browse/CXF-8244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved CXF-8244.
--------------------------------------
Resolution: Information Provided
Thanks for the update. I am not going to fix this, as it's working "as designed". Please see the following links for how to log at FINE instead:
[https://rmannibucau.metawerx.net/post/jaxrs-cxf-disable-stacktrace]
[http://cxf.547215.n5.nabble.com/How-to-turn-off-stack-trace-for-WebApplicationExceptionMapper-in-CXF-RS-2-7-8-td5738357.html]
> The "HTTP 405 Method Not Allowed" warning is printing exception trace in log file
> ---------------------------------------------------------------------------------
>
> Key: CXF-8244
> URL: https://issues.apache.org/jira/browse/CXF-8244
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS, logging
> Affects Versions: 3.2.12
> Reporter: Kavita
> Assignee: Colm O hEigeartaigh
> Priority: Minor
>
> The warning "HTTP 405 Method Not Allowed" is printing the stack trace in log file. Can we change the log level for printing stack trace as 'debug' or 'verbose'? This will allow other applications also to control the log levels appropriately.
> The exception appears like this in logs:
> WARNING: javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed
> 2019-10-30 03:23:26.927 **************************
> at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117)
> 2019-10-30 03:23:26.927 **************************
> at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:167)
> 2019-10-30 03:23:26.928 **************************
> at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:238)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)