Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-162

Jboss-cli crashes on Windows on backslash in history

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Alpha1
    • None
    • CLI
    • None
    • Hide

      > bin\jboss-cli
      [] connect localhost
      [] deploy C:\APPS\JBoss\jboss-as-7.x.nightly.30-01-2013.manageclinic\custom_osgi_packages\org.springframework.jdbc-3.1.3.RELEASE.jar [or any other valid path to deployment package]
      [] [press up button]

      Show
      > bin\jboss-cli [] connect localhost [] deploy C:\APPS\JBoss\jboss-as-7.x.nightly.30-01-2013.manageclinic\custom_osgi_packages\org.springframework.jdbc-3.1.3.RELEASE.jar [or any other valid path to deployment package] [] [press up button]

    Description

      Note: seems to apply to latest snapshot only, not to 7.1.1.

      If you use a backslash in commands (like you need to use on absolute path deployments on windows) and then press up button to go back to that command, jboss-cli crashes with

      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:89)
      at org.jboss.aesh.console.Console.drawLine(Console.java:923)
      at org.jboss.aesh.console.Console.redrawLine(Console.java:902)
      at org.jboss.aesh.console.Console.getHistoryElement(Console.java:673)
      at org.jboss.aesh.console.Console.parseOperation(Console.java:476)
      at org.jboss.aesh.console.Console.read(Console.java:377)
      at org.jboss.aesh.console.Console.read(Console.java:331)
      at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:171)
      at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1181)
      at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:259)
      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(DelegatingMethodAccessorImpl.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:294)
      Press any key to continue . . .

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Alexey Loubyansky
              jrantav Jarkko Rantavuori (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: