org.hibernate.LazyInitializationException: could not initialize proxy - no Session

前端 未结 4 472
慢半拍i
慢半拍i 2020-12-31 12:17

I have 2 physical servers which my web application hits managed by load balancers. I always get -

org.hibernate.LazyInitializationException: could not initia

4条回答
  •  有刺的猬
    2020-12-31 12:24

    Is that an association or property - if it is a property then the issue might be that one of the server's is running a non instrumented version.

    Lazy attribute fetching: an attribute or single valued association is fetched when the instance variable is accessed. This approach requires buildtime bytecode instrumentation and is rarely necessary.
    

提交回复
热议问题