Error when request cache page in 1.0-dev

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

Error when request cache page in 1.0-dev

Vinci
Hi all,

finally I make nutch can crawl and search, but when I click the cache page, it throw a http 500 to me:


screen dump
------------------------
type Exception report

message

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

exception

org.apache.jasper.JasperException: Exception in JSP: /cached.jsp:63

60:       }
61:     }
62:     else
63:       content = new String(bean.getContent(details));
64:   }
65: %>
66: <!--


Stacktrace:
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: org/apache/tika/mime/MimeTypeException
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
        org.apache.jsp.cached_jsp._jspService(cached_jsp.java:228)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/tika/mime/MimeTypeException
        java.lang.Class.forName0(Native Method)
        java.lang.Class.forName(Class.java:247)
        org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:524)
        org.apache.hadoop.io.WritableName.getClass(WritableName.java:72)
        org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1405)
        org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1360)
        org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1349)
        org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1344)
        org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:254)
        org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:242)
        org.apache.hadoop.mapred.MapFileOutputFormat.getReaders(MapFileOutputFormat.java:91)
        org.apache.nutch.searcher.FetchedSegments$Segment.getReaders(FetchedSegments.java:90)
        org.apache.nutch.searcher.FetchedSegments$Segment.getContent(FetchedSegments.java:68)
        org.apache.nutch.searcher.FetchedSegments.getContent(FetchedSegments.java:139)
        org.apache.nutch.searcher.NutchBean.getContent(NutchBean.java:347)
        org.apache.jsp.cached_jsp._jspService(cached_jsp.java:107)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
---------------------------



thing I found in log
---------------------------
2008-01-31 19:04:46,324 INFO  NutchBean - cache request from 127.0.0.1
2008-01-31 19:04:46,358 ERROR [jsp] - Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/tika/mime/MimeTypeException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:524)
        at org.apache.hadoop.io.WritableName.getClass(WritableName.java:72)
        at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1405)
        at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1360)
        at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1349)
        at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1344)
        at org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:254)
        at org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:242)
        at org.apache.hadoop.mapred.MapFileOutputFormat.getReaders(MapFileOutputFormat.java:91)
        at org.apache.nutch.searcher.FetchedSegments$Segment.getReaders(FetchedSegments.java:90)
        at org.apache.nutch.searcher.FetchedSegments$Segment.getContent(FetchedSegments.java:68)
        at org.apache.nutch.searcher.FetchedSegments.getContent(FetchedSegments.java:139)
        at org.apache.nutch.searcher.NutchBean.getContent(NutchBean.java:347)
        at org.apache.jsp.cached_jsp._jspService(cached_jsp.java:107)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)
Reply | Threaded
Open this post in threaded view
|

Re: Error when request cache page in 1.0-dev

Vinci
hi,

anwser by myself again:
the tika jar is not placed in the tomcat webapp in 1.0-dev that cause this exception....

thank you for your attention,
Vinci

<quote author="Vinci">
Hi all,

finally I make nutch can crawl and search, but when I click the cache page, it throw a http 500 to me:


screen dump
------------------------
type Exception report

message

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

exception

org.apache.jasper.JasperException: Exception in JSP: /cached.jsp:63

60:       }
61:     }
62:     else
63:       content = new String(bean.getContent(details));
64:   }
65: %>
66: <!--


Stacktrace:
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: org/apache/tika/mime/MimeTypeException
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
        org.apache.jsp.cached_jsp._jspService(cached_jsp.java:228)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/tika/mime/MimeTypeException
        java.lang.Class.forName0(Native Method)
        java.lang.Class.forName(Class.java:247)
        org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:524)
        org.apache.hadoop.io.WritableName.getClass(WritableName.java:72)
        org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1405)
        org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1360)
        org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1349)
        org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1344)
        org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:254)
        org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:242)
        org.apache.hadoop.mapred.MapFileOutputFormat.getReaders(MapFileOutputFormat.java:91)
        org.apache.nutch.searcher.FetchedSegments$Segment.getReaders(FetchedSegments.java:90)
        org.apache.nutch.searcher.FetchedSegments$Segment.getContent(FetchedSegments.java:68)
        org.apache.nutch.searcher.FetchedSegments.getContent(FetchedSegments.java:139)
        org.apache.nutch.searcher.NutchBean.getContent(NutchBean.java:347)
        org.apache.jsp.cached_jsp._jspService(cached_jsp.java:107)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
---------------------------



thing I found in log
---------------------------
2008-01-31 19:04:46,324 INFO  NutchBean - cache request from 127.0.0.1
2008-01-31 19:04:46,358 ERROR [jsp] - Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/tika/mime/MimeTypeException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:524)
        at org.apache.hadoop.io.WritableName.getClass(WritableName.java:72)
        at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1405)
        at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1360)
        at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1349)
        at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1344)
        at org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:254)
        at org.apache.hadoop.io.MapFile$Reader.<init>(MapFile.java:242)
        at org.apache.hadoop.mapred.MapFileOutputFormat.getReaders(MapFileOutputFormat.java:91)
        at org.apache.nutch.searcher.FetchedSegments$Segment.getReaders(FetchedSegments.java:90)
        at org.apache.nutch.searcher.FetchedSegments$Segment.getContent(FetchedSegments.java:68)
        at org.apache.nutch.searcher.FetchedSegments.getContent(FetchedSegments.java:139)
        at org.apache.nutch.searcher.NutchBean.getContent(NutchBean.java:347)
        at org.apache.jsp.cached_jsp._jspService(cached_jsp.java:107)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)
</quote>