Navegación por categorías

Navegación por categorías

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

----
FTL stack trace ("~" means nesting-related):
	- Failed at: journalArticle = journalArticleServic...  [in template "646115#646149#789961" at line 15, column 10]
	- Reached through: #assign-container  [in template "646115#646149#789961" 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 
25 
26	 <#assign category = assetCategoryService.getAssetCategory(categoryId) /> 
27 
28	<div class="journal-content-article">  
29		<div class="row mb-2 show-news">  
30	    	<div class="col-md-12 ">  
31	        	<div class="taglib-header ">  
32	            	<span class="header-back-to lfr-portal-tooltip" data-title="${languageUtil.get(locale,"medio.ambiente.general.back")}">  
33	                	<a href="${backUrl}" target="_self" class=" lfr-icon-item taglib-icon">  
34	                    <span class=""><svg class="lexicon-icon lexicon-icon-angle-left" focusable="false" role="img" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M114.106 254.607c0.22 6.936 2.972 13.811 8.272 19.11l227.222 227.221c11.026 11.058 28.94 11.058 39.999 0 11.058-11.026 11.058-28.94 0-39.999l-206.333-206.333c0 0 206.333-206.333 206.333-206.333 11.058-11.059 11.058-28.973 0-39.999-11.058-11.059-28.973-11.059-39.999 0l-227.221 227.221c-5.3 5.3-8.052 12.174-8.273 19.111z"></path></svg></span>  
35	                    <span class="taglib-text hide-accessible">${languageUtil.get(locale,"medio.ambiente.general.back")}</span> </a>  
36	                 </span> 
37	                 <h3 class="header-title"><span>${languageUtil.get(locale,"medio.ambiente.general.back")}</span> </h3>  
38	             </div> 
39	 
40				<div class="card flex-md-row mb-4 box-shadow h-md-250"> 
41				 	<div class="card-body d-flex flex-column align-items-start"> 
42                  		<h2 class="mb-0">${category.getTitle(locale)}</h2>  
43                    	<div class="plantilla-articulo plantilla-detalle-contenido"> 
44                    		${articleContent} 
45                    	</div>	                    	 
46                   	</div>                                           
47         		</div><!-- card -->  
48         		 
49	    	</div><!-- col-md-12 -->  
50		</div><!-- row -->  
51	</div>	 
52</#if>