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

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

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

Andrea Cosentino resolved KARAF-4299.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.5
                   4.1.0

> 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
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.1.0, 4.0.5
>
>
> 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)