Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7427

Avoid failure when configuring DUnit suspect logging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • tests
    • None

    Description

      Specifically, if log4j-to-slf4j is on the classpath, DUnitLauncher will fail with a ClassCastException:

      Caused by: java.lang.ClassCastException: org.apache.logging.slf4j.SLF4JLogger cannot be cast to org.apache.logging.log4j.core.Logger
      	at org.apache.geode.test.dunit.internal.DUnitLauncher.addSuspectFileAppender(DUnitLauncher.java:272)
      	at org.apache.geode.test.dunit.internal.DUnitLauncher.init(DUnitLauncher.java:335)
      	at org.apache.geode.test.dunit.internal.DUnitLauncher.launch(DUnitLauncher.java:225)
      	at org.apache.geode.test.dunit.internal.DUnitLauncher.launchIfNeeded(DUnitLauncher.java:160)
      	... 11 more
      

      Attachments

        Issue Links

          Activity

            People

              echobravo Ernest Burghardt
              jens.deppe Jens Deppe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m