History on JBoss CLI (windows is not working)

Solution Verified - Updated -

Issue

I am starting the cli and hitting the up arrow to scroll through the history and I'm getting an exception:

C:\JBoss\jboss-eap-6.1\bin>jboss-cli
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
You are disconnected at the moment. Type 'connect' to connect to the server or '
help' for the list of supported commands.
[disconnected /] connect
[standalone@localhost:9999 /] version
JBoss Admin Command-line Interface
JBOSS_HOME: C:\JBoss\jboss-eap-6.1
JBoss AS release: 7.2.0.Final-redhat-8 "Janus"
JBoss AS product: EAP 6.1.0.GA
JAVA_HOME: null
java.version: 1.6.0_21
java.vm.vendor: Sun Microsystems Inc.
java.vm.version: 17.0-b17
os.name: Windows XP
os.version: 5.1
[standalone@localhost:9999 /] protocols=[\java.lang.NumberFormatException: For input string: "1B"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.<init>(Unknown Source)
        at org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:120)
        at java.io.FilterOutputStream.write(Unknown Source)
        at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
        at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
        at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
        at sun.nio.cs.StreamEncoder.flush(Unknown Source)
        at java.io.OutputStreamWriter.flush(Unknown Source)
        at java.io.PrintWriter.flush(Unknown Source)
        at org.jboss.aesh.terminal.WindowsTerminal.writeToStdOut(WindowsTerminal.java:88)
        at org.jboss.aesh.console.Console.drawLine(Console.java:953)
        at org.jboss.aesh.console.Console.redrawLine(Console.java:932)
        at org.jboss.aesh.console.Console.getHistoryElement(Console.java:695)
        at org.jboss.aesh.console.Console.parseOperation(Console.java:498)
        at org.jboss.aesh.console.Console.read(Console.java:389)
        at org.jboss.aesh.console.Console.read(Console.java:341)
        at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:177)
        at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1182)
        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(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.modules.Module.run(Module.java:270)
        at org.jboss.modules.Main.main(Main.java:411)
Press any key to continue . . .

Environment

Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0.x
- 6.1.x
- Windows

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content