• 我院新生辩论赛初赛圆满成功 Can't parse YYYY-MM-dd to a date format. The problematic instruction: ---------- ==> ${info.publishDate?string('YYYY-MM-dd')} escaped ${info.publishDate?string("YYYY-MM-dd")?html} [on line 217, column 99 in 9/bluewise/cover.html] in user-directive InfoPage [on line 214, column 12 in 9/bluewise/cover.html] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Can't parse YYYY-MM-dd to a date format. at freemarker.core.Environment.getDateFormatObject(Environment.java:958) at freemarker.core.BuiltIn$stringBI$DateFormatter.get(BuiltIn.java:514) at freemarker.core.BuiltIn$stringBI$DateFormatter.exec(BuiltIn.java:523) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71) 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:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179) at freemarker.core.Environment.visit(Environment.java:428) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$1.render(Environment.java:246) at com.abtc.core.web.directive.AbstractInfoListPageDirective.doExecute(AbstractInfoListPageDirective.java:223) at com.abtc.core.web.directive.InfoPageDirective.execute(InfoPageDirective.java:23) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.EscapeBlock.accept(EscapeBlock.java:84) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at freemarker.template.Template.process(Template.java:259) at com.abtc.core.html.PNode.makeHtml(PNode.java:66) at com.abtc.core.html.HtmlServiceImpl.makeNode(HtmlServiceImpl.java:69) at com.abtc.core.html.HtmlServiceImpl.makeInfo(HtmlServiceImpl.java:44) at sun.reflect.GeneratedMethodAccessor1082.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy113.makeInfo(Unknown Source) at com.abtc.core.html.HtmlGeneratorImpl$1.run(HtmlGeneratorImpl.java:42) Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'Y' at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:769) at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576) at java.text.SimpleDateFormat.(SimpleDateFormat.java:501) at freemarker.core.Environment.getDateFormatObject(Environment.java:955) ... 48 more