<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/te-code/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/te-code/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/te-code/bugs/</id><updated>2005-12-09T04:14:30Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>CommandParser(appName) broken</title><link href="https://sourceforge.net/p/te-code/bugs/1/" rel="alternate"/><published>2005-12-09T04:14:30Z</published><updated>2005-12-09T04:14:30Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netdf58d6c98764a48a16ebdede2fe0a8f0361e704e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I use CommandParser(appName) then I get an index&lt;br /&gt;
out of bounds exception when the help message is&lt;br /&gt;
supposed to be printed.&lt;/p&gt;
&lt;p&gt;Here's the exception:&lt;/p&gt;
&lt;p&gt;Usage:  AddIndexerProcess [-a|--adminHost host]&lt;br /&gt;
[-p|--adminPort port]&lt;br /&gt;
[-i|--indexerAlias indexer alias]&lt;br /&gt;
[-P|--indexerPort indexer port]&lt;br /&gt;
java.lang.StringIndexOutOfBoundsException: String index&lt;br /&gt;
out of range: -1&lt;br /&gt;
    at java.lang.String.substring(String.java:1444)&lt;br /&gt;
    at java.lang.String.substring(String.java:1411)&lt;br /&gt;
    at&lt;br /&gt;
com.townleyenterprises.command.CommandParser.printWrappedText(CommandParser.java:868)&lt;br /&gt;
    at&lt;br /&gt;
com.townleyenterprises.command.CommandParser.usage(CommandParser.java:453)&lt;br /&gt;
    at&lt;br /&gt;
com.townleyenterprises.command.CommandParser.parse(CommandParser.java:248)&lt;br /&gt;
    at&lt;br /&gt;
com.verity.eval.admin.AddIndexerProcess.&amp;lt;init&amp;gt;(AddIndexerProcess.java:39)&lt;br /&gt;
    at&lt;br /&gt;
com.verity.eval.admin.AddIndexerProcess.main(AddIndexerProcess.java:16)&lt;br /&gt;
Exception in thread "main" &lt;/p&gt;
&lt;p&gt;And here're the (super class) constructors:&lt;/p&gt;
&lt;p&gt;protected AdminConnector(final String appName) throws&lt;br /&gt;
Exception {&lt;br /&gt;
this(new CommandParser(appName));&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;protected AdminConnector(final CommandParser parser)&lt;br /&gt;
throws Exception {&lt;br /&gt;
this.parser=parser;&lt;br /&gt;
parser.addCommandListener(&lt;br /&gt;
new DefaultCommandListener("admin server&lt;br /&gt;
options", configOptions));&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;So far its proved to be a great package. Thanks!&lt;/p&gt;
&lt;p&gt;toby ferguson&lt;/p&gt;
&lt;p&gt;toby.h.ferguson@verity.com&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>