1. 异常代码
ERROR: org.hibernate.LazyInitializationException - could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:60)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:140)
at pl.biotechnologia.biznes.model.RegionEntity$$EnhancerByCGLIB$$de989cbe.getName()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
2. 解决方法:
spring listener放在url rewrite fiter前
JEECMS System
contextConfigLocation
classpath:com/jeecms/core/applicationContext.xml,
classpath:applicationContext.xml
webAppRootKey
jeecms.root
org.springframework.web.context.ContextLoaderListener
com.jeecms.core.web.ApplicationListener
com.jeecms.core.web.UploadFileListerner
org.springframework.web.util.IntrospectorCleanupListener
FckConnector
com.jeecms.core.fckeditor.ConnectorServlet
ProxoolAdmin
org.logicalcobwebs.proxool.admin.servlet.AdminServlet
ProxoolAdmin
/ProxoolAdmin.svl
jcaptcha
com.ponyjava.common.checkcode.ImageCaptchaServlet
FckConnector
/fckeditor/editor/filemanager/connectors/*
jcaptcha
/CheckCode.svl
osivFilter
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
osivFilter
*.do
REQUEST
FORWARD
osivFilter
*.htm
REQUEST
FORWARD
osivFilter
*.jsp
REQUEST
FORWARD
osivFilter
*.jspa
REQUEST
FORWARD
osivFilter
*.jspx
REQUEST
FORWARD
osivFilter
*.php
REQUEST
FORWARD
osivFilter
*.asp
REQUEST
FORWARD
osivFilter
*.aspx
REQUEST
FORWARD
UrlRewriteFilter
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
logLevel
DEBUG
UrlRewriteFilter
/*
REQUEST
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
*.action
REQUEST
FORWARD
struts2
*.do
REQUEST
FORWARD
struts2
*.htm
REQUEST
FORWARD
struts2
*.jsp
REQUEST
FORWARD
struts2
*.jspa
REQUEST
FORWARD
struts2
*.jspx
REQUEST
FORWARD
struts2
*.php
REQUEST
FORWARD
struts2
*.asp
REQUEST
FORWARD
struts2
*.aspx
REQUEST
FORWARD