You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Kalani Ruwanpathirana (JIRA)" <ji...@apache.org> on 2008/08/12 08:50:44 UTC
[jira] Created: (PDFBOX-365) Error in LucenPDFDocument class
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.
[jira] Updated: (PDFBOX-365) Updating Lucene version (was: Error in
LucenPDFDocument class)
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-365:
--------------------------------------
Issue Type: Improvement (was: Bug)
Summary: Updating Lucene version (was: Error in LucenPDFDocument class) (was: Error in LucenPDFDocument class)
> 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
>
> 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.
[jira] Issue Comment Edited: (PDFBOX-365) Updating Lucene version
(was: Error in LucenPDFDocument class)
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696204#action_12696204 ]
Andreas Lehmkühler edited comment on PDFBOX-365 at 4/6/09 11:52 AM:
--------------------------------------------------------------------
The issue was a static reference to the old version of lucene, so that it wasn't possible to update lucene without compiling.
With version 762450 I've updated the lucene-jars from version 2.2.0 to the current version 2.4.1.
was (Author: lehmi):
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.
[jira] Commented: (PDFBOX-365) Error in LucenPDFDocument class
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (PDFBOX-365) Updating Lucene version (was: Error
in LucenPDFDocument class)
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ 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.