Hi,
I was testing my urlfilter plugin, which, in a test, was returning null for
each URL. So if i use this filter, the inject step will inject no url in
crawldb, since the filter will return null for each url.
So we have now no url in our crawldb. But when i look for crawldb stats
using readdb, it is throwing NullPointerException :
Exception in thread "main" java.lang.NullPointerException
at org.apache.nutch.crawl.CrawlDbReader.processStatJob(
CrawlDbReader.java:294)
at org.apache.nutch.crawl.CrawlDbReader.main(CrawlDbReader.java:438)
Command Used is:
./bin/nutch readdb testcrawl/crawldb -stats
And interestingly, when i go generate on this crawldb it works fine showing
message :
0 records selected for fetching, exiting ...
which seems fine in this case.
Is this a bug or i am doing something wrong??
Regards,
Shailendra