karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5063) Karaf shutdowns when '<' or '>' typed in shell
Date Mon, 16 Oct 2017 14:28:00 GMT

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

Guillaume Nodet commented on KARAF-5063:
----------------------------------------

This has been fixed in 4.1.1 already.

> Karaf shutdowns when '<' or '>' typed in shell
> ----------------------------------------------
>
>                 Key: KARAF-5063
>                 URL: https://issues.apache.org/jira/browse/KARAF-5063
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.0
>            Reporter: Dominik Przybysz
>            Assignee: Guillaume Nodet
>
> I start karaf and type '<':
> {code}
> bash$ ./bin/karaf 
>         __ __                  ____      
>        / //_/____ __________ _/ __/      
>       / ,<  / __ `/ ___/ __ `/ /_        
>      / /| |/ /_/ / /  / /_/ / __/        
>     /_/ |_|\__,_/_/   \__,_/_/         
>   Apache Karaf (4.1.0)
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
> karaf@root()> Error executing command: 2                                         
                                                                                         
                                                          bash$
> {code}
> and karaf shutdowns.
> Exception from karaf.log:
> {code}
> 2017-03-25T09:51:28,472 | ERROR | Karaf local console user karaf | ShellUtil        
               | 43 - org.apache.karaf.shell.core - 4.1.0 | Exception caught while executing
command
> java.lang.ArrayIndexOutOfBoundsException: 2
>         at org.apache.felix.gogo.runtime.Token.charAt(Token.java:81) [43:org.apache.karaf.shell.core:4.1.0]
>         at java.util.regex.Pattern$Slice.match(Pattern.java:3969) [?:?]
>         at java.util.regex.Pattern$Branch.match(Pattern.java:4604) [?:?]
>         at java.util.regex.Matcher.match(Matcher.java:1270) [?:?]
>         at java.util.regex.Matcher.matches(Matcher.java:604) [?:?]
>         at org.apache.felix.gogo.runtime.Tokenizer.next(Tokenizer.java:111) [43:org.apache.karaf.shell.core:4.1.0]
>         at org.apache.felix.gogo.runtime.Parser.next(Parser.java:284) [43:org.apache.karaf.shell.core:4.1.0]
>         at org.apache.felix.gogo.runtime.Parser.program(Parser.java:202) [43:org.apache.karaf.shell.core:4.1.0]
>         at org.apache.felix.gogo.jline.Highlighter.highlight(Highlighter.java:58) [43:org.apache.karaf.shell.core:4.1.0]
>         at org.jline.reader.impl.LineReaderImpl.getDisplayedBufferWithPrompts(LineReaderImpl.java:3263)
[50:org.jline:3.1.3]
>         at org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3203) [50:org.jline:3.1.3]
>         at org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2180) [50:org.jline:3.1.3]
>         at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:570) [50:org.jline:3.1.3]
>         at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:332)
[43:org.apache.karaf.shell.core:4.1.0]
>         at java.lang.Thread.run(Thread.java:745) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message