- 论坛徽章:
- 0
|
谢谢。
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /reports/sample/sample_viewplug.jsp at line 38
35: exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
36: exporter.exportReport();
37: //System.out.println("鎴愬姛鍒涘缓浜嗕竴涓猠xcel鏂囨。");
38: JRViewer jr = new JRViewer(application.getRealPath("/reports/sample/report2.jrprint") , false);
39: jr.setPreferredSize(new Dimension(900, 730));
40: JFrame jf = new JFrame("鎶ヨ〃棰勮?");
41: jf.add(jr);
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.deltafaucet.ccs.filter.LoginFilter.doFilter(LoginFilter.java:64)
com.deltafaucet.ccs.filter.EncodingFilter.doFilter(EncodingFilter.java:24)
root cause
java.awt.HeadlessException
sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:203)
net.sf.jasperreports.view.JRViewer.setScreenDetails(JRViewer.java:310)
net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:250)
net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:227)
net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:206)
org.apache.jsp.reports.sample.sample_005fviewplug_jsp._jspService(sample_005fviewplug_jsp.java:100)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.deltafaucet.ccs.filter.LoginFilter.doFilter(LoginFilter.java:64)
com.deltafaucet.ccs.filter.EncodingFilter.doFilter(EncodingFilter.java:24)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs. |
|