学位点简况
FreeMarker template error (DEBUG mode; use RETHROW in production!):
An error has occurred when reading existing sub-variable "txt"; see cause exception! The type of the containing value was: extended_hash+string (com.jeecms.cms.entity.main.Channel_$$_jvst47c_2 wrapped into f.e.b.StringModel)
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${channel.txt!} [in template "WEB-INF/t/cms/www.szgg/www.szgg/alone/alone.html" at line 52, column 27]
----
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.DefaultToExpression._eval(DefaultToExpression.java:84)
at freemarker.core.Expression.eval(Expression.java:81)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:96)
at freemarker.core.DollarVariable.accept(DollarVariable.java:59)
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.jeecms.cms.staticpage.StaticPageDaoImpl.createChannelPage(StaticPageDaoImpl.java:433)
at com.jeecms.cms.staticpage.StaticPageDaoImpl.channelStatic(StaticPageDaoImpl.java:175)
at com.jeecms.cms.staticpage.StaticPageSvcImpl.channel(StaticPageSvcImpl.java:134)
at com.jeecms.cms.staticpage.StaticPageSvcImpl.deleteContent(StaticPageSvcImpl.java:109)
at sun.reflect.GeneratedMethodAccessor1496.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.$Proxy67.deleteContent(Unknown Source)
at com.jeecms.cms.staticpage.ContentStaticPageListener.afterDelete(ContentStaticPageListener.java:68)
at com.jeecms.cms.staticpage.ContentStatusChangeThread.afterDelete(ContentStatusChangeThread.java:87)
at com.jeecms.cms.staticpage.ContentStatusChangeThread.run(ContentStatusChangeThread.java:54)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:236)
at freemarker.ext.beans.BeanModel.get(BeanModel.java:154)
... 29 more
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.jeecms.cms.entity.main.Channel.channelTxtSet, 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.jeecms.cms.entity.main.Channel.getChannelTxt(Channel.java:1205)
at com.jeecms.cms.entity.main.Channel.getTxt(Channel.java:1139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:196)
at com.jeecms.cms.entity.main.Channel_$$_jvst47c_2.getTxt(Channel_$$_jvst47c_2.java)
... 36 more