Why JBoss CLI throws ERROR parsing ? keys to aesh. Check your inputrc ?

Solution Verified - Updated -

Issue

  • When having .inputrc file in home directory with the following content:
# Control characters
"\C-?":   backward-delete-char
  • Getting the following ERROR Stacktrace in starting jboss-cli.sh:
[user@user bin]$ ./jboss-cli.sh -c
java.lang.RuntimeException: ERROR parsing ? keys to aesh. Check your inputrc.
    at org.jboss.aesh.edit.mapper.KeyMapper.convertRandomControlKeys(KeyMapper.java:161)
    at org.jboss.aesh.edit.mapper.KeyMapper.mapRandomKeys(KeyMapper.java:138)
    at org.jboss.aesh.edit.mapper.KeyMapper.mapKeys(KeyMapper.java:108)
    at org.jboss.aesh.edit.mapper.KeyMapper.mapQuoteKeys(KeyMapper.java:49)
    at org.jboss.aesh.console.Config.parseInputrc(Config.java:127)
    at org.jboss.aesh.console.Console.reset(Console.java:150)
    at org.jboss.aesh.console.Console.<init>(Console.java:105)
    at org.jboss.aesh.console.Console.<init>(Console.java:101)
    at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:85)
    at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:78)
    at org.jboss.as.cli.impl.CommandContextImpl.initBasicConsole(CommandContextImpl.java:354)
    at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:294)
    at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:76)
    at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:279)
    at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:262)
    at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.modules.Module.run(Module.java:312)
    at org.jboss.modules.Main.main(Main.java:460)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

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