You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Don Vaillancourt <do...@webimpact.com> on 2004/06/29 00:06:14 UTC

PDFBox Issue

Hi all,

I know that this is a Lucene list but wanted to know if any of you have 
gotten this error before using PDFBox?

I've gotten the latest version of PDFBox and it is giving me the following 
error:

java.lang.VerifyError: (class: org/apache/log4j/LogManager, method: 
<clinit> signature: ()V) Incompatible argument to function
at org.apache.log4j.Logger.getLogger(Logger.java:94)
at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
at 
org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocument.java:197)
at 
org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocument.java:118)
at Index.indexFile(Index.java:287)
at Index.indexDirectory(Index.java:265)
at Index.update(Index.java:63)
at Lucene.main(Lucene.java:26)
Exception in thread "main"

I am using all the jar files that came with PDFBox.

Anyone run into this problem.  I am using the following line of code:

Document doc = LucenePDFDocument.getDocument(f);

Thanks


Don Vaillancourt
Director of Software Development

WEB IMPACT INC.
416-815-2000 ext. 245
email: donv@web-impact.com
web: http://www.web-impact.com




This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright.  If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.












Re: PDFBox Issue

Posted by Don Vaillancourt <do...@webimpact.com>.
Anything is possible. 

In a couple of weeks I may be upgrading my code to use Lucene 1.4 and I 
will make an attempt to use  the latest version of PDFBox.
You may be right about log4j being somewhere else in the classpath, but 
being a jar for Jakarta, I couldn't think of any apps on my desktop that 
might use it.

I'm doing a search now and ColdFusionMX is the only app I can think of, 
but I'm pretty sure it didn't come with log4j.jar.  Well I'll have to 
experiment a little.

Thanks

Ben Litchfield wrote:

>PDFBox comes with log4j version 1.2.5(according to MANIFEST.MF in jar
>file), I believe that 1.2.8 is the latest.  I will make sure that the next
>version of PDFBox includes the latest log4j version, which I assume is
>what everybody would like to use.
>
>But, by looking at the below error message it appears that you might have
>an older log4j in your classpath
>
>Logger.getLogger( Class ) is available in 1.2.5 and 1.2.8
>
>
>Ben
>
>
>On Tue, 17 Aug 2004, Don Vaillancourt wrote:
>
>  
>
>>Wow, this is an old message.
>>
>>I managed to get my code to work by using the previous version of
>>PDFBox.  I had used the version of log4j that had come with PDFBox.
>>
>>Someone had mentioned recompiling log4j, but I couldn't get the project
>>to import the source into Eclipse, so I gave up.  But things work great
>>with the version of PDFBox that I compiled with so I am fine with that.
>>
>>As for the version of log4j, I could not tell you, as I said above it
>>came with PDFBox, so I'm guessing that it had probably not been tested
>>with the version of log4j it was being distributed with.
>>
>>Paul Smith wrote:
>>
>>    
>>
>>>What version of the log4j jar are you using?
>>>
>>>
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Don Vaillancourt [mailto:donv@webimpact.com]
>>>>Sent: Tuesday, June 29, 2004 8:06 AM
>>>>To: Lucene Users List
>>>>Subject: PDFBox Issue
>>>>
>>>>Hi all,
>>>>
>>>>I know that this is a Lucene list but wanted to know if any of you have
>>>>gotten this error before using PDFBox?
>>>>
>>>>I've gotten the latest version of PDFBox and it is giving me the following
>>>>error:
>>>>
>>>>java.lang.VerifyError: (class: org/apache/log4j/LogManager, method:
>>>><clinit> signature: ()V) Incompatible argument to function
>>>>at org.apache.log4j.Logger.getLogger(Logger.java:94)
>>>>at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
>>>>at
>>>>org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocum
>>>>ent.java:197)
>>>>at
>>>>org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocu
>>>>ment.java:118)
>>>>at Index.indexFile(Index.java:287)
>>>>at Index.indexDirectory(Index.java:265)
>>>>at Index.update(Index.java:63)
>>>>at Lucene.main(Lucene.java:26)
>>>>Exception in thread "main"
>>>>
>>>>I am using all the jar files that came with PDFBox.
>>>>
>>>>Anyone run into this problem.  I am using the following line of code:
>>>>
>>>>Document doc = LucenePDFDocument.getDocument(f);
>>>>
>>>>Thanks
>>>>
>>>>
>>>>Don Vaillancourt
>>>>Director of Software Development
>>>>
>>>>WEB IMPACT INC.
>>>>416-815-2000 ext. 245
>>>>email: donv@web-impact.com
>>>>web: http://www.web-impact.com
>>>>
>>>>
>>>>
>>>>
>>>>This email message is intended only for the addressee(s)
>>>>and contains information that may be confidential and/or
>>>>copyright.  If you are not the intended recipient please
>>>>notify the sender by reply email and immediately delete
>>>>this email. Use, disclosure or reproduction of this email
>>>>by anyone other than the intended recipient(s) is strictly
>>>>prohibited. No representation is made that this email or
>>>>any attachments are free of viruses. Virus scanning is
>>>>recommended and is the responsibility of the recipient.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>      
>>>
>>--
>>*Don Vaillancourt
>>Director of Software Development
>>*
>>*WEB IMPACT INC.*
>>phone: 416-815-2000 ext. 245
>>fax: 416-815-2001
>>email: donv@web-impact.com <ma...@webimpact.com>
>>web: http://www.web-impact.com
>>
>>
>>
>>/ This email message is intended only for the addressee(s)
>>and contains information that may be confidential and/or
>>copyright. If you are not the intended recipient please
>>notify the sender by reply email and immediately delete
>>this email. Use, disclosure or reproduction of this email
>>by anyone other than the intended recipient(s) is strictly
>>prohibited. No representation is made that this email or
>>any attachments are free of viruses. Virus scanning is
>>recommended and is the responsibility of the recipient.
>>/
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>  
>


