Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-24825

Hibernate Lazy Load error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.2, 10.0
    • Component/s: Messages Tool
    • Labels:
    • Previous Issue Keys:
      MSGCNTR-785

      Description

      seen in production - unsure of path to reporduce:

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'attachList' from bean of type org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:881)
      caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'attachList' from bean of type org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1470)
      caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'attachList' from bean of type org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
      caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'attachList' from bean of type org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:841)
      caused by: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'attachList' from bean of type org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
      caused by: javax.faces.el.EvaluationException: Error getting property 'attachList' from bean of type org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
      caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.attachmentsSet, no session or session was closed
      at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
      at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
      at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)
      at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
      at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:163)
      at org.sakaiproject.component.app.messageforums.dao.hibernate.Util.setToList(Util.java:34)
      at org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl.getAttachments(TopicImpl.java:111)
      at org.sakaiproject.tool.messageforums.ui.DiscussionTopicBean.getAttachList(DiscussionTopicBean.java:1004)
      at sun.reflect.GeneratedMethodAccessor2282.invoke(null:-1)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
      at com.sun.faces.el.impl.UnaryOperatorExpression.evaluate(UnaryOperatorExpression.java:187)
      at com.sun.faces.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:185)
      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
      at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:335)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getChildren(HtmlBasicRenderer.java:490)
      at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:148)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:253)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:629)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:566)
      at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                baholladay Bryan Holladay
                Reporter:
                arwhyte Anthony Whyte
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration