cache page return http 500 in 1.0-dev (rev 616745)

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

cache page return http 500 in 1.0-dev (rev 616745)

Vinci
hi,

I need help to solve the http 500 error when I click the cache link:
the system encoding is utf-8.zh-tw, the charset of the return page is big-5 (meta : content="text/html; charset=big5"), the build is based on rev 616745 (last modified 616095)

look like segment and tika has some problem......but the summary is okay and other thing related to the search is okay (RSS button is not work at the sametime)

http 500 message
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)

----------------
anyone can help?

thank you,
Vinci
Reply | Threaded
Open this post in threaded view
|

Re: cache page return http 500 in 1.0-dev (rev 616745)

Vinci
hi,

anwser by myself again:
the tika jar is not placed in the tomcat webapps, as well as the xalan-j jar for the RSS display

<quote author="Vinci">
hi,

I need help to solve the http 500 error when I click the cache link:
the system encoding is utf-8.zh-tw, the charset of the return page is big-5 (meta : content="text/html; charset=big5"), the build is based on rev 616745 (last modified 616095)

look like segment and tika has some problem......but the summary is okay and other thing related to the search is okay (RSS button is not work at the sametime)

http 500 message
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)

----------------
anyone can help?

thank you,
Vinci
</quote>
Reply | Threaded
Open this post in threaded view
|

Re: cache page return http 500 in 1.0-dev (rev 616745)

Andrzej Białecki-2
Vinci wrote:
> hi,
>
> anwser by myself again:
> the tika jar is not placed in the tomcat webapps, as well as the xalan-j jar
> for the RSS display

This is a bug - please create a JIRA bug report. Thank you!


--
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com