Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2905

Reduce logging level on non-OFE management API user errors

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 7.1.0.CR1
    • None
    • Domain Management
    • None

    Description

      A number of methods in OperationContext and similar places throw runtime exceptions when error conditions are detected that are really due to user mistakes (e.g. trying to add a resource that's already present.) These are caught and logged at ERROR. It would be better if OperationFailedException were thrown, since those are only logged at DEBUG – logging client request errors at ERROR in the server log is noisy and will anger admins.

      Unfortunately, OFE is a checked exception, so we can't throw it without making an incompatible API change that may break subsystems.

      Solution is to create an OperationFailedRuntimeException and throw that. The logic that catches and handles OFE will do the same thing for OFRE.

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: