karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raman Gupta (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1103) Shell produces error sometimes when using Ctrl-R for history search
Date Sun, 11 Dec 2011 23:50:31 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167280#comment-13167280
] 

Raman Gupta commented on KARAF-1103:
------------------------------------

Here is the full stack from dev:print-stack-traces:

java.lang.IndexOutOfBoundsException: Index: 500, Size: 499
        at java.util.LinkedList.checkPositionIndex(LinkedList.java:558)                  
                                                                                         
                                 
        at java.util.LinkedList.listIterator(LinkedList.java:865)                        
                                                                                         
                                 
        at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:172)
                                                                                         
                             
        at jline.console.history.MemoryHistory$EntriesIterator.<init>(MemoryHistory.java:166)
                                                                                         
                             
        at jline.console.history.MemoryHistory.entries(MemoryHistory.java:129)           
                                                                                         
                                 
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:2015)          
                                                                                         
                                 
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:2000)          
                                                                                         
                                 
        at jline.console.ConsoleReader.searchBackwards(ConsoleReader.java:2010)          
                                                                                         
                                 
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:1176)                 
                                                                                         
                                 
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:1078)                 
                                                                                         
                                 
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:191)            
                                                                                         
                                 
        at java.lang.Thread.run(Thread.java:722)    

                
> Shell produces error sometimes when using Ctrl-R for history search
> -------------------------------------------------------------------
>
>                 Key: KARAF-1103
>                 URL: https://issues.apache.org/jira/browse/KARAF-1103
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>         Environment: Linux, JDK7, readline installed
>            Reporter: Raman Gupta
>            Priority: Minor
>
> The Karaf shell sometimes -- but not always -- produces an error when a Ctrl-R is used
to do a reverse incremental history search.
> karaf@root> 
> (reverse-i-search)`': Error executing command: Index: 500, Size: 499
> It works about 80% of the time though. Also, I cannot reproduce the error when running
"karaf/shell" directly -- only when using the remote shell.

--
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