Navegación por categorías

Navegación por categorías

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

----
FTL stack trace ("~" means nesting-related):
	- Failed at: journalArticle = journalArticleServic...  [in template "90807#90841#92692" at line 17, column 10]
	- Reached through: #assign-container  [in template "90807#90841#92692" 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         PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] 
5         IndexerRegistryUtil = staticUtil["com.liferay.portal.kernel.search.IndexerRegistryUtil"] 
6         assetCategoryService =  serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
7         assetCategoryPropertyService =  serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryPropertyLocalService") 
8         journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
9         layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
10         categoryId = ParamUtil.getLong(request,"categoryId", 0) 
11         articleId = ParamUtil.getString(request,"articleId", "") 
12         backUrl = ParamUtil.getString(request,"redirect", "") 
13         title =  ParamUtil.getString(request,"title", "") 
14         maxLoop = 100 
15         PropsUtil = staticUtil["com.liferay.portal.kernel.util.PropsUtil"] 
16         SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
17         journalArticle = journalArticleService.getLatestArticle(groupId,articleId,0) 
18         articleContent = journalArticleService.getArticleContent(journalArticle, "","VIEW", locale, themeDisplay) 
19         assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") 
20/> 
21 
22<#if (categoryId <= 0) > 
23	<#assign categoryId = ParamUtil.getLong(renderRequest,"categoryId", 0)/> 
24</#if> 
25 
26<#assign assetEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()?number) 
27		 count = assetEntry.getViewCount()?number+1/> 
28		  
29<#assign VOID = assetEntry.setViewCount(count) 
30		assetEntry = assetEntryLocalService.updateAssetEntry(assetEntry)/> 
31		 
32<#assign indexer = IndexerRegistryUtil.getIndexer("com.liferay.journal.model.JournalArticle") 
33		VOID = indexer.reindex(journalArticle)/> 
34 
35<#assign modificarAportacionPage = "/modificar-aportacion" 
36         layoutModificarAportacion = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, modificarAportacionPage) 
37	     modificarAportacionUrl = PortletURLFactoryUtil.create(request, PortalUtil.getPortletId(renderRequest), layoutModificarAportacion.getPlid(), PortletRequest.RENDER_PHASE) 
38/>	 
39 
40<#if (categoryId > 0)> 
41	 <#assign category = assetCategoryService.getAssetCategory(categoryId) /> 
42	 	<div class="card flex-md-row mb-4 box-shadow h-md-250"> 
43    		<div class="card-body d-flex flex-column align-items-start aportacion-detalle">                      
44        		<h2 class="mb-0">${languageUtil.get(locale,"memoria.digital.archivo.detalle-aportacion")}</h2>   
45        		<div class="plantilla-articulo plantilla-detalle-contenido">   
46					${articleContent} 
47					<#--Estas opciones se muestran si el usuario se encuentra autenticado y si es el usuario el creador del contenido que se esta visualizando --> 
48					<#if themeDisplay.isSignedIn() && themeDisplay.getUser().getUserId() == journalArticle.getUserId()> 
49					    <div class="botones-acciones"> 
50					    	<a href="${modificarAportacionUrl}&p_r_p_resourcePrimKey=${journalArticle.getResourcePrimKey()?number}&p_r_p_licencia=licencia" class="btn btn-primary editar-licencia"><span>${languageUtil.get(locale,"memoria.digital.form.button.modificar-licencia")}</span></a> 
51					        <a href="${modificarAportacionUrl}&p_r_p_resourcePrimKey=${journalArticle.getResourcePrimKey()?number}&p_r_p_user=user" class="btn btn-primary editar" id="editar"><span>${languageUtil.get(locale,"memoria.digital.form.button.editar")}</span></a> 
52					        <a href="${modificarAportacionUrl}&p_r_p_resourcePrimKey=${journalArticle.getResourcePrimKey()?number}&p_r_p_user=user&p_r_p_accion=eliminar" class="btn btn-primary rechazar" id="eliminar"><span>${languageUtil.get(locale,"memoria.digital.form.button.eliminar")}</span></a> 
53					    </div>   
54					</#if>   
55				</div><!-- plantilla-articulo plantilla-detalle-contenido -->    
56			</div> 
57		</div>                 	 
58</#if> 

user-login Portlet

Lo más visto

Nube de etiquetas