You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Alan Foster (JIRA)" <ji...@apache.org> on 2012/12/21 23:45:12 UTC

[jira] [Reopened] (KARAF-1973) NullPointerException when performing log:clear then log:tail

     [ https://issues.apache.org/jira/browse/KARAF-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Foster reopened KARAF-1973:
--------------------------------


As requested I have reopened this issue as I am able to reproduce this same error on karaf 2.3 on windows 7

{code}
karaf@root> log:Clear
karaf@root> log:Tail
Error executing command: java.lang.NullPointerException
karaf@root> version
2.3.0
karaf@root> log:tail
2012-12-21 22:35:51,589 | INFO  | l Console Thread | Console
      | araf.shell.console.jline.Console  199 | 14 - org.apache.karaf.shell.cons
ole - 2.3.0 | Exception caught while executing command
java.lang.NullPointerException
        at org.apache.karaf.shell.log.DisplayLog.getColor(DisplayLog.java:172)[2
1:org.apache.karaf.shell.log:2.3.0]
        at org.apache.karaf.shell.log.DisplayLog.display(DisplayLog.java:143)[21
:org.apache.karaf.shell.log:2.3.0]
        at org.apache.karaf.shell.log.LogTail.doExecute(LogTail.java:40)[21:org.
apache.karaf.shell.log:2.3.0]
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommand
Support.java:38)[14:org.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(Abstract
Command.java:35)[14:org.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:
78)[14:org.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14
:org.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:4
00)[14:org.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.k
araf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:or
g.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:or
g.apache.karaf.shell.console:2.3.0]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessi
onImpl.java:89)[14:org.apache.karaf.shell.console:2.3.0]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:175)[14
:org.apache.karaf.shell.console:2.3.0]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_27]
^C
{code}

Again, the steps to reproduce are not entirely clear. But a log:clear followed by a log:tail is what causes this to occur eventually
                
> NullPointerException when performing log:clear then log:tail
> ------------------------------------------------------------
>
>                 Key: KARAF-1973
>                 URL: https://issues.apache.org/jira/browse/KARAF-1973
>             Project: Karaf
>          Issue Type: Bug
>         Environment: Windows Server 2008 r2, Ubuntu
>            Reporter: Alan Foster
>
> This occurs within FuseESB, but it was mentioned that this may be a karaf issue
> Here is the sequence of events which take place :
> {code}
> 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]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira