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

Constraint Validation Exceptions Logging at Warn logging.LogUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • JAX-RS
    • None
    • Unknown

    Description

      When a ConstraintValidationExceptions are thrown they are bubbled up to the PhaseInterceptorChain before being logged. This causes exceptions to be logged at logging.LogUtils as a WARN message. This is not ideal because cxf validation failures will end up being logged or true cxf WARN messages will not be logged. Would be nice if these were logged at a different level, or were not logged using the default logger, but instead a custom FaultListener.

      Note

      This is being logged by PhaseInterceptorChain, not the ValidationExceptionMapper

      Example Log

      Interceptor for {http://profile.services.profile.bodybuilding.com/}ProfileService has thrown exception, unwinding now javax.validation.ConstraintViolationException

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            Peter.Davidson Peter Davidson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: