Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-995

Error 500 occurs when new registered user clicking on Messages link.

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.20 Larks
    • Fix Version/s: 0.20 Larks
    • Labels:
      None
    • Environment:

      deploy.jtalks.org/jcommune

      Description

      Error 500 occurs when new registered user clicking on Messages link.

      1) Register new user.
      2) Use Activation link received by Email after registration.
      3) Log-in with Login and password created on step 1.
      4) Click on Messages link on the top of the page.

      ACTUAL RESULT: Error "The server encountered an internal error () that prevented it from fulfilling this request" occurs.
      EXPECTED: No errors, successful opening of messages page.

      Note: This error reproduces only first one time. When this user clicks on Messages link for next time it will be ok.

      root cause

      org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/template/newPrivateMessage.jsp at line 22

      19: <%@ taglib prefix="jtalks" uri="http://www.jtalks.org/tags" %>
      20: <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
      21: <sec:authentication property="principal.id" var="senderId"/>
      22: <jtalks:hasPermission targetId='${senderId}' targetType='USER' permission='ProfilePermission.SEND_PRIVATE_MESSAGES'>
      23: <a href="${pageContext.request.contextPath}/pm/new?senderId=${senderId}"
      24: class="btn btn-primary btn-small pm_buttons">
      25: <spring:message code="label.new_pm"/></a>

        Attachments

        1. Error.png
          139 kB
          Ilya Galperin
        2. Exception.txt
          18 kB
          Julia Atlygina

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  freeman Ilya Galperin
                  Reporter:
                  freeman Ilya Galperin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 1m
                    1m

                      Structure Helper Panel