Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1966523
  • 博文数量: 606
  • 博客积分: 9991
  • 博客等级: 中将
  • 技术积分: 5725
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-17 19:07
文章分类

全部博文(606)

文章存档

2011年(10)

2010年(67)

2009年(155)

2008年(386)

分类: Java

2009-12-11 15:12:52

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


阅读(1468) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-06-03 10:17:59

还是有问题 这个方法不行