当前位置: 首页 >  办事服务 > 重点服务>
FreeMarker template error (DEBUG mode; use RETHROW in production!): Java method "com.hytcms.cms.entity.main.Channel.getIsChild()" threw an exception when invoked on com.hytcms.cms.entity.main.Channel object "com.hytcms.cms.entity.main.Channel@69b3aea8"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #if channel.getIsChild() > 0 [in template "WEB-INF/t/cms/www/szq/channel/bsfw_child.html" at line 49, column 25] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:289) at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:252) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:74) at freemarker.core.MethodCall._eval(MethodCall.java:65) 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.IfBlock.accept(IfBlock.java:49) 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.hytcms.cms.staticpage.StaticPageDaoImpl.createChannelPage(StaticPageDaoImpl.java:649) at com.hytcms.cms.staticpage.StaticPageDaoImpl.channelStatic(StaticPageDaoImpl.java:177) at com.hytcms.cms.staticpage.StaticPageSvcImpl.channel(StaticPageSvcImpl.java:134) at com.hytcms.cms.staticpage.StaticPageSvcImpl.deleteContent(StaticPageSvcImpl.java:109) at sun.reflect.GeneratedMethodAccessor2564.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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.$Proxy76.deleteContent(Unknown Source) at com.hytcms.cms.staticpage.ContentStaticPageListener.afterDelete(ContentStaticPageListener.java:68) at com.hytcms.cms.staticpage.ContentStatusChangeThread.afterDelete(ContentStatusChangeThread.java:87) at com.hytcms.cms.staticpage.ContentStatusChangeThread.run(ContentStatusChangeThread.java:54) Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.hytcms.cms.entity.main.Channel.child, 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.PersistentSet.size(PersistentSet.java:160) at com.hytcms.cms.entity.main.Channel.getIsChild(Channel.java:1262) at sun.reflect.GeneratedMethodAccessor1217.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:69) ... 28 more