type Exception report
message Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:963)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)cn.com.doone.yk.filter.AddressFilter.doFilter(AddressFilter.java:34)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)cn.com.doone.yk.xss.XssAndSqlFilter.doFilter(XssAndSqlFilter.java:17)org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)root cause
java.lang.StringIndexOutOfBoundsException: String index out of range: -1java.lang.String.substring(String.java:1911)org.apache.catalina.connector.Request.getRequestDispatcher(Request.java:1353)org.apache.catalina.connector.RequestFacade.getRequestDispatcher(RequestFacade.java:614)javax.servlet.ServletRequestWrapper.getRequestDispatcher(ServletRequestWrapper.java:297)org.springframework.web.servlet.view.InternalResourceView.getRequestDispatcher(InternalResourceView.java:310)org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:217)org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)cn.com.doone.yk.filter.AddressFilter.doFilter(AddressFilter.java:34)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)cn.com.doone.yk.xss.XssAndSqlFilter.doFilter(XssAndSqlFilter.java:17)org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)note The full stack trace of the root cause is available in the Apache Tomcat/8.5.4 logs.
Apache Tomcat/8.5.4