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

NPE from ThreadSorter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.8.2, 2.9.0
    • Component/s: Messages Tool
    • Labels:
      None
    • 2.9 Status:
      Resolved
    • Previous Issue Keys:
      MSGCNTR-446

      Description

      Seems that under some conditions and JDK's the threadSorter can NPE not sure how this forum got into this state:

      Stacktrace:
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: Error getting property 'selectedTopic' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
      caused by: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'selectedTopic' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
      caused by: javax.faces.el.EvaluationException: Error getting property 'selectedTopic' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      caused by: java.lang.NullPointerException
      at org.sakaiproject.tool.messageforums.DiscussionForumTool$ThreadUpdateSorter.compare(DiscussionForumTool.java:7526)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool$ThreadUpdateSorter.compare(DiscussionForumTool.java:7523)
      at java.util.Arrays.mergeSort(Arrays.java:1270)
      at java.util.Arrays.sort(Arrays.java:1210)
      at java.util.Collections.sort(Collections.java:159)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.sortThreadListByUpdate(DiscussionForumTool.java:5463)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.rearrageTopicMsgsThreaded(DiscussionForumTool.java:5439)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.getSelectedTopic(DiscussionForumTool.java:1387)
      at sun.reflect.GeneratedMethodAccessor1816.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:79)
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

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

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration