You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2009/03/04 10:59:56 UTC

[jira] Commented: (PDFBOX-365) Error in LucenPDFDocument class

    [ https://issues.apache.org/jira/browse/PDFBOX-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678667#action_12678667 ] 

Andreas Lehmkühler commented on PDFBOX-365:
-------------------------------------------

As far as I know pdfbox uses Lucene2.2. Obviously the newer version is incompatible with that one. 
So finally we have to update the lucene version. I'll change type from Bug to Improvement.

> 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.