Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8244

The "HTTP 405 Method Not Allowed" warning is printing exception trace in log file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Information Provided
    • Affects Version/s: 3.2.12
    • Fix Version/s: None
    • Component/s: JAX-RS, logging
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              kavitapr@in.ibm.com Kavita
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: