Forums de discussion

RE: ClassCastException after migrating faces version

Jigar N Gajjar, modifié il y a 7 années.

RE: ClassCastException after migrating faces version

Junior Member Publications: 71 Date d'inscription: 25/12/09 Publications récentes
I am facing the same issue as this thread: https://web.liferay.com/community/forums/-/message_boards/message/67678964

I cannot figure out how to load journal article.

<div>
<%
JournalArticle article = JournalArticleLocalServiceUtil.getLatestArticleByUrlTitle(themeDisplay.getScopeGroupId(), "chaingeneralaccountinfo", 0);
%>
<liferay-ui:journal-article articleId="<%= article.getArticleId() %>" articleResourcePrimKey="<%= article.getResourcePrimKey() %>" groupId="<%=themeDisplay.getScopeGroupId() %>" languageId="<%=themeDisplay.getLanguageId() %>" showAvailableLocales="<%=false %>" />
</div>

14:11:38,063 ERROR [http-bio-8080-exec-10][IncludeTag:129] Current URL /group/mds/pages/home?p_p_id=BasicSearch_WAR_MDSportlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=help&p_p_col_id=column-1&p_p_col_count=2&yui_patched_v3_11_0_1_1479478289280_1020=1479478295645 generates exception: An exception occurred processing JSP page /html/taglib/ui/journal_article/page.jsp at line 66____63: </c:if>__64: </c:if>__65: __66: <%= RuntimePageUtil.processXML(request, response, articleDisplay.getContent()) %>__67: </c:if>______Stacktrace: [Sanitized]
java.lang.ClassCastException: com.liferay.faces.bridge.application.view.internal.BridgeWriteBehindResponseRenderImpl cannot be cast to com.liferay.portlet.RenderResponseImpl
at com.liferay.portal.layoutconfiguration.util.xml.ActionURLLogic.<init>(ActionURLLogic.java:39)
at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.processXML(RuntimePageImpl.java:153)
at com.liferay.portal.layoutconfiguration.util.RuntimePageUtil.processXML(RuntimePageUtil.java:77)
at org.apache.jsp.html.taglib.ui.journal_005farticle.page_jsp._jspService(page_jsp.java:707)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
thumbnail
Kyle Joseph Stiemann, modifié il y a 7 années.

RE: ClassCastException after migrating faces version

Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
Hi Jigar,
liferay-ui:journal-article is a Liferay JSP tag which was never supported Liferay Faces (see legacy Liferay Faces liferay-ui docs).

If you can migrate to facelets, you may be able to accomplish the same goal with portal:runtime. portal:runtime is supported in the latest version of Liferay Faces. Please use the Archetype portlet here to ensure that you are using the correct version of Liferay Faces jars.

- Kyle