Navegación por categorías

Navegación por categorías

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy452.getLatestArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy452 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@1df31c1a"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: journalArticle = journalArticleServic...  [in template "49203#49237#1326010" at line 15, column 10]
	- Reached through: #assign-container  [in template "49203#49237#1326010" at line 1, column 1]
----
1<#assign ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"] 
2         PortletURLFactoryUtil = staticUtil["com.liferay.portal.kernel.portlet.PortletURLFactoryUtil"] 
3         PortletRequest = staticUtil["javax.portlet.PortletRequest"] 
4         assetCategoryService =  serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
5         assetCategoryPropertyService =  serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryPropertyLocalService") 
6         journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
7         layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
8         categoryId = ParamUtil.getLong(request,"categoryId", 0) 
9         articleId = ParamUtil.getString(request,"articleId", "") 
10         backUrl = ParamUtil.getString(request,"redirect", "") 
11         title =  ParamUtil.getString(request,"title", "") 
12         maxLoop = 100 
13         PropsUtil = staticUtil["com.liferay.portal.kernel.util.PropsUtil"] 
14         SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
15         journalArticle = journalArticleService.getLatestArticle(groupId,articleId) 
16         articleContent = journalArticleService.getArticleContent(journalArticle, "","VIEW", locale, themeDisplay) 
17/> 
18 
19<#if (categoryId <= 0) > 
20	<#assign categoryId = ParamUtil.getLong(renderRequest,"categoryId", 0)/> 
21</#if> 
22 
23<#if (categoryId > 0)> 
24	<#assign category = assetCategoryService.getAssetCategory(categoryId) /> 
25	<div class="card flex-md-row mb-4 box-shadow h-md-250"> 
26	 	<div class="card-body d-flex flex-column align-items-start"> 
27      		 
28        	     
29        		${articleContent} 
30        	                   	 
31       	</div>                                           
32	</div><!-- card -->  
33</#if> 

news-search-juventud Portlet

Navegador por categorías personalizado