-- 
*Don Vaillancourt
Director of Software Development
*
*WEB IMPACT INC.*
phone: 416-815-2000 ext. 245
fax: 416-815-2001
email: donv@web-impact.com <ma...@webimpact.com>
web: http://www.web-impact.com



/ This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
/

RE: PDFBox Issue

Posted by Paul Smith <ps...@aconex.com>.
I actually thought it might have been trying to use the log4j 1.3 'alpha'
build (there is no 'alpha' build yet, but notionally the latest HEAD isn't
too far from it).  There has been a subtle change to log4j in recent months
that could have a similar impact.
Cheers,

Paul Smith
> -----Original Message-----
> From: Ben Litchfield [mailto:ben@csh.rit.edu]
> Sent: Tuesday, August 17, 2004 10:48 PM
> To: Lucene Users List
> Subject: Re: PDFBox Issue
> 
> 
> PDFBox comes with log4j version 1.2.5(according to MANIFEST.MF in jar
> file), I believe that 1.2.8 is the latest.  I will make sure that the next
> version of PDFBox includes the latest log4j version, which I assume is
> what everybody would like to use.
> 
> But, by looking at the below error message it appears that you might have
> an older log4j in your classpath
> 
> Logger.getLogger( Class ) is available in 1.2.5 and 1.2.8
> 
> 
> Ben
> 
> 
> On Tue, 17 Aug 2004, Don Vaillancourt wrote:
> 
> > Wow, this is an old message.
> >
> > I managed to get my code to work by using the previous version of
> > PDFBox.  I had used the version of log4j that had come with PDFBox.
> >
> > Someone had mentioned recompiling log4j, but I couldn't get the project
> > to import the source into Eclipse, so I gave up.  But things work great
> > with the version of PDFBox that I compiled with so I am fine with that.
> >
> > As for the version of log4j, I could not tell you, as I said above it
> > came with PDFBox, so I'm guessing that it had probably not been tested
> > with the version of log4j it was being distributed with.
> >
> > Paul Smith wrote:
> >
> > >What version of the log4j jar are you using?
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: Don Vaillancourt [mailto:donv@webimpact.com]
> > >>Sent: Tuesday, June 29, 2004 8:06 AM
> > >>To: Lucene Users List
> > >>Subject: PDFBox Issue
> > >>
> > >>Hi all,
> > >>
> > >>I know that this is a Lucene list but wanted to know if any of you
> have
> > >>gotten this error before using PDFBox?
> > >>
> > >>I've gotten the latest version of PDFBox and it is giving me the
> following
> > >>error:
> > >>
> > >>java.lang.VerifyError: (class: org/apache/log4j/LogManager, method:
> > >><clinit> signature: ()V) Incompatible argument to function
> > >>at org.apache.log4j.Logger.getLogger(Logger.java:94)
> > >>at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
> > >>at
> >
> >>org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDoc
> um
> > >>ent.java:197)
> > >>at
> >
> >>org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDo
> cu
> > >>ment.java:118)
> > >>at Index.indexFile(Index.java:287)
> > >>at Index.indexDirectory(Index.java:265)
> > >>at Index.update(Index.java:63)
> > >>at Lucene.main(Lucene.java:26)
> > >>Exception in thread "main"
> > >>
> > >>I am using all the jar files that came with PDFBox.
> > >>
> > >>Anyone run into this problem.  I am using the following line of code:
> > >>
> > >>Document doc = LucenePDFDocument.getDocument(f);
> > >>
> > >>Thanks
> > >>
> > >>
> > >>Don Vaillancourt
> > >>Director of Software Development
> > >>
> > >>WEB IMPACT INC.
> > >>416-815-2000 ext. 245
> > >>email: donv@web-impact.com
> > >>web: http://www.web-impact.com
> > >>
> > >>
> > >>
> > >>
> > >>This email message is intended only for the addressee(s)
> > >>and contains information that may be confidential and/or
> > >>copyright.  If you are not the intended recipient please
> > >>notify the sender by reply email and immediately delete
> > >>this email. Use, disclosure or reproduction of this email
> > >>by anyone other than the intended recipient(s) is strictly
> > >>prohibited. No representation is made that this email or
> > >>any attachments are free of viruses. Virus scanning is
> > >>recommended and is the responsibility of the recipient.
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> > --
> > *Don Vaillancourt
> > Director of Software Development
> > *
> > *WEB IMPACT INC.*
> > phone: 416-815-2000 ext. 245
> > fax: 416-815-2001
> > email: donv@web-impact.com <ma...@webimpact.com>
> > web: http://www.web-impact.com
> >
> >
> >
> > / This email message is intended only for the addressee(s)
> > and contains information that may be confidential and/or
> > copyright. If you are not the intended recipient please
> > notify the sender by reply email and immediately delete
> > this email. Use, disclosure or reproduction of this email
> > by anyone other than the intended recipient(s) is strictly
> > prohibited. No representation is made that this email or
> > any attachments are free of viruses. Virus scanning is
> > recommended and is the responsibility of the recipient.
> > /
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: PDFBox Issue

