Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5016

Possible NPE while running "log:tail" in Karaf console

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.2
    • Component/s: karaf
    • Labels:
      None

      Description

      There is occasional NPE while running "log:tail" in Karaf console.

      This occurs few times per day, it has no real impact other then tailing of log is stopped (and must be restarted by CTRL+C, log:tail)

      Exception in thread "pool-51-thread-1" java.lang.NullPointerException
      at org.apache.karaf.log.core.internal.layout.PatternParser$MDCPatternConverter.convert(PatternParser.java:551)
      at org.apache.karaf.log.core.internal.layout.PatternConverter.format(PatternConverter.java:63)
      at org.apache.karaf.log.core.internal.LogEventFormatterImpl.format(LogEventFormatterImpl.java:117)
      at org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:121)
      at org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:105)
      at org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:113)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              rkosegi Richard Kosegi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: