[jboss-jira] [JBoss JIRA] (WFCORE-3828) ArrayIndexOutOfBoundsException on clear screen if the cursor in on the start position
Petr Kremensky (JIRA)
issues at jboss.org
Fri May 11 04:34:00 EDT 2018
Petr Kremensky created WFCORE-3828:
--------------------------------------
Summary: ArrayIndexOutOfBoundsException on clear screen if the cursor in on the start position
Key: WFCORE-3828
URL: https://issues.jboss.org/browse/WFCORE-3828
Project: WildFly Core
Issue Type: Bug
Components: CLI
Affects Versions: 5.0.0.Alpha7
Environment:
{noformat}
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: /usr/lib/maven
Java version: 1.8.0_171, vendor: Oracle Corporation
Java home: /usr/lib/java/jdk1.8.0_171/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.17-300.fc27.x86_64", arch: "amd64", family: "unix"
git rev-parse --short HEAD
c0847897a3
{noformat}
Reporter: Petr Kremensky
Assignee: Jean-Francois Denise
CLI throws java.lang.ArrayIndexOutOfBoundsException user tries to clear screen (Ctrl+L) with cursor at the starting position.
*reproduce*
{noformat}
wildfly-core] (master)$ ./build/target/wildfly-core-5.0.0.Beta1-SNAPSHOT/bin/jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
# type 'a'
[disconnected /] a[]
# press "home" or left cursor key to move the cursor back to initial position
[disconnected /] []a
# clear the screen (Ctrl+L)
Exception in thread "CLI Terminal Connection (uninterruptable)" java.lang.ArrayIndexOutOfBoundsException: -1
at org.aesh.readline.Buffer.printInsertedData(Buffer.java:561)
at org.aesh.readline.Buffer.insert(Buffer.java:217)
at org.aesh.readline.AeshConsoleBuffer.writeChars(AeshConsoleBuffer.java:143)
at org.aesh.readline.action.mappings.Clear.accept(Clear.java:39)
at org.aesh.readline.Readline$AeshInputProcessor.parse(Readline.java:245)
at org.aesh.readline.Readline$AeshInputProcessor.access$100(Readline.java:174)
at org.aesh.readline.Readline.readInput(Readline.java:95)
at org.aesh.readline.Readline.access$1000(Readline.java:57)
at org.aesh.readline.Readline$AeshInputProcessor.lambda$start$1(Readline.java:333)
at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:118)
at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:31)
at org.aesh.io.Decoder.write(Decoder.java:133)
at org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:212)
at org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:199)
at org.jboss.as.cli.impl.ReadlineConsole$CLITerminalConnection.lambda$null$1(ReadlineConsole.java:171)
at java.lang.Thread.run(Thread.java:748)
{noformat}
CLI session is terminated.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list