Details

    • Fix Priority:
      4

      Description

      Steps to reproduce
      1- Login in the portal
      2- Go to control panel/Custom Fields

      The following exception is displayed:

      15:32:36,061 ERROR [http-bio-8080-exec-13][IncludeTag:129] Current URL /group/control_panel?refererPlid=10190&p_p_id=139&controlPanelCategory=configuration generates exception: com.liferay.registry.collections.ServiceTrackerCollectionImpl$EntryWrapper cannot be cast to com.liferay.portlet.expando.model.CustomAttributesDisplay
      java.lang.ClassCastException: com.liferay.registry.collections.ServiceTrackerCollectionImpl$EntryWrapper cannot be cast to com.liferay.portlet.expando.model.CustomAttributesDisplay
      	at com.liferay.portlet.expando.util.comparator.CustomAttributesDisplayComparator.compare(CustomAttributesDisplayComparator.java:1)
      	at java.util.Arrays.mergeSort(Arrays.java:1270)
      	at java.util.Arrays.mergeSort(Arrays.java:1281)
      	at java.util.Arrays.mergeSort(Arrays.java:1281)
      	at java.util.Arrays.sort(Arrays.java:1210)
      	at java.util.Collections.sort(Collections.java:159)
      	at org.apache.jsp.html.portlet.expando.view_jsp._jspService(view_jsp.java:602)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
      	at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3908)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      

      TECHNICAL NOTE:
      This operation (in portal-web/docroot/html/portlet/expando/view.jsp):

      Collections.sort(customAttributesDisplays, new CustomAttributesDisplayComparator(locale));
      

      doesn't work after the changes of LPS-45126. Elements of customAttributesDisplays don't inherit from com.liferay.portlet.expando.model.CustomAttributesDisplay so the sort operation displays that exception.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 30 weeks ago

                  Packages

                  Version Package
                  7.0.0 M3