Null pointer error when perform search

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Null pointer error when perform search

Eric Wu-2
Hi,

I am new to Nutch and I got a null pointer exception whenI try to submit the
search through demo app.
Please see the error message below. I have modified the demo app to run in
its webapp context other than in ROOT context.
The first page shown and I put in the keyword to search and got the error.
Did I do somthing wrong? Please help. Thanks.

- Eric

++++

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)

        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

java.lang.NullPointerException
        org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96)
        org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:82)
        org.apache.nutch.searcher.NutchBean
.<init>(NutchBean.java:72)
        org.apache.nutch.searcher.NutchBean.get(NutchBean.java:64)
        org.apache.jsp.search_jsp._jspService(org.apache.jsp.search_jsp:112)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:97)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.*
Reply | Threaded
Open this post in threaded view
|

Re: Null pointer error when perform search

Thomas Delnoij-3
Eric,

you should setup the searcher.dir property in nutch-site.xml to point
to the crawl directory,. See nutch-default.xml for an explanation of
this config property.

Rgrds, Thomas

On 7/22/06, Eric Wu <[hidden email]> wrote:

> Hi,
>
> I am new to Nutch and I got a null pointer exception whenI try to submit the
> search through demo app.
> Please see the error message below. I have modified the demo app to run in
> its webapp context other than in ROOT context.
> The first page shown and I put in the keyword to search and got the error.
> Did I do somthing wrong? Please help. Thanks.
>
> - Eric
>
> ++++
>
> *type* Exception report
>
> *message*
>
> *description* *The server encountered an internal error () that prevented it
> from fulfilling this request.*
>
> *exception*
>
> org.apache.jasper.JasperException
>         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
>
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> *root cause*
>
> java.lang.NullPointerException
>         org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96)
>         org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:82)
>         org.apache.nutch.searcher.NutchBean
> .<init>(NutchBean.java:72)
>         org.apache.nutch.searcher.NutchBean.get(NutchBean.java:64)
>         org.apache.jsp.search_jsp._jspService(org.apache.jsp.search_jsp:112)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :97)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> :291)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> *note* *The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.*
>
>