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/10/25 00:16:13 UTC

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

Alan Foster created KARAF-1973:
----------------------------------

             Summary: 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

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

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483847#comment-13483847 ] 

Freeman Fang commented on KARAF-1973:
-------------------------------------

Yeah, most likely KARAF-546 already fixed it, and the FUSE ESB version(7.0.2.fuse-097) you're using definitely already have this fix. I also tried that version and log:clear|log:tail just works for me and I can't reproduce this NPE. Could you elaborate how we can reproduce it?

Freeman

                
> 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

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

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484230#comment-13484230 ] 

Jean-Baptiste Onofré commented on KARAF-1973:
---------------------------------------------

I'm not able to reproduce it on 2.2.9, 2.2.10-SNAPSHOT, 2.3.0, 2.3.1-SNAPSHOT, and 3.0.0-SNAPSHOT.

I close this issue, please reopen it if you reproduce it on one of the listed versions above.
                
> 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

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

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-1973.
-----------------------------------------

    Resolution: Cannot Reproduce
    
> 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

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

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
    [ 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