一个困扰很久的问题【description The server encountered an internal error () that prevented it from fulfilling this request】

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 /index.jsp at line 53

50:   surveys = (Survey) allSurvey.get(i);
51:   option = surveys.getOptions().replaceAll("<br />","").replaceAll("&nbsp;","").replaceAll("<p>","").replaceAll("</p>","");

 

option = surveys.getOptions().charAt(3)+"";//修改之后


52:   value = surveys.getCounts();  
53:   test.addData(option.charAt(0)+"",(int)value,"Options/Values");原因出现在这里,参数超出最大限制了
54:  }
55:  
56:  // 3.è?????????‰??±??€§ 


Stacktrace:
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)


root cause

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
 java.util.ArrayList.RangeCheck(ArrayList.java:547)
 java.util.ArrayList.get(ArrayList.java:322)
 org.jfree.data.DefaultKeyedValues2D.getValue(DefaultKeyedValues2D.java:123)
 org.jfree.data.category.DefaultCategoryDataset.getValue(DefaultCategoryDataset.java:96)
 org.jfree.data.general.DatasetUtilities.iterateCategoryRangeBounds(DatasetUtilities.java:817)
 org.jfree.data.general.DatasetUtilities.findRangeBounds(DatasetUtilities.java:744)
 org.jfree.data.general.DatasetUtilities.findRangeBounds(DatasetUtilities.java:720)
 org.jfree.chart.renderer.category.AbstractCategoryItemRenderer.findRangeBounds(AbstractCategoryItemRenderer.java:550)
 org.jfree.chart.plot.CategoryPlot.getDataRange(CategoryPlot.java:2450)
 org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:380)
 org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:363)
 org.jfree.chart.plot.CategoryPlot.datasetChanged(CategoryPlot.java:1472)
 org.jfree.data.general.AbstractDataset.notifyListeners(AbstractDataset.java:155)
 org.jfree.data.general.AbstractDataset.fireDatasetChanged(AbstractDataset.java:136)
 org.jfree.data.category.DefaultCategoryDataset.addValue(DefaultCategoryDataset.java:184)
 org.jfree.data.category.DefaultCategoryDataset.addValue(DefaultCategoryDataset.java:195)
 com.ygkq.usermanager.controller.utils.DrawBar.addData(DrawBar.java:108)
 org.apache.jsp.index_jsp._jspService(index_jsp.java:124)
 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:377)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.29

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值