Posted by Ben Litchfield <be...@csh.rit.edu>.
PDFBox comes with log4j version 1.2.5(according to MANIFEST.MF in jar
file), I believe that 1.2.8 is the latest.  I will make sure that the next
version of PDFBox includes the latest log4j version, which I assume is
what everybody would like to use.

But, by looking at the below error message it appears that you might have
an older log4j in your classpath

Logger.getLogger( Class ) is available in 1.2.5 and 1.2.8


Ben


On Tue, 17 Aug 2004, Don Vaillancourt wrote:

> Wow, this is an old message.
>
> I managed to get my code to work by using the previous version of
> PDFBox.  I had used the version of log4j that had come with PDFBox.
>
> Someone had mentioned recompiling log4j, but I couldn't get the project
> to import the source into Eclipse, so I gave up.  But things work great
> with the version of PDFBox that I compiled with so I am fine with that.
>
> As for the version of log4j, I could not tell you, as I said above it
> came with PDFBox, so I'm guessing that it had probably not been tested
> with the version of log4j it was being distributed with.
>
> Paul Smith wrote:
>
> >What version of the log4j jar are you using?
> >
> >
> >
> >>-----Original Message-----
> >>From: Don Vaillancourt [mailto:donv@webimpact.com]
> >>Sent: Tuesday, June 29, 2004 8:06 AM
> >>To: Lucene Users List
> >>Subject: PDFBox Issue
> >>
> >>Hi all,
> >>
> >>I know that this is a Lucene list but wanted to know if any of you have
> >>gotten this error before using PDFBox?
> >>
> >>I've gotten the latest version of PDFBox and it is giving me the following
> >>error:
> >>
> >>java.lang.VerifyError: (class: org/apache/log4j/LogManager, method:
> >><clinit> signature: ()V) Incompatible argument to function
> >>at org.apache.log4j.Logger.getLogger(Logger.java:94)
> >>at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
> >>at
> >>org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocum
> >>ent.java:197)
> >>at
> >>org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocu
> >>ment.java:118)
> >>at Index.indexFile(Index.java:287)
> >>at Index.indexDirectory(Index.java:265)
> >>at Index.update(Index.java:63)
> >>at Lucene.main(Lucene.java:26)
> >>Exception in thread "main"
> >>
> >>I am using all the jar files that came with PDFBox.
> >>
> >>Anyone run into this problem.  I am using the following line of code:
> >>
> >>Document doc = LucenePDFDocument.getDocument(f);
> >>
> >>Thanks
> >>
> >>
> >>Don Vaillancourt
> >>Director of Software Development
> >>
> >>WEB IMPACT INC.
> >>416-815-2000 ext. 245
> >>email: donv@web-impact.com
> >>web: http://www.web-impact.com
> >>
> >>
> >>
> >>
> >>This email message is intended only for the addressee(s)
> >>and contains information that may be confidential and/or
> >>copyright.  If you are not the intended recipient please
> >>notify the sender by reply email and immediately delete
> >>this email. Use, disclosure or reproduction of this email
> >>by anyone other than the intended recipient(s) is strictly
> >>prohibited. No representation is made that this email or
> >>any attachments are free of viruses. Virus scanning is
> >>recommended and is the responsibility of the recipient.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> >
> >
> >
>
>
> --
> *Don Vaillancourt
> Director of Software Development
> *
> *WEB IMPACT INC.*
> phone: 416-815-2000 ext. 245
> fax: 416-815-2001
> email: donv@web-impact.com <ma...@webimpact.com>
> web: http://www.web-impact.com
>
>
>
> / This email message is intended only for the addressee(s)
> and contains information that may be confidential and/or
> copyright. If you are not the intended recipient please
> notify the sender by reply email and immediately delete
> this email. Use, disclosure or reproduction of this email
> by anyone other than the intended recipient(s) is strictly
> prohibited. No representation is made that this email or
> any attachments are free of viruses. Virus scanning is
> recommended and is the responsibility of the recipient.
> /
>

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: PDFBox Issue

