Uploaded image for project: 'Okapi'
  1. Okapi
  2. OKAPI-883

Log4j2Plugins.dat in fat jar causes "Unrecognized format specifier"

    XMLWordPrintable

Details

    • CP: sprint 96
    • 2
    • Core: Platform

    Description

      When running okapi with fat jar (which is what we do pretty much always) .. the logging is not JSON format or other .. In fact, nothing is printed except a few warnings.. after that point it is silent:

      adam@nzxt:~/folio/okapi$ java -jar okapi-core/target/okapi-core-fat.jar dev
      WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
      ERROR StatusLogger Unrecognized format specifier [d]
      ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [thread]
      ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [level]
      ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [logger]
      ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [msg]
      ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [n]
      ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [d]
      ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [thread]
      ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [level]
      ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [logger]
      ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [msg]
      ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [n]
      ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [d]
      ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [thread]
      ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [level]
      ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [logger]
      ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [msg]
      ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [n]
      ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [d]
      ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [thread]
      ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [level]
      ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [logger]
      ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [msg]
      ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
      ERROR StatusLogger Unrecognized format specifier [n]
      ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
      

      The first WARNING also happens in OKAPI 4.0.0.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mikhail.fokanov Mikhail Fokanov
                adam Adam Dickmeiss
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases