[ 
https://issues.apache.org/jira/browse/GEODE-4874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Barbara Pruijn updated GEODE-4874:
----------------------------------
    Description: 
I see an error and an inconsistency when trying to use the gfsh help 
functionality for create jndi-binding.

Tab completion of

create jndi-binding

outputs
 gfsh>create jndi-binding –
 create jndi-binding --connection-url
 create jndi-binding --jdbc-driver-class
 create jndi-binding --name
 create jndi-binding --type

This is inconsistent with the output of other tab completions, which just give 
the options, and do not repeat the "create jndi-binding" portion of the command.

 

  was:
I see an error and an inconsistency when trying to use the gfsh help 
functionality for create jndi-binding.

Tab completion of

create jndi-binding

outputs
 gfsh>create jndi-binding –
 create jndi-binding --connection-url
 create jndi-binding --jdbc-driver-class
 create jndi-binding --name
 create jndi-binding --type

This is inconsistent with the output of other tab completions, which just give 
the options, and do not repeat the "create jndi-binding" portion of the command.

All 3 of  
 # help create jndi-binding
 # help "create jndi-binding"
 # help --command="create jndi-binding"

cause this error output
{quote}gfsh>help create jndi-binding

[error 2018/03/16 10:02:15.956 PDT <Gfsh Launcher> tid=0x1e] Could not execute 
"help create jndi-binding".

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1967)

at org.apache.geode.management.internal.cli.shell.Gfsh.wrapText(Gfsh.java:421)

at 
org.apache.geode.management.internal.cli.help.HelpBlock.toString(HelpBlock.java:79)

at 
org.apache.geode.management.internal.cli.help.HelpBlock.toString(HelpBlock.java:83)

at 
org.apache.geode.management.internal.cli.help.HelpBlock.toString(HelpBlock.java:83)

at 
org.apache.geode.management.internal.cli.help.HelpBlock.toString(HelpBlock.java:83)

at org.apache.geode.management.internal.cli.help.Helper.getHelp(Helper.java:145)

at 
org.apache.geode.management.internal.cli.CommandManager.obtainHelp(CommandManager.java:311)

at 
org.apache.geode.management.internal.cli.commands.GfshHelpCommand.obtainHelp(GfshHelpCommand.java:42)

at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216)

at 
org.apache.geode.management.internal.cli.remote.CommandExecutor.invokeCommand(CommandExecutor.java:97)

at 
org.apache.geode.management.internal.cli.remote.CommandExecutor.execute(CommandExecutor.java:45)

at 
org.apache.geode.management.internal.cli.remote.CommandExecutor.execute(CommandExecutor.java:39)

at 
org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy.execute(GfshExecutionStrategy.java:81)

at 
org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:134)

at 
org.apache.geode.management.internal.cli.shell.Gfsh.promptLoop(Gfsh.java:1011)

at org.springframework.shell.core.JLineShell.run(JLineShell.java:179)

at java.lang.Thread.run(Thread.java:748)

 

Could not process command due to error. Error while processing command <help 
create jndi-binding> Reason : String index out of range: -1

 
{quote}


> errors in gfsh help for create jndi-binding 
> --------------------------------------------
>
>                 Key: GEODE-4874
>                 URL: https://issues.apache.org/jira/browse/GEODE-4874
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>    Affects Versions: 1.5.0
>            Reporter: Karen Smoler Miller
>            Priority: Minor
>
> I see an error and an inconsistency when trying to use the gfsh help 
> functionality for create jndi-binding.
> Tab completion of
> create jndi-binding
> outputs
>  gfsh>create jndi-binding –
>  create jndi-binding --connection-url
>  create jndi-binding --jdbc-driver-class
>  create jndi-binding --name
>  create jndi-binding --type
> This is inconsistent with the output of other tab completions, which just 
> give the options, and do not repeat the "create jndi-binding" portion of the 
> command.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to