服务热线:400-6050-568招商热线:136 1033 4599
当前位置 : 首页 > 新闻资讯 >
作者:admin     点击:5358     添加时间:
FreeMarker template error!


on line 20, column 40 in tpl/2017/g/www2.gdhopsoon.com/content/displaynews.html
Right side of range out of bounds, is: 9
but string  is only 0 characters.
The problematic instruction:
----------
==> ${news.date[0..9]} [on line 20, column 25 in tpl/2017/g/www2.gdhopsoon.com/content/displaynews.html]
 in include "content/displaynews.html" [on line 197, column 42 in tpl/2017/g/www2.gdhopsoon.com/displaynews.html]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateException: on line 20, column 40 in tpl/2017/g/www2.gdhopsoon.com/content/displaynews.html
Right side of range out of bounds, is: 9
but string  is only 0 characters.
	at freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:213)
	at freemarker.core.DynamicKeyName._getAsTemplateModel(DynamicKeyName.java:77)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.Expression.getStringValue(Expression.java:93)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	at freemarker.core.Environment.visit(Environment.java:245)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:245)
	at freemarker.core.Environment.include(Environment.java:1424)
	at freemarker.core.Include.accept(Include.java:211)
	at freemarker.core.Environment.visit(Environment.java:245)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:245)
	at freemarker.core.IfBlock.accept(IfBlock.java:82)
	at freemarker.core.Environment.visit(Environment.java:245)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:245)
	at freemarker.core.Environment.process(Environment.java:225)
	at freemarker.template.Template.process(Template.java:241)
	at freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:310)
	at freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:245)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
	at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
	at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:112)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
	at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:293)
	at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:111)
	at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
	at shield.front.action.filter.NotAllowedToTunFilesFilter.doFilter(NotAllowedToTunFilesFilter.java:126)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
	at shield.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:67)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
	at shield.front.action.filter.InvalidXSSFilter.doFilter(InvalidXSSFilter.java:85)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
	at com.caucho.filters.GzipFilter.doFilter(GzipFilter.java:151)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
	at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:192)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
	at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:436)
	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
	at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
	at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
	at java.lang.Thread.run(Thread.java:662)