• 凤凰街道规划和环保中心2016年度部门决算公开说明2 FreeMarker template error (DEBUG mode; use RETHROW in production!): An error has occurred when reading existing sub-variable "attr"; see cause exception! The type of the containing value was: extended_hash+string (com.yxgcms.cms.entity.main.Channel_$$_jvst57f_a wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: #if (channel.attr.isShowContentDate)!... [in template "t/cms/htqzfxxgk/www/include/moreNav.html" at line 87, column 49] - Reached through: @cms_content_page count=channel.pageS... [in template "t/cms/htqzfxxgk/www/include/moreNav.html" at line 75, column 17] - Reached through: #include "../include/moreNav.html" [in template "t/cms/htqzfxxgk/www/channel/xxgk.html" at line 14, column 7] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans.BeanModel.get(BeanModel.java:187) at freemarker.core.Dot._eval(Dot.java:43) at freemarker.core.Expression.eval(Expression.java:81) at freemarker.core.Dot._eval(Dot.java:41) at freemarker.core.Expression.eval(Expression.java:81) at freemarker.core.ParentheticalExpression._eval(ParentheticalExpression.java:50) at freemarker.core.Expression.eval(Expression.java:81) at freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:77) at freemarker.core.Expression.eval(Expression.java:81) at freemarker.core.EvalUtil.compare(EvalUtil.java:111) at freemarker.core.ComparisonExpression.evalToBoolean(ComparisonExpression.java:62) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48) at freemarker.core.Environment.visit(Environment.java:362) at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:263) at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:200) at freemarker.core.Environment.visitIteratorBlock(Environment.java:595) at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:81) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67) at freemarker.core.Environment.visit(Environment.java:362) at freemarker.core.Environment$NestedElementTemplateDirectiveBody.render(Environment.java:2727) at com.yxgcms.cms.action.directive.ContentPageDirective.execute(ContentPageDirective.java:70) at freemarker.core.Environment.visit(Environment.java:426) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101) at freemarker.core.Environment.visit(Environment.java:326) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.include(Environment.java:2505) at freemarker.core.Include.accept(Include.java:171) at freemarker.core.Environment.visit(Environment.java:326) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.process(Environment.java:305) at freemarker.template.Template.process(Template.java:384) at com.yxgcms.cms.staticpage.StaticPageDaoImpl.createChannelPage(StaticPageDaoImpl.java:452) at com.yxgcms.cms.staticpage.StaticPageDaoImpl.channelStatic(StaticPageDaoImpl.java:185) at com.yxgcms.cms.staticpage.StaticPageSvcImpl.channel(StaticPageSvcImpl.java:135) at com.yxgcms.cms.staticpage.StaticPageSvcImpl.deleteContent(StaticPageSvcImpl.java:110) at sun.reflect.GeneratedMethodAccessor1322.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy65.deleteContent(Unknown Source) at com.yxgcms.cms.staticpage.ContentStaticPageListener.afterDelete(ContentStaticPageListener.java:68) at com.yxgcms.cms.staticpage.ContentStatusChangeThread.afterDelete(ContentStatusChangeThread.java:87) at com.yxgcms.cms.staticpage.ContentStatusChangeThread.run(ContentStatusChangeThread.java:54) Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.yxgcms.cms.entity.main.Channel.attr, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:576) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:215) at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:156) at org.hibernate.collection.internal.PersistentMap.size(PersistentMap.java:140) at java.util.HashMap.(HashMap.java:294) at freemarker.template.SimpleHash.copyMap(SimpleHash.java:164) at freemarker.template.SimpleHash.(SimpleHash.java:135) at freemarker.template.DefaultObjectWrapper.wrap(DefaultObjectWrapper.java:214) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1462) at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:236) at freemarker.ext.beans.BeanModel.get(BeanModel.java:154) ... 49 more