Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7
-
Component/s: o.c.jsword.index
-
Labels:None
Description
There is a reference with a number that is larger than a Short and JSword throws an error on
// Get the number after the G or H
strongsNumber = Short.parseShort(m.group(2));
I haven't analyzed the ABP to see exactly what is happening but this could be an error in the ABP.
Exception in thread "Thread-20" java.lang.NumberFormatException: Value out of range. Value:"35887" Radix:10
at java.lang.Short.parseShort(Unknown Source)
at java.lang.Short.parseShort(Unknown Source)
at org.crosswire.jsword.book.study.StrongsNumber.parse(StrongsNumber.java:243)
at org.crosswire.jsword.book.study.StrongsNumber.<init>(StrongsNumber.java:63)
at org.crosswire.jsword.index.lucene.analysis.StrongsNumberFilter.incrementToken(StrongsNumberFilter.java:71)
at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:189)
at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:244)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:779)
at org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:757)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2472)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2446)
at org.crosswire.jsword.index.lucene.LuceneIndex.generateSearchIndexImpl(LuceneIndex.java:455)
at org.crosswire.jsword.index.lucene.LuceneIndex.<init>(LuceneIndex.java:177)
at org.crosswire.jsword.index.lucene.LuceneIndexManager$1.run(LuceneIndexManager.java:105)