類型 異常報告
消息 An exception occurred processing [guosi/include/pro_detail_comment.jsp] at line [52]
描述 服務(wù)器遇到一個意外的情況,阻止它完成請求。
例外情況
org.apache.jasper.JasperException: An exception occurred processing [guosi/include/pro_detail_comment.jsp] at line [52] 49: String url = "http://koubei.21-sun.com/detail/"+id+".htm"; 50: String add_date = CommonString.getFormatPara(CommonDate.getFormatDate("yyyy-MM-dd",m.getFieldValue("add_date"))); 51: int randomInt = random.nextInt(10000)%citys.length; 52: String rProvince=citys[randomInt-1]; 53: if(rProvince.equals("")||rProvince==null){ 54: rProvince="山東"; 55: } Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:610) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:499) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327) javax.servlet.http.HttpServlet.service(HttpServlet.java:764) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) com.jerehnet.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
根本原因。
java.lang.ArrayIndexOutOfBoundsException: -1 org.apache.jsp.guosi.include.pro_005fdetail_005fcomment_jsp._jspService(pro_005fdetail_005fcomment_jsp.java:202) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:764) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327) javax.servlet.http.HttpServlet.service(HttpServlet.java:764) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) com.jerehnet.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
):注意 主要問題的全部 stack 信息可以在 server logs 里查看