java写饼状图问题 20
org.apache.jasper.JasperException:javax.servlet.ServletException:java.lang.NoSuchMeth...
org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.createPieChart(Ljava/lang/String;Lorg/jfree/data/general/PieDataset;ZZZ)Lorg/jfree/chart/JFreeChart;
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)
servlet.profitcount.doPost(profitcount.java:71)
servlet.profitcount.doGet(profitcount.java:50)
root cause
javax.servlet.ServletException: java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.createPieChart(Ljava/lang/String;Lorg/jfree/data/general/PieDataset;ZZZ)Lorg/jfree/chart/JFreeChart;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.profitcount_jsp._jspService(profitcount_jsp.java:121)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
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)
servlet.profitcount.doPost(profitcount.java:71)
servlet.profitcount.doGet(profitcount.java:50)
..................
public String generatePieChart(String title, HttpSession session, PrintWriter pw,int wPhoto,int hPhoto)
{
String filename = null;
try
{
JFreeChart chart = ChartFactory.createPieChart(title,data,true,true,false);
//设置图片的背景色
chart.setBackgroundPaint( new java.awt.Color(189,200,255));
//设置图片标题的字体和大小
............................
这是我的代码 展开
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)
servlet.profitcount.doPost(profitcount.java:71)
servlet.profitcount.doGet(profitcount.java:50)
root cause
javax.servlet.ServletException: java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.createPieChart(Ljava/lang/String;Lorg/jfree/data/general/PieDataset;ZZZ)Lorg/jfree/chart/JFreeChart;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.profitcount_jsp._jspService(profitcount_jsp.java:121)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
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)
servlet.profitcount.doPost(profitcount.java:71)
servlet.profitcount.doGet(profitcount.java:50)
..................
public String generatePieChart(String title, HttpSession session, PrintWriter pw,int wPhoto,int hPhoto)
{
String filename = null;
try
{
JFreeChart chart = ChartFactory.createPieChart(title,data,true,true,false);
//设置图片的背景色
chart.setBackgroundPaint( new java.awt.Color(189,200,255));
//设置图片标题的字体和大小
............................
这是我的代码 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询