Buscando, por favor espere....

Estás en: Ayuntamiento de València

prevenció escolar prevención escolar - València

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

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign relatedArticle = JournalArtic...  [in template "20115#20151#379502" at line 41, column 25]
----
1<#assign commonUtilsApi =serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi")/> 
2<#assign portletRequestModel = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse) /> 
3 
4<div class="row"> 
5    <div class="col-12"> 
6        <#if titularBusqueda?? && titularBusqueda.getData()?has_content> 
7            <h2 class="bloque_titulo">${titularBusqueda.getData()}</h2> 
8        </#if> 
9        <#assign bloquesNew = commonUtilsApi.replaceUrlWithUID("${themeDisplay.getURLCurrent()}",bloques.getData())/> 
10        ${bloquesNew} 
11    </div> 
12</div> 
13 
14<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
15<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
16 
17 
18<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
19<#assign journalId = .vars['reserved-article-id'].data/> 
20 
21<#attempt> 
22    <#assign article = JournalArticleLocalService.fetchArticle( groupId ,journalId) > 
23<#recover> 
24</#attempt> 
25 
26<#if article??> 
27<#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" > 
28<#assign articleEntry = AssetEntryLocalService.getEntry(journalArticleClassname, article.getResourcePrimKey())> 
29<#assign articleRelatedEntries = AssetLinkLocalService.getDirectLinks(articleEntry.getEntryId()) > 
30 
31<#if articleRelatedEntries?has_content> 
32	 
33	<#assign relatedTemplateKey = "38113" > 
34		 
35	<#list articleRelatedEntries as relatedAsset> 
36		<#assign relatedEntry = AssetEntryLocalService.getEntry(relatedAsset.getEntryId2()) > 
37		<#assign entryClassPK = relatedEntry.getClassPK() > 
38		 
39		<#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" > 
40		<#if journalArticleClassname==relatedEntry.getClassName()> 
41			<#assign relatedArticle = JournalArticleLocalService.fetchLatestArticle(entryClassPK) > 
42			<#if relatedArticle.getDDMTemplateKey() == relatedTemplateKey > 
43				<#assign relatedArticleContent = JournalArticleLocalService.getArticleContent(relatedArticle, relatedArticle.getDDMTemplateKey(), "view", locale, portletRequestModel,themeDisplay)> 
44 
45				<div class="bloque-cuadro"> 
46				     <h3 class="titulo-bloque"><@liferay.language key="informacion_adicional" /></h3> 
47					  <#assign urlNew = commonUtilsApi.replaceUrlWithUID("${themeDisplay.getURLCurrent()}",relatedArticleContent)/> 
48					    <div class="col-12 pb-3" >${urlNew}</div> 
49				</div> 
50 
51			</#if> 
52		</#if> 
53	</#list>	 
54</#if> 
55</#if>  
56 
57<style> 
58 
59  .bloque-cuadro{ 
60      border:3px solid; 
61      border-color:#dadada; 
62      padding-left:15px; 
63      padding-right:15px; 
64      margin-top:15px; 
65
66     
67    .titulo-bloque{ 
68      margin-top: 3%; 
69      margin-bottom: 3%; 
70      color:4C4C4C; 
71
72</style>