Posted on 2009-07-09 13:10
Gavin.lee 阅读(1003)
评论(0) 编辑 收藏 所属分类:
FreeMarker
关于这个问题,跟undefined差不多常见。原因就是数据源为空字符(而非空)。
500 Servlet Exception
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(String.java:1935)
at yixun.wap.filter.ReplaceTextStream.replaceContent(ReplaceTextFilter.java:32)
at yixun.wap.filter.ReplaceTextFilter.doFilter(ReplaceTextFilter.java:81)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)