Details
Description
When using command "history" with option "--clear", an error NoSuchElementException is raised :
karaf@root()> history -c Error executing command: java.util.NoSuchElementException
Here is the detailed error in log file:
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]