Details

      Description

      To replroduce this bug you need:
      1. have custom theme with some portlet included into theme template: for example include $theme.runtime("82") into portal_normal.vm
      2. this custom theme should display borders by default
      3. set this theme as defualt
      4. register new user and try to login
      5. Liferay will try to display terms of use - but exception will be generated:

      21:06:31,736 ERROR [IncludeTag:79] Current URL /web/guest/home generates exception: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'wrapPortlet' in class com.liferay.taglib.util.VelocityTaglib threw exception com.liferay.portal.SystemException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'iconOptions' in class com.liferay.taglib.util.VelocityTaglib threw exception org.apache.jasper.JasperException: java.lang.NullPointerException at emforge-theme_SERVLET_CONTEXT_/templates/portlet.vm[line 18, column 40] at emforge-theme_SERVLET_CONTEXT_/templates/portal_normal.vm[line 75, column 24]
      21:06:31,738 ERROR [IncludeTag:165] java.lang.NullPointerException
      at com.liferay.portal.model.PortletConstants.getRootPortletId(PortletConstants.java:81)
      at com.liferay.portal.service.impl.PortletLocalServiceImpl.getPortletById(PortletLocalServiceImpl.java:231)
      at com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl.getPreferences(PortletPreferencesLocalServiceImpl.java:215)
      at com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl.getPreferences(PortletPreferencesLocalServiceImpl.java:197)
      at com.liferay.portal.service.PortletPreferencesLocalServiceUtil.getPreferences(PortletPreferencesLocalServiceUtil.java:180)
      at com.liferay.portlet.PortletPreferencesFactoryImpl.getLayoutPortletSetup(PortletPreferencesFactoryImpl.java:78)
      at com.liferay.portlet.PortletPreferencesFactoryUtil.getLayoutPortletSetup(PortletPreferencesFactoryUtil.java:50)
      at org.apache.jsp.html.taglib.portlet.icon_005foptions.page_jsp._jspService(page_jsp.java:835)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
      at com.liferay.taglib.portletext.IconOptionsTag.doTag(IconOptionsTag.java:59)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 14 weeks, 6 days ago

                Packages

                Version Package