You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2015/08/06 11:51:04 UTC

[jira] [Updated] (KARAF-3906) NPE when doing log:clear and log:display and log full=true

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

Christian Schneider updated KARAF-3906:
---------------------------------------
    Summary: NPE when doing log:clear and log:display and log full=true  (was: NPE when doing log:clear and log:display and many log full)

> NPE when doing log:clear and log:display and log full=true
> ----------------------------------------------------------
>
>                 Key: KARAF-3906
>                 URL: https://issues.apache.org/jira/browse/KARAF-3906
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 4.0.1
>
>
> When executing the below commands the NPE delow appears. The reason seems to be that the full flag is not reset to false when clear is called.
> So to reproduce make sure you create a lot of log entries first.
> karaf@trun()> log:clear 
> karaf@trun()> log:display 
> Error executing command: java.lang.NullPointerException
> karaf@trun()> log:tail 
> 2015-08-06 11:46:31,833 | ERROR | nsole user karaf | ShellUtil                        | 50 - org.apache.karaf.shell.core - 4.0.0 | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.karaf.log.command.DisplayLog.execute(DisplayLog.java:85)[44:org.apache.karaf.log.core:4.0.0]
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[50:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:267)[50:org.apache.karaf.shell.core:4.0.0]
> 	at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)