When I use CommandParser(appName) then I get an index
out of bounds exception when the help message is
supposed to be printed.
Here's the exception:
Usage: AddIndexerProcess [-a|--adminHost host]
[-p|--adminPort port]
[-i|--indexerAlias indexer alias]
[-P|--indexerPort indexer port]
java.lang.StringIndexOutOfBoundsException: String index
out of range: -1
at java.lang.String.substring(String.java:1444)
at java.lang.String.substring(String.java:1411)
at
com.townleyenterprises.command.CommandParser.printWrappedText(CommandParser.java:868)
at
com.townleyenterprises.command.CommandParser.usage(CommandParser.java:453)
at
com.townleyenterprises.command.CommandParser.parse(CommandParser.java:248)
at
com.verity.eval.admin.AddIndexerProcess.<init>(AddIndexerProcess.java:39)
at
com.verity.eval.admin.AddIndexerProcess.main(AddIndexerProcess.java:16)
Exception in thread "main"
And here're the (super class) constructors:
protected AdminConnector(final String appName) throws
Exception {
this(new CommandParser(appName));
}
protected AdminConnector(final CommandParser parser)
throws Exception {
this.parser=parser;
parser.addCommandListener(
new DefaultCommandListener("admin server
options", configOptions));
}
So far its proved to be a great package. Thanks!
toby ferguson
toby.h.ferguson@verity.com
Logged In: YES
user_id=227403
Hi Toby,
I tried to send you mail at the email address you sent, but
it bounced. Apologies responding to your bug report, but I
apparently hadn't configured the email notifications. Could
you provide more information about what version you're using
and possibly a test program that illustrates the problem?
The version in CVS HEAD is significantly different than the
stacktrace you received, so I'm not really sure where to
start looking.
Thanks in advance,
ast