一个困扰很久的问题【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

你可能感兴趣的:(apache,jsp,exception,server,processing)