tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rcabanas <rafacaba...@gmail.com>
Subject String index out of range when compilling a file
Date Wed, 17 Nov 2010 08:56:26 GMT

Hello,
I'm using a server WPS which has a Admin Console that allows you to upload
java files and compile them. When doing that I get the following message:

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:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
       
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
       
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
       
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        java.lang.String.substring(String.java:1937)
        java.lang.String.substring(String.java:1904)
       
org.n52.wps.webadmin.ConfigUploadBean.compile(ConfigUploadBean.java:233)
       
org.n52.wps.webadmin.ConfigUploadBean.doUpload(ConfigUploadBean.java:208)
        org.apache.jsp.webAdmin.index_jsp._jspService(index_jsp.java:86)
        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:374)
       
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

-- 
View this message in context: http://old.nabble.com/String-index-out-of-range-when-compilling-a-file-tp30236325p30236325.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message