[jboss-jira] [JBoss JIRA] (WFLY-1799) Pressing up-arrow crashed CLI on windows

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Thu Aug 1 04:07:26 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicklas Karlsson updated WFLY-1799:
-----------------------------------

    Description: 
Pressing the up-arrow in the CLI on windows crashes it with

{code}
[standalone at localhost:9990 /] java.lang.NumberFormatException: For input string:
 "1B"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
        at java.lang.Integer.parseInt(Integer.java:492)
        at java.lang.Integer.<init>(Integer.java:677)
        at org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:120
)
        at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
        at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
        at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
        at java.io.PrintWriter.flush(PrintWriter.java:320)
        at org.jboss.aesh.terminal.WindowsTerminal.writeToStdOut(WindowsTerminal
.java:88)
        at org.jboss.aesh.console.Console.drawLine(Console.java:1011)
        at org.jboss.aesh.console.Console.redrawLine(Console.java:990)
        at org.jboss.aesh.console.Console.getHistoryElement(Console.java:753)
        at org.jboss.aesh.console.Console.parseOperation(Console.java:556)
        at org.jboss.aesh.console.Console.read(Console.java:446)
        at org.jboss.aesh.console.Console.read(Console.java:346)
        at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:177)
        at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.
java:1198)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:270)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.jboss.modules.Module.run(Module.java:270)
        at org.jboss.modules.Main.main(Main.java:411)
{code}

  was:
Pressing the up-arrow in the CLI on windows crashes it with

[standalone at localhost:9990 /] java.lang.NumberFormatException: For input string:
 "1B"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
        at java.lang.Integer.parseInt(Integer.java:492)
        at java.lang.Integer.<init>(Integer.java:677)
        at org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:120



    
> Pressing up-arrow crashed CLI on windows
> ----------------------------------------
>
>                 Key: WFLY-1799
>                 URL: https://issues.jboss.org/browse/WFLY-1799
>             Project: WildFly
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: Nicklas Karlsson
>            Assignee: Alexey Loubyansky
>
> Pressing the up-arrow in the CLI on windows crashes it with
> {code}
> [standalone at localhost:9990 /] java.lang.NumberFormatException: For input string:
>  "1B"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.
> java:65)
>         at java.lang.Integer.parseInt(Integer.java:492)
>         at java.lang.Integer.<init>(Integer.java:677)
>         at org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:120
> )
>         at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
>         at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
>         at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
>         at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
>         at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
>         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
>         at java.io.PrintWriter.flush(PrintWriter.java:320)
>         at org.jboss.aesh.terminal.WindowsTerminal.writeToStdOut(WindowsTerminal
> .java:88)
>         at org.jboss.aesh.console.Console.drawLine(Console.java:1011)
>         at org.jboss.aesh.console.Console.redrawLine(Console.java:990)
>         at org.jboss.aesh.console.Console.getHistoryElement(Console.java:753)
>         at org.jboss.aesh.console.Console.parseOperation(Console.java:556)
>         at org.jboss.aesh.console.Console.read(Console.java:446)
>         at org.jboss.aesh.console.Console.read(Console.java:346)
>         at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:177)
>         at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.
> java:1198)
>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:270)
>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.jboss.modules.Module.run(Module.java:270)
>         at org.jboss.modules.Main.main(Main.java:411)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list