[ 
https://issues.apache.org/jira/browse/KARAF-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483738#comment-13483738
 ] 

Heath Kesler commented on KARAF-1973:
-------------------------------------

this issue appears to be fixed, I tested in 2.2.10-SNAPSHOT, 2.3, and 3.0 and 
all worked as expected (no exceptions).  

Steps to test:
-  start karaf
-  log:clear
-  log:tail
-  log:tail (again just to make sure it did not throw an exception the first 
time)

no error

I also tried several combinations of clear and tail in between other commands, 
just to make sure.
                
> 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

Reply via email to