Skip to main content

Error received after using jhindexer . -verbose to compile search

4 replies [Last post]
Anonymous

When I use this command: jhindexer . -verbose to compile search, the
compiler appears to run for a time and then I get this error:

Java.lang.ArrayIndexOutOfBoundsException: 255 at
com.sun.java.help.search.BtreeDictCompactor$CompactorDictBlock.restoreKe
y1
at
com.sun.java.help.search.BtreeDictCompactor$CompactorDictBlock.doMap1
at
com.sun.java.help.search.BtreeDictCompactor$CompactorDictBlock.doMap1
at
com.sun.java.help.search.BtreeDictCompactor.compact
at
com.sun.java.help.search.DefaultIndexBuilder.close
at com.sun.java.help.search.Indexer.compile
at com.sun.java.help.search.Indexer.main

The JavaHelpSearch subdirectory is built and it has three files in it,
but when I open the helpset in a viewer and try to search for something,
nothing happens.

These files are built and stored in the JavaHelpSearch subdirectory:

Compacted
POSITIONS
TMAP

What is going wrong?

Thanks in advance, Virginia

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Virginia O'Connor

Yes! I had one string that was too long in my files. I found it manually
because I coulndn't figure out the syntax for the -verbose command. Can you
please let me know how to use -verbose to find invalid strings? Thank you,
Virginia

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Virginia O'Connor

I'm using jh1.1.3 and j2sdk1.4.2_03. Is this correct? Thanks for the help.

Virginia

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

Virginia O'Connor wrote:

> I'm using jh1.1.3 and j2sdk1.4.2_03. Is this correct? Thanks for the help.

Those should work without any problems. Oh I forgot. Line to long. Is it
possible you have a line greater than say 132 characters? That could be
the problem as well. Use -verbose to check.

binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

Virginia O'Connor wrote:

> When I use this command: jhindexer . -verbose to compile search, the
> compiler appears to run for a time and then I get this error:
>
> Java.lang.ArrayIndexOutOfBoundsException: 255 at
> com.sun.java.help.search.BtreeDictCompactor$CompactorDictBlock.restoreKe
> y1
> at
> com.sun.java.help.search.BtreeDictCompactor$CompactorDictBlock.doMap1 > reeDictCompactor.java:43>
> at
> com.sun.java.help.search.BtreeDictCompactor$CompactorDictBlock.doMap1 > reeDictCompactor.java:51>
> at
> com.sun.java.help.search.BtreeDictCompactor.compact > ava:210>
> at
> com.sun.java.help.search.DefaultIndexBuilder.close > va:91>
> at com.sun.java.help.search.Indexer.compile
> at com.sun.java.help.search.Indexer.main
>
> The JavaHelpSearch subdirectory is built and it has three files in it,
> but when I open the helpset in a viewer and try to search for something,
> nothing happens.
>
> These files are built and stored in the JavaHelpSearch subdirectory:
>
> Compacted
> POSITIONS
> TMAP
>
> What is going wrong?
>

My guess is you're using an older version of JavaHelp with a JDK release
later than 1.3.0. It certianly looks like that bug.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.