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

NullPointerException when performing log:clear then log:tail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.12, 2.3.2, 2.4.0, 3.0.0
    • None
    • None
    • Windows Server 2008 r2, Ubuntu

    Description

      This occurs within FuseESB, but it was mentioned that this may be a karaf issue

      Here is the sequence of events which take place :

      FuseESB:karaf@root> log:clear
      FuseESB:karaf@root> log:tail
      Error executing command: java.lang.NullPointerException
      FuseESB:karaf@root> log:tail
      2012-10-19 22:22:34,260 | INFO  | l Console Thread | Console                          | 18 - org.apache.karaf.shell.console - 2.2.5.fuse-70-097 | Exception caught while executing command
      java.lang.NullPointerException
      	at org.apache.karaf.shell.log.DisplayLog.getColor(DisplayLog.java:172)[42:org.apache.karaf.shell.log:2.2.5.fuse-70-097]
      	at org.apache.karaf.shell.log.DisplayLog.display(DisplayLog.java:143)[42:org.apache.karaf.shell.log:2.2.5.fuse-70-097]
      	at org.apache.karaf.shell.log.LogTail.doExecute(LogTail.java:40)[42:org.apache.karaf.shell.log:2.2.5.fuse-70-097]
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:233)[18:org.apache.karaf.shell.console:2.2.5.fuse-70-097]
      	at java.lang.Thread.run(Thread.java:722)[:1.7.0_07]
      

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            alanfoster Alan Foster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: