lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Problem of indexing pdf files
Date Mon, 12 Sep 2005 04:44:45 GMT
That's a log4j warning message, because one of the PDFBox classes is
trying to log something, and you don't have log4j configured
appropriately.  This is not a Lucene issue, and it's a warning, so you
can ignore it if you want.

Otis


--- tirupathi reddy <tirupathireddy_m@yahoo.com> wrote:

> Hello,
>  
>     I am getting the following warning message when I am indexing the
> pdf files using Lucene Indexing.
>  
>  log4j:WARN No appenders could be found for logger
> (org.pdfbox.pdfparser.PDFParser).
>  log4j:WARN Please initialize the log4j system properly.
>  
> This is the code I am using:
>  
>      if(pdf.exists())
>      {
>       String text = "";
>   try{ 
>   PDDocument document = PDDocument.load(pdf); // laden des Files  
>  
>   PDFTextStripper pts = new PDFTextStripper(); //Extrahieren des
> Textes 
>   text = pts.getText(document);  
>   document.close();
>   } 
>  catch(IOException e){ 
>  System.out.println("File not found"); 
>  }
> mDocument.add(Field.Text("fulltext", text));
>  
>  
>     thanx,
>  MTREDDY
>  
>  
> 
> 
> Tirupati Reddy Manyam 
> 24-06-08, 
> Sundugaullee-24, 
> 79110 Freiburg 
> GERMANY. 
> 
> Phone: 00497618811257 
> cell : 004917624649007
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 


Mime
View raw message