jasper
ireport做导出图表时遇到的错误信息
1、java.lang.NoClassDefFoundError:Lorg/jfree/chart/plot/PlotOrientation;
--解决方法:导入包jfreechart1.0.12.jar
2、java.lang.NoClassDefFoundError:org/jfree/util/PublicCloneable
--解决方法:导入包jcommon-1.0.15.jar
---------------------------
HTTPStatus500-
typeExceptionreport
message
descriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.
exception
org.apache.jasper.JasperException:javax.servlet.ServletException:java.lang.NoClassDefFoundError:org/jfree/util/PublicCloneable
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
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)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
3、net.sf.jasperreports.engine.JRRuntimeException:Noqueryexecuterfactoryregisteredforthe'plsql'language.
atnet.sf.jasperreports.engine.util.JRQueryExecuterUtils.getQueryExecuterFactory(JRQueryExecuterUtils.java:63)
atnet.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:680)
atnet.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:605)
atnet.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1281)
解:plsql没有注册,解决办法暂时没有弄好,但是我把jasper文件改成了"sql"查询,是可以的。