首页 > 你问我答
  • ·
    FreeMarker template error!
    
    
    Expression a.name is undefined on line 27, column 191 in WEB-INF/user_base/deyang_cnncy_com_www/template/community/default/1/question.html.
    The problematic instruction:
    ----------
    ==> ${a.name} [on line 27, column 189 in WEB-INF/user_base/deyang_cnncy_com_www/template/community/default/1/question.html]
     in user-directive cms.QuestionList [on line 25, column 41 in WEB-INF/user_base/deyang_cnncy_com_www/template/community/default/1/question.html]
    ----------
    
    Java backtrace for programmers:
    ----------
    freemarker.core.InvalidReferenceException: Expression a.name is undefined on line 27, column 191 in WEB-INF/user_base/deyang_cnncy_com_www/template/community/default/1/question.html.
    	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    	at freemarker.core.Expression.getStringValue(Expression.java:118)
    	at freemarker.core.Expression.getStringValue(Expression.java:93)
    	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.MixedContent.accept(MixedContent.java:92)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.Environment.visit(Environment.java:395)
    	at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
    	at freemarker.core.Environment.visit(Environment.java:417)
    	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.IfBlock.accept(IfBlock.java:82)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.MixedContent.accept(MixedContent.java:92)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.Macro$Context.runMacro(Macro.java:172)
    	at freemarker.core.Environment.visit(Environment.java:603)
    	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.MixedContent.accept(MixedContent.java:92)
    	at freemarker.core.Environment.visit(Environment.java:210)
    	at freemarker.core.Environment.process(Environment.java:190)
    	at freemarker.template.Template.process(Template.java:237)
    	at org.apache.struts2.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:187)
    	at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
    	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:361)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)
    	at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
    	at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.zsl.cnncy.common.struts2.interceptor.UrlInterceptor.doIntercept(UrlInterceptor.java:106)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.zsl.cnncy.core.web.CookieIdentityInterceptor.doIntercept(CookieIdentityInterceptor.java:48)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.zsl.cnncy.common.struts2.interceptor.DomainNameInterceptor.doIntercept(DomainNameInterceptor.java:23)
    	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at com.zsl.cnncy.common.struts2.interceptor.ProcessingStartInterceptor.intercept(ProcessingStartInterceptor.java:32)
    	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
    	at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
    	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:532)
    	at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:223)
    	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
    	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:793)
    	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:722)
    	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:915)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    	at java.lang.Thread.run(Unknown Source)