Posted by Don Vaillancourt <do...@webimpact.com>.
Wow, this is an old message.

I managed to get my code to work by using the previous version of 
PDFBox.  I had used the version of log4j that had come with PDFBox.

Someone had mentioned recompiling log4j, but I couldn't get the project 
to import the source into Eclipse, so I gave up.  But things work great 
with the version of PDFBox that I compiled with so I am fine with that.

As for the version of log4j, I could not tell you, as I said above it 
came with PDFBox, so I'm guessing that it had probably not been tested 
with the version of log4j it was being distributed with.

Paul Smith wrote:

>What version of the log4j jar are you using? 
>
>  
>
>>-----Original Message-----
>>From: Don Vaillancourt [mailto:donv@webimpact.com]
>>Sent: Tuesday, June 29, 2004 8:06 AM
>>To: Lucene Users List
>>Subject: PDFBox Issue
>>
>>Hi all,
>>
>>I know that this is a Lucene list but wanted to know if any of you have
>>gotten this error before using PDFBox?
>>
>>I've gotten the latest version of PDFBox and it is giving me the following
>>error:
>>
>>java.lang.VerifyError: (class: org/apache/log4j/LogManager, method:
>><clinit> signature: ()V) Incompatible argument to function
>>at org.apache.log4j.Logger.getLogger(Logger.java:94)
>>at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
>>at
>>org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocum
>>ent.java:197)
>>at
>>org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocu
>>ment.java:118)
>>at Index.indexFile(Index.java:287)
>>at Index.indexDirectory(Index.java:265)
>>at Index.update(Index.java:63)
>>at Lucene.main(Lucene.java:26)
>>Exception in thread "main"
>>
>>I am using all the jar files that came with PDFBox.
>>
>>Anyone run into this problem.  I am using the following line of code:
>>
>>Document doc = LucenePDFDocument.getDocument(f);
>>
>>Thanks
>>
>>
>>Don Vaillancourt
>>Director of Software Development
>>
>>WEB IMPACT INC.
>>416-815-2000 ext. 245
>>email: donv@web-impact.com
>>web: http://www.web-impact.com
>>
>>
>>
>>
>>This email message is intended only for the addressee(s)
>>and contains information that may be confidential and/or
>>copyright.  If you are not the intended recipient please
>>notify the sender by reply email and immediately delete
>>this email. Use, disclosure or reproduction of this email
>>by anyone other than the intended recipient(s) is strictly
>>prohibited. No representation is made that this email or
>>any attachments are free of viruses. Virus scanning is
>>recommended and is the responsibility of the recipient.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>  
>


-- 
*Don Vaillancourt
Director of Software Development
*
*WEB IMPACT INC.*
phone: 416-815-2000 ext. 245
fax: 416-815-2001
email: donv@web-impact.com <ma...@webimpact.com>
web: http://www.web-impact.com



/ This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
/

RE: PDFBox Issue

Posted by Paul Smith <ps...@aconex.com>.
What version of the log4j jar are you using? 

