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

admin.layout.mobile errors when selecting page defined with mobile device rule from page tree

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
    • Fix Version/s: 6.2.X EE, 7.0.0 M1
    • Labels:
      None
    • Environment:
      Tomcat 7.0.40 + MySQL5.5. Portal master GIT ID: 836093f1a6bece618a0bf891ec8c658a2236f6d6.
      Plugins master GIT ID: e77c33a552f75eba45fc775c42144dec8087db9e.
    • Story Points:
      3
    • Fix Priority:
      3

      Description

      Step to reproduce:

      1. Deploy the zoe-tech-theme and its dependencies (resource-importer-web, 1-3-1-layout-hook, and marketplace-portlet).
      2. Admin > Configuration.
      3. Assert Mobile Device Families appears under configuration.
      4. Click on Mobile Device Families, complete the Fields and Save to add a device family.
      5. On the same Device Family, click Manage Classification Rules.
      6. Click Add Classification Rule. Complete the fields and save.
      7. Navigate to a page on the site.
      8. Click the Edit icon on the left sidebar.
      9. Under Mobile Device Rules, choose Define specific mobile device rules for this page,
        select the device family you just create.
      10. Click Admin > Pages, In the Site Pages, choose welcome page, click Mobile Device Rules.

      Expected result: I can see the Mobile Device Rules page.

      Actual result: I can not choose the page and I will see the NPE error.

      10:26:43,156 ERROR [http-bio-8080-exec-18][IncludeTag:92] Current URL /group/control_panel/manage?p_p_auth=5D3iStSe&p_p_id=156&p_p_lifecycle=2&p_p_state=maximized&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_treeId=layoutsTree&_156_groupId=10184&_156_tabs1=public-pages&_156_viewLayout=true&_156_struts_action=%2Fgroup_pages%2Fedit_layouts&_156_selPlid=10187&_156_historyKey= generates exception: null
      java.lang.NullPointerException
      	at org.apache.jsp.html.portlet.layouts_005fadmin.layout.mobile_005fdevice_005frules_005frule_005fgroup_005finstance_005faction_jsp._jspService(mobile_005fdevice_005frules_005frule_005fgroup_005finstance_005faction_jsp.java:663)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	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.portal.kernel.dao.search.JSPSearchEntry.print(JSPSearchEntry.java:64)
      	at org.apache.jsp.html.taglib.ui.search_005fiterator.page_jsp._jspService(page_jsp.java:985)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	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.portlet.layouts_005fadmin.layout.mobile_005fdevice_005frules_jsp._jspx_meth_liferay_002dui_005fsearch_002diterator_005f0(mobile_005fdevice_005frules_jsp.java:2073)
      	at org.apache.jsp.html.portlet.layouts_005fadmin.layout.mobile_005fdevice_005frules_jsp._jspService(mobile_005fdevice_005frules_jsp.java:1596)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gergely.mathe Gergely Mathe (Inactive)
              Reporter:
              luyang.tan Luyang Tan (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:
                6 years, 23 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M1