Error in LucenPDFDocument class
-------------------------------

                 Key: PDFBOX-365
                 URL: https://issues.apache.org/jira/browse/PDFBOX-365
             Project: PDFBox
          Issue Type: Bug
          Components: Lucene
    Affects Versions: 0.7.3
         Environment: Lucene 2.3.2
            Reporter: Kalani Ruwanpathirana


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.

Reply via email to