PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40083

NullPointerException thrown for com.liferay.taglib.util.AttributesTagSupport.clearDynamicAttributes(AttributesTagSupport.java:33)

    Details

    • Similar Issues:
      Show 5 results 

      Description

      NullPointerException has been thrown for com.liferay.taglib.util.AttributesTagSupport.clearDynamicAttributes. Exception details are below.

      I made a screencast how I reproduce this issue: http://www.youtube.com/watch?v=ZAJ-pSGmBo8&hd=1

      • video created with default Liferay settings after first start with basic configuration without portal-ext.properties
      • exception can be seen after operation completed at 0:58 in the video

      Steps to reproduce:
      1) Setup clean Liferay Portal, go through basic configuration
      2) Navigate to Control Panel and return back
      Expected result: The Welcome page correctly shows with Hello World portlet on the page
      Actual result: Hello World porlet is missing and there is the NPE in the log file

      Thrown exception is:
      10:38:51,302 ERROR [RuntimePageImpl-1][IncludeTag:92] Current URL /web/guest/home generates exception: null
      java.lang.NullPointerException
      at com.liferay.taglib.util.AttributesTagSupport.clearDynamicAttributes(AttributesTagSupport.java:33)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:91)
      at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3563)
      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.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1478)
      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.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:652)
      at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:138)
      at com.liferay.portlet.SecurityPortletContainerWrapper.render(SecurityPortletContainerWrapper.java:140)

      Per Rasta's email on 9/17/13:

      For ticket http://issues.liferay.com/browse/LPS-40083 we have found out that we are getting this NullPointerException when filesystem on which tomcat/liferay is installed is mounted as root owner (process is started as non-root user though). So for example if we install tomcat/Liferay to directory owned by non-root user we have not seen this exception. In case we installed tomcat/Liferay to filesystem owned by root we got this exception.

      mounted as ntfs (/etc/fstab) with arguments defaults,umask=007,gid=46
      $ ls -l /media/data/Downloads/liferay-new-test/
      rwxrwx-- 1 root plugdev 256791808 zář 17 09:09 liferay-portal-tomcat-6.2.0-ce-b3-20130904110709653.zip
      drwxrwx--- 1 root plugdev 4096 zář 17 09:22 liferay-portal-6.2.0-ce-b3
      -> in above settings LPS-40083 is reproduced

        Issue Links

          Activity

          Hide
          Kenji Heigel added a comment - - edited

          Hi Jan,

          Based on Rasta's email that Sharon posted, it appears that this occurs because liferay was installed on a directory owned by root, but does not occur when installed on non root users. Installing liferay in directories owned by non root users should fix this issue, and was the intended functionality. Furthermore, a ticket for documentation of prerequisite filesystem types has been created in LRDOCS-762, which will document this functionality.

          If there are still issues related to this please comment and this issue will be looked into again. Otherwise, this ticket will be closed as "Won't Fix" in 14 days.

          Thank you,

          Kenji Heigel
          Associate QA Engineer

          Show
          Kenji Heigel added a comment - - edited Hi Jan, Based on Rasta's email that Sharon posted, it appears that this occurs because liferay was installed on a directory owned by root, but does not occur when installed on non root users. Installing liferay in directories owned by non root users should fix this issue, and was the intended functionality. Furthermore, a ticket for documentation of prerequisite filesystem types has been created in LRDOCS-762 , which will document this functionality. If there are still issues related to this please comment and this issue will be looked into again. Otherwise, this ticket will be closed as "Won't Fix" in 14 days. Thank you, Kenji Heigel Associate QA Engineer
          Hide
          Kenji Heigel added a comment -

          Closing this as "Won't Fix" per the previous comments.

          Show
          Kenji Heigel added a comment - Closing this as "Won't Fix" per the previous comments.

            People

            • Assignee:
              Kenji Heigel
              Reporter:
              Jan Hájovský
              Recent user:
              Kenji Heigel
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                47 weeks, 2 days ago

                Development

                  Structure Helper Panel