[
https://issues.apache.org/jira/browse/PDFBOX-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler resolved PDFBOX-365.
---------------------------------------
Resolution: Fixed
Fix Version/s: 0.8.0-incubator
The issue was a static reference to the old version of lucene, so that it
wasn't possible to update lucene without compiling.
I've updated the lucene-jar from version 2.2.0 to the current version 2.4.1.
> Updating Lucene version (was: Error in LucenPDFDocument class)
> --------------------------------------------------------------
>
> Key: PDFBOX-365
> URL: https://issues.apache.org/jira/browse/PDFBOX-365
> Project: PDFBox
> Issue Type: Improvement
> Components: Lucene
> Affects Versions: 0.7.3
> Environment: Lucene 2.3.2
> Reporter: Kalani Ruwanpathirana
> Fix For: 0.8.0-incubator
>
>
> When the method
> LucenePDFDocument.getDocument(new File("filename"));
> is called I got the following stack trace. Seems PDFBox is not compatible
> with latest version of Lucene.
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
> at
> org.pdfbox.searchengine.lucene.LucenePDFDocument.addUnindexedField(LucenePDFDocument.java:224)
> at
> org.pdfbox.searchengine.lucene.LucenePDFDocument.convertDocument(LucenePDFDocument.java:265)
> at
> org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocument.java:377)
> at PDFTest.main(PDFTest.java:55)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.