You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Ro...@ipaustralia.gov.au on 2010/10/19 07:11:16 UTC
Something funny in the text extraction of PDFs [SEC=UNCLASSIFIED]
Hello
I am in the middle of loading many, many documents into my jackrabbit 2.1
instance, and production support have complained to me about constant
warnings being generated in the logs,
org.apache.pdfbox.cos.COSDocument - java.lang.ClassCastException
Oct 19 13:13:40 localhost java.lang.ClassCastException
It might be producing a number of these warnings per PDF document, because
they are popping out at about 10/second.
I have 2 concurrent processes running adding documents. There is a
mixture of text-based documents and image only PDFs.
Any insight? Should I just advise production support to tune the log4j
properties?
Thanks
Ross.
Re: Something funny in the text extraction of PDFs [SEC=UNCLASSIFIED]
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Tue, Oct 19, 2010 at 9:33 AM, Ard Schrijvers
<a....@onehippo.com> wrote:
> On Tue, Oct 19, 2010 at 7:11 AM, <Ro...@ipaustralia.gov.au> wrote:
>> org.apache.pdfbox.cos.COSDocument - java.lang.ClassCastException
>> Oct 19 13:13:40 localhost java.lang.ClassCastException
>
> Think you might better want to (cross) post this question to pdfbox as
> Jackrabbit uses pdfbox for pdf extraction, and also the exception
> points to pdfbox,
Exactly. PDFBox is having problems extracting text from some of your
documents. In such cases Jackrabbit simply logs the problem as a
warning (so you know about it) and indexes the document as if it were
empty.
In general these warnings aren't too harmful, but it would be good if
you could post the full stack trace to the PDFBox issue tracker at
https://issues.apache.org/jira/browse/PDFBOX, preferably with an
example PDF that causes the problem. That way the PDFBox team will
have a chance to fix the problem and sooner or later also Jackrabbit
will be able to better index your documents.
BR,
Jukka Zitting
Re: Something funny in the text extraction of PDFs [SEC=UNCLASSIFIED]
Posted by Ard Schrijvers <a....@onehippo.com>.
On Tue, Oct 19, 2010 at 7:11 AM, <Ro...@ipaustralia.gov.au> wrote:
> Hello
>
> I am in the middle of loading many, many documents into my jackrabbit 2.1
> instance, and production support have complained to me about constant
> warnings being generated in the logs,
>
> org.apache.pdfbox.cos.COSDocument - java.lang.ClassCastException
> Oct 19 13:13:40 localhost java.lang.ClassCastException
>
> It might be producing a number of these warnings per PDF document, because
> they are popping out at about 10/second.
>
> I have 2 concurrent processes running adding documents. There is a mixture
> of text-based documents and image only PDFs.
>
> Any insight? Should I just advise production support to tune the log4j
> properties?
Think you might better want to (cross) post this question to pdfbox as
Jackrabbit uses pdfbox for pdf extraction, and also the exception
points to pdfbox,
http://pdfbox.apache.org/userguide/cookbook.html
Regards Ard
>
> Thanks
>
> Ross.
>
> --
> This message contains privileged and confidential information only
> for use by the intended recipient. If you are not the intended
> recipient of this message, you must not disseminate, copy or use
> it in any manner. If you have received this message in error,
> please advise the sender by reply e-mail. Please ensure all
> e-mail attachments are scanned for viruses prior to opening or
> using.
>
>
--
Hippo
Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466
USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100
• +1 (707) 773 4646
Canada • Montréal 5369 Boulevard St-Laurent • Montréal QC H2T
1S5 • +1 (514) 316 8966
www.onehippo.com • www.onehippo.org • info@onehippo.com