Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4764

ClassCastException when trying to modify properties in custom appender Service

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Commons Log 4.0.2, Commons Log 4.0.4
    • Fix Version/s: Commons Log 4.0.4
    • Component/s: Commons
    • Labels:
      None

      Description

      Exception:
      java.lang.ClassCastException: org.apache.sling.commons.log.logback.internal.AppenderTracker$AppenderInfo cannot be cast to ch.qos.logback.core.Appender
      at org.apache.sling.commons.log.logback.internal.AppenderTracker.modifiedService(AppenderTracker.java:78)

      Solution:
      org.apache.sling.commons.log.logback.internal.AppenderTracker#addingService should return Appender (a) instead of AppenderInfo (ai)

        Attachments

          Activity

            People

            • Assignee:
              chetanm Chetan Mehrotra
              Reporter:
              bobi Andrey Bardashevsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: