[jsword-devel] Indexing problem with FinPR module in jsword only

Peter von Kaehne refdoc at gmx.net
Fri Nov 20 14:39:20 MST 2009


A user turned up on Xiphos IRC and reported that he had a problem with
indexing FinPR out of CrossWire's main repo.

Nailing the problem down showed:

FinPR reliably fails to index in BD 1.6. Running it from commandline
shows an exception being thrown:

Exception in thread "Thread-2"
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:694)
	at
org.crosswire.jsword.book.OSISUtil.getCanonicalContent(OSISUtil.java:841)
	at org.crosswire.jsword.book.OSISUtil.getCanonicalText(OSISUtil.java:669)
	at
org.crosswire.jsword.index.lucene.LuceneIndex.generateSearchIndexImpl(LuceneIndex.java:439)
	at
org.crosswire.jsword.index.lucene.LuceneIndex.<init>(LuceneIndex.java:175)
	at
org.crosswire.jsword.index.lucene.LuceneIndexManager$1.run(LuceneIndexManager.java:108)
	at java.lang.Thread.run(Thread.java:636)

--------------

The same module indexes just fine on commandline with mkfastmod and with
Xiphos.

Other Finnish modules index fine on BD

Peter



More information about the jsword-devel mailing list