- http://bbs.justep.com/thread-54775-1-1.html
- java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
- at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
- at java.awt.image.BufferedImage.<init>(BufferedImage.java:323)
- at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1394)
- at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1376)
- at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:169)
- at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:305)
- at org.jfree.chart.servlet.ServletUtilities.saveChartAsPNG(ServletUtilities.java:187)
- at com.justep.chart.JustepChartHelper.executeChart(Unknown Source)
- at com.justep.report.core.XReportChartHelper.executeChart(Unknown Source)
- at com.justep.report.core.XReportHelper.a(Unknown Source)
- at com.justep.report.core.XReportHelper.executeXReport(Unknown Source)
- at com.justep.report.controller.ReportController.execute(Unknown Source)
- at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
- at com.justep.report.controller.DataController.execute(Unknown Source)
- at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
- at com.justep.report.controller.InitController.execute(Unknown Source)
- at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
- at com.justep.report.Servlet.a(Unknown Source)
- at com.justep.report.Servlet.doPost(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:595)
- 2013-9-3 11:53:35 org.apache.catalina.core.StandardWrapperValve invoke
- 严重: Servlet.service() for servlet display-chart-servlet threw exception
- javax.servlet.ServletException: Chart image not found
- at org.jfree.chart.servlet.DisplayChart.service(DisplayChart.java:149)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:595)
- java.lang.UnsupportedOperationException: Method failed: HTTP/1.1 500 Internal Server Error
- at com.justep.res.proxy.ResourceProxy.a(Unknown Source)
- at com.justep.res.proxy.ResourceProxy.doPost(Unknown Source)
- at com.justep.res.proxy.ResourceProxy.doGet(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:595)
原因主要有以下几点:
1.chart组件的宽和高设置了100%.解决办法是设置成固定的宽和高.
2.chart组建的auto-load设置了true.改成false就好了.
3.当页面有两个报表以上时,刷新一个即可.