Nullpointer exception dependent on search terms

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

Nullpointer exception dependent on search terms

Chris Stephens-3
Certain search terms cause this exception:

60714 133854 25443840 SEVERE Servlet.service() for servlet OpenSearch
threw exception
java.lang.RuntimeException: java.lang.NullPointerException
   at
org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:190)
   at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:298)
   at
org.apache.nutch.searcher.OpenSearchServlet.doGet(OpenSearchServlet.java:138)
   at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
   at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina.jar.so)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina.jar.so)
   at org.apache.catalina.core.StandardWrapperValve.invoke(catalina.jar.so)
   at org.apache.catalina.core.StandardContextValve.invoke(catalina.jar.so)
   at org.apache.catalina.core.StandardHostValve.invoke(catalina.jar.so)
   at org.apache.catalina.valves.ErrorReportValve.invoke(catalina.jar.so)
   at org.apache.catalina.core.StandardEngineValve.invoke(catalina.jar.so)
   at org.apache.catalina.connector.CoyoteAdapter.service(catalina.jar.so)
   at org.apache.coyote.http11.Http11Processor.process(tomcat-http.jar.so)
   at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http.jar.so)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util.jar.so)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util.jar.so)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util.jar.so)
   at java.lang.Thread.run(libgcj.so.7)
Caused by: java.lang.NullPointerException
   at
org.apache.nutch.analysis.NutchAnalysisTokenManager.jjFillToken(NutchAnalysisTokenManager.java:356)
   at
org.apache.nutch.analysis.NutchAnalysisTokenManager.getNextToken(NutchAnalysisTokenManager.java:404)
   at
org.apache.nutch.analysis.NutchDocumentTokenizer.next(NutchDocumentTokenizer.java:47)
   at
org.apache.nutch.analysis.CommonGrams$Filter.popNext(CommonGrams.java:103)
   at org.apache.nutch.analysis.CommonGrams$Filter.next(CommonGrams.java:64)
   at org.apache.nutch.searcher.Summarizer.getTokens(Summarizer.java:276)
   at org.apache.nutch.searcher.Summarizer.getSummary(Summarizer.java:109)
   at
org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:146)
   at
org.apache.nutch.searcher.FetchedSegments$SummaryThread.run(FetchedSegments.java:163)

Is this a known bug with a patch?
Reply | Threaded
Open this post in threaded view
|

Re: Nullpointer exception dependent on search terms

Chris Stephens-3
FYI I fixed the issue.  I didn't realize Fedora uses GCJ by default.  I
switched to Sun JDK 1.5 and everything works fine now.

Chris Stephens wrote:

> Certain search terms cause this exception:
>
> 60714 133854 25443840 SEVERE Servlet.service() for servlet OpenSearch
> threw exception
> java.lang.RuntimeException: java.lang.NullPointerException
>   at
> org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:190)
>
>   at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:298)
>   at
> org.apache.nutch.searcher.OpenSearchServlet.doGet(OpenSearchServlet.java:138)
>
>   at
> javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
>
>   at
> javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina.jar.so)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina.jar.so)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(catalina.jar.so)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(catalina.jar.so)
>   at org.apache.catalina.core.StandardHostValve.invoke(catalina.jar.so)
>   at org.apache.catalina.valves.ErrorReportValve.invoke(catalina.jar.so)
>   at org.apache.catalina.core.StandardEngineValve.invoke(catalina.jar.so)
>   at org.apache.catalina.connector.CoyoteAdapter.service(catalina.jar.so)
>   at org.apache.coyote.http11.Http11Processor.process(tomcat-http.jar.so)
>   at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http.jar.so)
>
>   at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util.jar.so)
>
>   at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util.jar.so)
>
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util.jar.so)
>
>   at java.lang.Thread.run(libgcj.so.7)
> Caused by: java.lang.NullPointerException
>   at
> org.apache.nutch.analysis.NutchAnalysisTokenManager.jjFillToken(NutchAnalysisTokenManager.java:356)
>
>   at
> org.apache.nutch.analysis.NutchAnalysisTokenManager.getNextToken(NutchAnalysisTokenManager.java:404)
>
>   at
> org.apache.nutch.analysis.NutchDocumentTokenizer.next(NutchDocumentTokenizer.java:47)
>
>   at
> org.apache.nutch.analysis.CommonGrams$Filter.popNext(CommonGrams.java:103)
>
>   at
> org.apache.nutch.analysis.CommonGrams$Filter.next(CommonGrams.java:64)
>   at org.apache.nutch.searcher.Summarizer.getTokens(Summarizer.java:276)
>   at org.apache.nutch.searcher.Summarizer.getSummary(Summarizer.java:109)
>   at
> org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:146)
>
>   at
> org.apache.nutch.searcher.FetchedSegments$SummaryThread.run(FetchedSegments.java:163)
>
>
> Is this a known bug with a patch?
>