apache tomcat/7.0.62 - error reporthttp status 500 - string index out of range: -10\r type exception report \r messagestring index out of range: -10 \r descriptionthe server encountered an internal error that prevented it from fulfilling this request. \r exception java.lang.stringindexoutofboundsexception: string index out of range: -10 java.lang.string.substring(string.java:1911) .lib.decryptutil.filedecrypt(decryptutil.java:22) .encrypt.action.execute(action.java:59) sun.reflect.generatedmethodaccessor38.invoke(unknown source) sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) java.lang.reflect.method.invoke(method.java:606) .opensymphony.xwork2.defaultactioninvocation.invokeaction(defaultactioninvocation.java:452) .opensymphony.xwork2.defaultactioninvocation.invokeactiononly(defaultactioninvocation.java:291) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:254) .opensymphony.xwork2.interceptor.defaultworkflowinterceptor.dointercept(defaultworkflowinterceptor.java:176) .opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.validator.validationinterceptor.dointercept(validationinterceptor.java:263) org.apache.struts2.interceptor.validation.annotationvalidationinterceptor.dointercept(annotationvalidationinterceptor.java:68) .opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.conversionerrorinterceptor.intercept(conversionerrorinterceptor.java:133) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:207) .opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:207) .opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.staticparametersinterceptor.intercept(staticparametersinterceptor.java:190) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) org.apache.struts2.interceptor.multiselectinterceptor.intercept(multiselectinterceptor.java:75) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) org.apache.struts2.interceptor.checkboxinterceptor.intercept(checkboxinterceptor.java:94) 小主,这个章节后面还有哦,请点击下一页继续阅读,后面更精彩!.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) org.apache.struts2.interceptor.fileuploadinterceptor.intercept(fileuploadinterceptor.java:243) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.modeldriveninterceptor.intercept(modeldriveninterceptor.java:100) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.scopedmodeldriveninterceptor.intercept(scopedmodeldriveninterceptor.java:141) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) org.apache.struts2.interceptor.debugging.debugginginterceptor.intercept(debugginginterceptor.java:267) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.chaininginterceptor.intercept(chaininginterceptor.java:142) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.prepareinterceptor.dointercept(prepareinterceptor.java:166) .opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.i18ninterceptor.intercept(i18ninterceptor.java:176) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) org.apache.struts2.interceptor.servletconfiginterceptor.intercept(servletconfiginterceptor.java:164) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.aliasinterceptor.intercept(aliasinterceptor.java:190) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) .opensymphony.xwork2.interceptor.exceptionmappinginterceptor.intercept(exceptionmappinginterceptor.java:187) .opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:248) org.apache.struts2.impl.strutsactionproxy.execute(strutsactionproxy.java:52) org.apache.struts2.dispatcher.dispatcher.serviceaction(dispatcher.java:485) org.apache.struts2.dispatcher.ng.executeoperations.executeaction(executeoperations.java:77) org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.dofilter(strutsprepareandexecutefilter.java:91) \r notethe full stack trace of the root cause is available in the apache tomcat/7.0.62 logs. apache tomcat/7.0.62