Details
-
Bug
-
Status: Closed
-
Resolution: Duplicate
-
6.1.30 EE GA3, 6.2.0 CE RC6, 6.2.10 EE GA1
Description
The default layout type settings for Liferay 6.1 + is like:
layout.types=portlet,panel,embedded,url,link_to_layout
We have moved ‘article’ type to portal-legacy-6.0.properties already, so it is supposed to work, but we will get NullPointerException when Add Applications. (This setup ("article") has been moved to portal-legacy-6.0.properties by LPS-19760)
Steps to reproduce it:
1. Add the property following page type in portal-ext.properties:
layout.types=portlet,panel,embedded,article,url,link_to_layout
2. Restart the server
3. Click the Add > Applications
Actual Result: We will see the following errors:
2013-12-10 08:00:41,591 [ERROR] [tomcat-http--15] [com.liferay.taglib.util.IncludeTag:?] Current URL /user/lfadmin/home?p_p_id=145&p_p_lifecycle=0&p_p_state=exclusive&p_p_mode=view&145_viewEntries=true&_145_stateMaximized=false&_145_struts_action=%2Fdockbar%2Fadd_panel generates exception: An exception occurred processing JSP page /html/portal/layout/edit/article.jsp at line 2017: <%@ include file="/html/portal/layout/edit/init.jsp" %>_18: _19: <%_20: UnicodeProperties typeSettingsProperties = selLayout.getTypeSettingsProperties();_21: _22: String articleId = typeSettingsProperties.getProperty("article-id", StringPool.BLANK);_23: %>__Stacktrace: [Sanitized]
java.lang.NullPointerException
at org.apache.jsp.html.portal.layout.edit.article_jsp._jspService(article_jsp.java:519)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
Full log is attached.