You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Nicolas Dutertry (JIRA)" <ji...@apache.org> on 2016/01/28 13:38:39 UTC

[jira] [Created] (KARAF-4299) NoSuchElementException when clearing history

Nicolas Dutertry created KARAF-4299:
---------------------------------------

             Summary: NoSuchElementException when clearing history
                 Key: KARAF-4299
                 URL: https://issues.apache.org/jira/browse/KARAF-4299
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 4.0.4
            Reporter: Nicolas Dutertry
            Priority: Minor


When using command "history" with option "--clear", an error NoSuchElementException is raised :
{noformat}
karaf@root()> history -c
Error executing command: java.util.NoSuchElementException
{noformat}

Here is the detailed error in log file:
{noformat}
java.util.NoSuchElementException
	at jline.console.history.MemoryHistory$EntriesIterator.next(MemoryHistory.java:200)[10:jline:2.13.0]
	at jline.console.history.MemoryHistory$EntriesIterator.next(MemoryHistory.java:189)[10:jline:2.13.0]
	at org.apache.karaf.shell.impl.console.HistoryWrapper.first(HistoryWrapper.java:37)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.karaf.shell.commands.impl.HistoryAction.execute(HistoryAction.java:45)[42:org.apache.karaf.shell.commands:4.0.4]
	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[44:org.apache.karaf.shell.core:4.0.4]
	at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:270)[44:org.apache.karaf.shell.core:4.0.4]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
{noformat}



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