严重: Servlet.service() for servlet jsp threw exception 求解
java.lang.StringIndexOutOfBoundsException:Stringindexoutofrange:-1atjava.lang.String....
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at com.fredck.FCKeditor.FCKeditor.retrieveBrowserVersion(FCKeditor.java:263)
at com.fredck.FCKeditor.FCKeditor.isCompatible(FCKeditor.java:251)
at com.fredck.FCKeditor.FCKeditor.create(FCKeditor.java:292)
at com.fredck.FCKeditor.tags.FCKeditorTag.doAfterBody(FCKeditorTag.java:689)
at org.apache.jsp.admin.knowlege.addKnowlege_jsp._jspx_meth_FCK_005feditor_005f0(addKnowlege_jsp.java:427)
at org.apache.jsp.admin.knowlege.addKnowlege_jsp._jspService(addKnowlege_jsp.java:296)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
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:723)
Chain.java:235)
。。。。 展开
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at com.fredck.FCKeditor.FCKeditor.retrieveBrowserVersion(FCKeditor.java:263)
at com.fredck.FCKeditor.FCKeditor.isCompatible(FCKeditor.java:251)
at com.fredck.FCKeditor.FCKeditor.create(FCKeditor.java:292)
at com.fredck.FCKeditor.tags.FCKeditorTag.doAfterBody(FCKeditorTag.java:689)
at org.apache.jsp.admin.knowlege.addKnowlege_jsp._jspx_meth_FCK_005feditor_005f0(addKnowlege_jsp.java:427)
at org.apache.jsp.admin.knowlege.addKnowlege_jsp._jspService(addKnowlege_jsp.java:296)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
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:723)
Chain.java:235)
。。。。 展开
展开全部
你看看你这个类FCKeditor.java的263。String字符串在截取(substring)的时候越界了。仔细查查,String的长度和substring里面的参数长度。
追问
那个是引入的jar不会有问题
一点击进入这个页面的连接出现的问题
追答
不清楚你怎么在页面调用的这个类库,没传参数吗,查看下你的tomcat目录下的work目录下,搜搜这个addKnowlege_jsp.java类的296行看看。顺便能贴下你的jsp页面出来看看吗
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询