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

ClassCastException while iterating over forum.getTopics()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: Messages Tool
    • Labels:
      None
    • Previous Issue Keys:
      SAK-16956, MSGCNTR-92

      Description

      Still working on steps to replicate, but this was produced in a 2.6.0 instance in a live course.

      Symptoms: students attempt to click on topic title to reach thread view but instead go nowhere. Logs show the exceptions.

      java.lang.ClassCastException: org.sakaiproject.component.app.messageforums.dao.hibernate.TopicImpl$$EnhancerByCGLIB$$567fdeab
      at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.hasNextTopic(DiscussionForumManagerImpl.java:637)
      at sun.reflect.GeneratedMethodAccessor2845.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy31.hasNextTopic(Unknown Source)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.getDecoratedTopic(DiscussionForumTool.java:2407)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.resetTopicById(DiscussionForumTool.java:2529)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.displayTopicById(DiscussionForumTool.java:2558)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.processActionDisplayTopic(DiscussionForumTool.java:1621)
      at sun.reflect.GeneratedMethodAccessor89515.invoke(Unknown Source)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  arwhyte Anthony Whyte
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code