jfreechart遇到问题
严重:
Servlet.service() for servlet jsp threw exceptionjava.lang.NoSuchMethodError: org.jfree.text.TextBlock.setLineAlignment(Lorg/jfree/ui/HorizontalAlignment;)V
at org.jfree.chart.title.TextTitle.arrangeRR(TextTitle.java:635)
at org.jfree.chart.title.TextTitle.arrange(TextTitle.java:501)
at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1323)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1211)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1411)
at org.jfree.chart.ChartUtilities.writeChartAsJPEG(ChartUtilities.java:426)
at org.jfree.chart.ChartUtilities.saveChartAsJPEG(ChartUtilities.java:522)
at org.jfree.chart.servlet.ServletUtilities.saveChartAsJPEG(ServletUtilities.java:262)
at org.jfree.chart.servlet.ServletUtilities.saveChartAsJPEG(ServletUtilities.java:219)
at org.apache.jsp.barfigure_jsp._jspService(barfigure_jsp.java:64)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
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:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
主要是昨天使用的时候都挺好的,今天打开之后就一直有这个问题
------解决方案--------------------
看看你的jar包是不是有重复哦?
------解决方案--------------------清理一下项目