Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51923

Cannot access Notification Delivery options in Notifications portlet

    Details

    • Fix Priority:
      5

      Description

      Accessing Display Settings in the Notifications portlet is generating errors.

      Steps to reproduce:

      1. Deploy Notifications Portlet
      2. Access Notifications Portlet (click on 0 in dockbar)
      3. Click on Notifications to access menu
      4. Click Display Settings

      Expected Result:
      Portlet shows Display settings and user can check or uncheck delivery options.

      Actual Result:
      Portlet displays "Notifications is temporarily unavailable" and console errors are generated.

      Issue was found on master, was not duplicated on ee-6.2.x.

      Console error:

      SEVERE: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP:
       
      An error occurred at line: 36 in the jsp file: /notifications/configuration.jsp
      Type mismatch: cannot convert from Map<String,List<UserNotificationDefinition>> to ServiceTrackerMap<String,List<UserNotificationDefinition>>
      33:     <%
      34:     Map<String, List<UserNotificationDefinition>> userNotificationDefinitionsMap = new TreeMap<String, List<UserNotificationDefinition>>(new PortletIdComparator(locale));
      35:
      36:     ServiceTrackerMap<String, List<UserNotificationDefinition>> userNotificationDefinitionsServiceTrackerMap = UserNotificationManagerUtil.getUserNotificationDefinitions();
      37:
      38:     for (String key : userNotificationDefinitionsServiceTrackerMap.keySet()) {
      39:             userNotificationDefinitionsMap.put(key, userNotificationDefinitionsServiceTrackerMap.getService(key));
       
       
      Stacktrace:
              at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
              at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
              at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      [...]
      

      Full gist of Console Output- https://gist.github.com/simonkpark/fe92b161ed7ece49a4c6

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simon.park Simon Park (Inactive)
                Reporter:
                simon.park Simon Park (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 1 week, 5 days ago

                  Packages

                  Version Package
                  7.0.0 M3