Why JBoss is throwing StringIndexOutOfBoundsException while using deploy CLI command ?

Solution Verified - Updated -

Issue

  • While using deploy command of JBoss CLI with open quote and tab for completion results in a following StringIndexOutOfBoundsException exception:
[standalone@localhost:9999 /] deploy "d<Tab>
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1911)
        at org.jboss.as.cli.handlers.WindowsFilenameTabCompleter.complete(WindowsFilenameTabCompleter.java:54)
        at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:224)
        at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:95)
        at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:102)
        at org.jboss.aesh.console.Console.complete(Console.java:1155)
        at org.jboss.aesh.console.Console.parseOperation(Console.java:550)
        at org.jboss.aesh.console.Console.read(Console.java:452)
        at org.jboss.aesh.console.Console.read(Console.java:346)
        at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:178)
        at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1233)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:263)
        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:606)
        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.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.