Hi,
This error I got while trying to read the numDocs() method of IndexReader
class.

WARN  mapred.LocalJobRunner - job_fajjx6
java.lang.NullPointerException
        at
in.v2solutions.com.OBJECTLinkIndexingFilter.filter(OBJECTLinkIndexingFilter.java:79)
        at 
org.apache.nutch.indexer.IndexingFilters.filter(IndexingFilters.java:72)
        at org.apache.nutch.indexer.Indexer.reduce(Indexer.java:235)
        at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:247)
        at 
org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:112)

after writing this line of code................

try{
                                String path=new
String("E:\\eclipse\\310307\\objtest\\crawl-result\\index");
                                IndexSearcher searcher=new IndexSearcher(path);
                                 ir=searcher.getIndexReader();
                        }
                        catch(Exception e){}
                                if (LOG.isInfoEnabled()) {
                                        String surl1=url.toString();
                                        int i=ir.numDocs();
                                        LOG.info("Document has no OBJECT 
links." +i )   ;                                       
                                System.out.println("No 
outputtttttttttttttttttttttttt" +i);
                                }
                return doc;

Can anybody tell me where did I go wrong??/

Ratnesh, V2Solutions, India
-- 
View this message in context: 
http://www.nabble.com/WARN--mapred.LocalJobRunner---job_fajjx6-tf3525386.html#a9835504
Sent from the Nutch - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to