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

Private Messages: Stacktrace in /jsp/privateMsg/pvtMsgDirectAccess.jsp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 19.2, 20.0
    • Fix Version/s: 19.4, 20.0
    • Component/s: Messages Tool
    • Labels:
      None
    • 19 status:
      Verified

      Description

      We're receiving emails with this error in Private Messages:

      Stacktrace:
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1489)
      caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page [/jsp/privateMsg/pvtMsgDirectAccess.jsp] at line [24]21:     Application app = context.getApplication();
      22:     ValueBinding binding = app.createValueBinding("#{PrivateMessagesTool}");
      23:     PrivateMessagesTool pmt = (PrivateMessagesTool) binding.getValue(context);
      24:     request.setAttribute("currentTopic",pmt.getReceivedTopicForMessage((String) paramMap.get("current_msg_detail")));
      25:     request.setAttribute("currentMessage",(String) paramMap.get("current_msg_detail"));
      26:      
      27:     if(pmt.getUserId() != null){
      Stacktrace:
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:514)
      caused by: java.lang.NumberFormatException: For input string: ""
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
          at java.lang.Long.parseLong(Long.java:601)
          at java.lang.Long.valueOf(Long.java:803)
          at org.sakaiproject.tool.messageforums.PrivateMessagesTool.getReceivedTopicForMessage(PrivateMessagesTool.java:1086) 

      The error happens because the msgId is an empty string and tries to convert to long.

      The real error comes from the notification email, the messageId is null and that's the reason behind this Jira. This Jira helps in the validation as it avoids the stacktrace, but doesn't resolve the problem of SAK-42586.

       

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    farreri Miguel Pellicer
                    Reporter:
                    farreri Miguel Pellicer
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration