Description
Start karaf and type either < or >. Karaf will exit with the exception below in the log. This looks like an issue in felix gogo but as it occurs in karaf I add the issue here too.
2017-02-10T14:27:22,195 | ERROR | Karaf local console user karaf | ShellUtil | 43 - org.apache.karaf.shell.core - 4.1.1.SNAPSHOT | Exception caught while executing command
java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.felix.gogo.runtime.Token.charAt(Token.java:81) [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
at java.util.regex.Pattern$Slice.match(Pattern.java:3969) [?:?]
at java.util.regex.Pattern$Ques.match(Pattern.java:4182) [?:?]
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.1.SNAPSHOT]
at org.apache.felix.gogo.runtime.Parser.next(Parser.java:284) [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
at org.apache.felix.gogo.runtime.Parser.program(Parser.java:202) [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
at org.apache.felix.gogo.jline.Highlighter.highlight(Highlighter.java:58) [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
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.1.SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [?:?]
Attachments
Issue Links
- depends upon
-
FELIX-5541 ArrayIndexOutOfBoundsException in the parser
- Resolved
-
KARAF-5025 Upgrade to Gogo 1.0.4
- Resolved