> -----Original Message-----
> From: Don Vaillancourt [mailto:donv@webimpact.com]
> Sent: Tuesday, June 29, 2004 8:06 AM
> To: Lucene Users List
> Subject: PDFBox Issue
> 
> Hi all,
> 
> I know that this is a Lucene list but wanted to know if any of you have
> gotten this error before using PDFBox?
> 
> I've gotten the latest version of PDFBox and it is giving me the following
> error:
> 
> java.lang.VerifyError: (class: org/apache/log4j/LogManager, method:
> <clinit> signature: ()V) Incompatible argument to function
> at org.apache.log4j.Logger.getLogger(Logger.java:94)
> at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
> at
> org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocum
> ent.java:197)
> at
> org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocu
> ment.java:118)
> at Index.indexFile(Index.java:287)
> at Index.indexDirectory(Index.java:265)
> at Index.update(Index.java:63)
> at Lucene.main(Lucene.java:26)
> Exception in thread "main"
> 
> I am using all the jar files that came with PDFBox.
> 
> Anyone run into this problem.  I am using the following line of code:
> 
> Document doc = LucenePDFDocument.getDocument(f);
> 
> Thanks
> 
> 
> Don Vaillancourt
> Director of Software Development
> 
> WEB IMPACT INC.
> 416-815-2000 ext. 245
> email: donv@web-impact.com
> web: http://www.web-impact.com
> 
> 
> 
> 
> This email message is intended only for the addressee(s)
> and contains information that may be confidential and/or
> copyright.  If you are not the intended recipient please
> notify the sender by reply email and immediately delete
> this email. Use, disclosure or reproduction of this email
> by anyone other than the intended recipient(s) is strictly
> prohibited. No representation is made that this email or
> any attachments are free of viruses. Virus scanning is
> recommended and is the responsibility of the recipient.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: PDFBox Issue

Posted by Nick Burch <ni...@torchbox.com>.
On Mon, 28 Jun 2004, Don Vaillancourt wrote:
> I know that this is a Lucene list but wanted to know if any of you have 
> gotten this error before using PDFBox?

It's commonly caused by mis-matched versions of Log4J. Between two 
versions (I think 1.2 and 1.3), a few of the method signatures changed. If 
you try and call one version with the signatures of the other, you hit 
this problem. IIRC, PDFBox requires 1.3

You'll probably either have to upgrade your app to use the newer Log4J, or 
recompile PDFBox against the older one.
 
Nick


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: PDFBox Issue

Posted by Otis Gospodnetic <ot...@yahoo.com>.
I think I recall somebody sending an email with that same Verify error
(but not relating to PDFBox), and I believe the person said it had to
do with a corrupt Jar.

In your case the error is also not in PDFBox, but rather Log4J.

That line 57 of PDFParser.java should probably look like this:

<access modifiers + optional final/static> Logger <var> =
Logger.getLogger(PDFParser.class);

If you have the source of that class, make sure it looks like that.

Otis


--- Don Vaillancourt <do...@webimpact.com> wrote:
> Hi all,
> 
> I know that this is a Lucene list but wanted to know if any of you
> have 
> gotten this error before using PDFBox?
> 
> I've gotten the latest version of PDFBox and it is giving me the
> following 
> error:
> 
> java.lang.VerifyError: (class: org/apache/log4j/LogManager, method: 
> <clinit> signature: ()V) Incompatible argument to function
> at org.apache.log4j.Logger.getLogger(Logger.java:94)
> at org.pdfbox.pdfparser.PDFParser.<clinit>(PDFParser.java:57)
> at 
>
org.pdfbox.searchengine.lucene.LucenePDFDocument.addContent(LucenePDFDocument.java:197)
> at 
>
org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(LucenePDFDocument.java:118)
> at Index.indexFile(Index.java:287)
> at Index.indexDirectory(Index.java:265)
> at Index.update(Index.java:63)
> at Lucene.main(Lucene.java:26)
> Exception in thread "main"
> 
> I am using all the jar files that came with PDFBox.
> 
> Anyone run into this problem.  I am using the following line of code:
> 
> Document doc = LucenePDFDocument.getDocument(f);
> 
> Thanks
> 
> 
> Don Vaillancourt
> Director of Software Development
> 
> WEB IMPACT INC.
> 416-815-2000 ext. 245
> email: donv@web-impact.com
> web: http://www.web-impact.com
> 
> 
> 
> 
> This email message is intended only for the addressee(s)
> and contains information that may be confidential and/or
> copyright.  If you are not the intended recipient please
> notify the sender by reply email and immediately delete
> this email. Use, disclosure or reproduction of this email
> by anyone other than the intended recipient(s) is strictly
> prohibited. No representation is made that this email or
> any attachments are free of viruses. Virus scanning is
> recommended and is the responsibility of the recipient.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org