karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hendy Irawan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-1725) IndexOutOfBoundsException when using Ctrl+R (search console shell commands history)
Date Tue, 14 Aug 2012 12:35:38 GMT

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

Hendy Irawan updated KARAF-1725:
--------------------------------

    Description: 
Pressing Ctrl+R then typing a few characters (not yet pressing Enter) immediately throws exception.

Not exactly sure what actually triggers this bug. It doesn't always happen.

Log & stack trace :

{code}
2012-08-14 10:34:46,355 | INFO  | l Console Thread | Console                          | araf.shell.console.jline.Console
 196 | 27 - org.apache.karaf.shell.console - 2.3.0.SNAPSHOT | Exception caught while executing
command
java.lang.IndexOutOfBoundsException: Index: 500, Size: 499
        at java.util.LinkedList.checkPositionIndex(LinkedList.java:558)[:1.7.0_03]
        at java.util.LinkedList.listIterator(LinkedList.java:865)[:1.7.0_03]
        at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:195)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:189)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.history.MemoryHistory.entries(MemoryHistory.java:152)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3494)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3479)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3489)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2308)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2092)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.karaf.shell.console.jline.Console.readAndParseCommand(Console.java:232)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:163)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
{code}

Several of the commands I executed :

{code}
...
 485  start 792
  486  start 729
  487  list
  488  booking:ls
  489  
  490  list
  491  image:ls
  492  image:ls -n shop
  493  
  494  list
  495  start 72
  496  
  497  list
  498  
  499  list
  500  commerceperson:ls
  501  commerce:cat arum
  502  commerceperson:cat arum
  503  list
  504  list -t 0 -s
  505  headers 729
  506  dev:create-dump --help
  507  dev:restart --help
  508  dev:framework --help
  509  
  510  history
{code}


  was:
Pressing Ctrl+R then typing a few characters (not yet pressing Enter) immediately throws exception.

Not exactly sure what actually triggers this bug.

Log & stack trace :

{code}
2012-08-14 10:34:46,355 | INFO  | l Console Thread | Console                          | araf.shell.console.jline.Console
 196 | 27 - org.apache.karaf.shell.console - 2.3.0.SNAPSHOT | Exception caught while executing
command
java.lang.IndexOutOfBoundsException: Index: 500, Size: 499
        at java.util.LinkedList.checkPositionIndex(LinkedList.java:558)[:1.7.0_03]
        at java.util.LinkedList.listIterator(LinkedList.java:865)[:1.7.0_03]
        at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:195)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:189)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.history.MemoryHistory.entries(MemoryHistory.java:152)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3494)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3479)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3489)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2308)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2092)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.karaf.shell.console.jline.Console.readAndParseCommand(Console.java:232)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:163)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
{code}

Several of the commands I executed :

{code}
...
 485  start 792
  486  start 729
  487  list
  488  booking:ls
  489  
  490  list
  491  image:ls
  492  image:ls -n shop
  493  
  494  list
  495  start 72
  496  
  497  list
  498  
  499  list
  500  commerceperson:ls
  501  commerce:cat arum
  502  commerceperson:cat arum
  503  list
  504  list -t 0 -s
  505  headers 729
  506  dev:create-dump --help
  507  dev:restart --help
  508  dev:framework --help
  509  
  510  history
{code}


    
> IndexOutOfBoundsException when using Ctrl+R (search console shell commands history)
> -----------------------------------------------------------------------------------
>
>                 Key: KARAF-1725
>                 URL: https://issues.apache.org/jira/browse/KARAF-1725
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.3.0
>         Environment:   Java Virtual Machine        OpenJDK 64-Bit Server VM version 22.0-b10
>   Version                     1.7.0_03
>            Reporter: Hendy Irawan
>
> Pressing Ctrl+R then typing a few characters (not yet pressing Enter) immediately throws
exception.
> Not exactly sure what actually triggers this bug. It doesn't always happen.
> Log & stack trace :
> {code}
> 2012-08-14 10:34:46,355 | INFO  | l Console Thread | Console                        
 | araf.shell.console.jline.Console  196 | 27 - org.apache.karaf.shell.console - 2.3.0.SNAPSHOT
| Exception caught while executing command
> java.lang.IndexOutOfBoundsException: Index: 500, Size: 499
>         at java.util.LinkedList.checkPositionIndex(LinkedList.java:558)[:1.7.0_03]
>         at java.util.LinkedList.listIterator(LinkedList.java:865)[:1.7.0_03]
>         at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:195)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:189)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.history.MemoryHistory.entries(MemoryHistory.java:152)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3494)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3479)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:3489)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.ConsoleReader.readLine(ConsoleReader.java:2308)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at jline.console.ConsoleReader.readLine(ConsoleReader.java:2092)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at org.apache.karaf.shell.console.jline.Console.readAndParseCommand(Console.java:232)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at org.apache.karaf.shell.console.jline.Console.run(Console.java:163)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
>         at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
> {code}
> Several of the commands I executed :
> {code}
> ...
>  485  start 792
>   486  start 729
>   487  list
>   488  booking:ls
>   489  
>   490  list
>   491  image:ls
>   492  image:ls -n shop
>   493  
>   494  list
>   495  start 72
>   496  
>   497  list
>   498  
>   499  list
>   500  commerceperson:ls
>   501  commerce:cat arum
>   502  commerceperson:cat arum
>   503  list
>   504  list -t 0 -s
>   505  headers 729
>   506  dev:create-dump --help
>   507  dev:restart --help
>   508  dev:framework --help
>   509  
>   510  history
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message