You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by tien do <ti...@gmail.com> on 2007/08/31 06:12:34 UTC

searching error!!!

Hi nutch-user!
i've followed nutch-wiki's guide for setting up nutch on ubuntu(7.04) but
when I try to search a word(apache), the command line return result(total
hit 2) and some exceptions:
//
tiendn@ubuntu:~/nutch-0.9$ bin/nutch org.apache.nutch.searcher.NutchBeanapache
Total hits: 2
Exception in thread "main" java.lang.RuntimeException:
java.lang.NullPointerException
        at org.apache.nutch.searcher.FetchedSegments.getSummary(
FetchedSegments.java:204)
        at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java
:344)
        at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:395)
Caused by: java.lang.NullPointerException
        at org.apache.nutch.searcher.FetchedSegments.getSummary(
FetchedSegments.java:159)
        at org.apache.nutch.searcher.FetchedSegments$SummaryThread.run(
FetchedSegments.java:177)

//

I can't understand this problem.(++)

Re: searching error!!!

Posted by Sagar Naik <sa...@visvo.com>.
tien do wrote:
> Hi nutch-user!
> i've followed nutch-wiki's guide for setting up nutch on ubuntu(7.04) but
> when I try to search a word(apache), the command line return result(total
> hit 2) and some exceptions:
> //
> tiendn@ubuntu:~/nutch-0.9$ bin/nutch org.apache.nutch.searcher.NutchBeanapache
> Total hits: 2
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.NullPointerException
>         at org.apache.nutch.searcher.FetchedSegments.getSummary(
> FetchedSegments.java:204)
>         at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java
> :344)
>         at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:395)
> Caused by: java.lang.NullPointerException
>         at org.apache.nutch.searcher.FetchedSegments.getSummary(
> FetchedSegments.java:159)
>         at org.apache.nutch.searcher.FetchedSegments$SummaryThread.run(
> FetchedSegments.java:177)
>
> //
>
> I can't understand this problem.(++)
>
>   
Hey

U need three dir at same level for NutchBean to search :
 - index(es)
 - linkdb
- segments

Pl chk if u have those.

The log says abt all these dirs being loaded


- Sagar Naik



-- 
This message has been scanned for viruses and
dangerous content and is believed to be clean.