Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4299

NoSuchElementException when clearing history

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.0, 4.0.5
    • Component/s: None
    • Labels:
      None

      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]
      

        Attachments

          Activity

            People

            • Assignee:
              ancosen Andrea Cosentino
              Reporter:
              nicolas.dutertry Nicolas Dutertry
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: