Navegación por categorías

Navegación por categorías

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

----
FTL stack trace ("~" means nesting-related):
	- Failed at: journalArticle = journalArticleServic...  [in template "30812#30846#41010" at line 15, column 10]
	- Reached through: #assign-container  [in template "30812#30846#41010" 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 
26	<div class="journal-content-article">  
27		<div class="row mb-2 show-news">  
28	    	<div class="col-md-12 ">  
29	        	<div class="taglib-header ">  
30	            	<span class="header-back-to lfr-portal-tooltip" data-title="${languageUtil.get(locale,"general.back")}">  
31	                	<a href="${backUrl}" target="_self" class=" lfr-icon-item taglib-icon">  
32	                    <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>  
33	                    <span class="taglib-text hide-accessible">${languageUtil.get(locale,"general.back")}</span> </a>  
34	                 </span> 
35	                 <h3 class="header-title"><span>${languageUtil.get(locale,"general.back")}</span> </h3>  
36	             </div> 
37	 
38	             <div class="card flex-md-row mb-4 box-shadow h-md-250">  
39	               	  <div class="card-body d-flex flex-column align-items-start col-md-12">  
40	                  		<h2 class="mb-0">${category.getTitle(locale)}</h2>  
41	                    	<div class="plantilla-detalle-contenido"> 
42	                    		${articleContent} 
43	                    	</div>	                    	 
44	                   </div>                                           
45	             </div><!-- card -->  
46	    	</div><!-- col-md-12 -->  
47		</div><!-- row -->  
48	</div>	 
49</#if>