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

blogspot.com | 2 months ago
  1. 0

    LazyInitializationException in spite of OpenSessionInViewFilter

    Stack Overflow | 5 years ago | Abdullah Jibaly
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  2. 0

    LazyInitializationException when field is eager

    Stack Overflow | 6 years ago | Dejel
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    How to manually manage Hibernate sessions in @PostContruct methods?

    Stack Overflow | 4 years ago | Ariel Chels─âu
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  5. 0

    Spring MVC custom Class property editor

    Stack Overflow | 5 years ago | Fabio B.
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session

  1. MoYapro 2 times, last 4 weeks ago
14 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.LazyInitializationException

    could not initialize proxy - no Session

    at org.hibernate.proxy.AbstractLazyInitializer.initialize()
  2. Hibernate
    JavassistLazyInitializer.invoke
    1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
    2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
    3. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
    3 frames
  3. com.mycompany.myproject
    MyObject_$$_javassist_20.hashCode
    1. com.mycompany.myproject.domain.MyObject_$$_javassist_20.hashCode(MyObject_$$_javassist_20.java)
    1 frame
  4. Commons Lang
    HashCodeBuilder.reflectionHashCode
    1. org.apache.commons.lang.builder.HashCodeBuilder.append(HashCodeBuilder.java:452)
    2. org.apache.commons.lang.builder.HashCodeBuilder.reflectionAppend(HashCodeBuilder.java:413)
    3. org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeBuilder.java:379)
    4. org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(HashCodeBuilder.java:155)
    4 frames
  5. com.mycompany.myproject
    DomainObject.hashCode
    1. com.mycompany.myproject.domain.DomainObject.hashCode(DomainObject.java:14)
    1 frame
  6. Java RT
    HashSet.contains
    1. java.util.HashMap.hash(HashMap.java:324)
    2. java.util.HashMap.containsKey(HashMap.java:470)
    3. java.util.HashSet.contains(HashSet.java:207)
    3 frames
  7. Commons Lang
    ToStringBuilder.reflectionToString
    1. org.apache.commons.lang.builder.ReflectionToStringBuilder.isRegistered(ReflectionToStringBuilder.java:135)
    2. org.apache.commons.lang.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:660)
    3. org.apache.commons.lang.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:867)
    4. org.apache.commons.lang.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:339)
    5. org.apache.commons.lang.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:173)
    6. org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(ToStringBuilder.java:124)
    6 frames
  8. com.mycompany.myproject
    DomainObject.toString
    1. com.mycompany.myproject.domain.DomainObject.toString(DomainObject.java:24)
    1 frame
  9. Java RT
    AbstractCollection.toString
    1. java.lang.String.valueOf(String.java:1505)
    2. java.util.AbstractCollection.toString(AbstractCollection.java:469)
    2 frames
  10. com.ibm.ws
    SRTServletRequest.setAttribute
    1. com.ibm.ws.webcontainer.srt.SRTServletRequest.setAttribute(SRTServletRequest.java:488)
    1 frame
  11. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes(AbstractView.java:337)
    2. org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:206)
    3. org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
    4. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    8. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    8 frames
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    2 frames
  13. WebSphere
    ServletWrapper.handleRequest
    1. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
    2. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)
    3. com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
    4. com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    5. com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
    6. com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
    7. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
    7 frames
  14. com.ibm.ws
    ServletWrapper.handleRequest
    1. com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    1 frame
  15. WebSphere
    WebAppRequestDispatcher.forward
    1. com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)
    1 frame
  16. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236)
    2. org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
    3. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
    4. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
    5. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    6. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    7. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    7 frames
  17. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    2 frames
  18. WebSphere
    WebAppFilterChain.doFilter
    1. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
    2. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)
    3. com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    3 frames
  19. Sitemesh
    PageFilter.doFilter
    1. com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
    2. com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
    2 frames
  20. WebSphere
    ServletWrapper.handleRequest
    1. com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:186)
    2. com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    3. com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    4. com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
    5. com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
    6. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
    6 frames
  21. com.ibm.ws
    ServletWrapper.handleRequest
    1. com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    1 frame
  22. WebSphere
    WebContainer.handleRequest
    1. com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    2. com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
    2 frames
  23. com.ibm.ws
    WCChannelLink.ready
    1. com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
    2. com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
    2 frames
  24. WebSphere
    AioReadCompletionListener.futureCompleted
    1. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
    2. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
    3. com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    4. com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    4 frames
  25. com.ibm.io
    ResultHandler$2.run
    1. com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    2. com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    3. com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    4. com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    5. com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    6. com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    6 frames
  26. com.ibm.ws
    ThreadPool$Worker.run
    1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    1 frame