detalles-noticia

Back

Error

An error occurred while processing the template.
Java method "static com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil.getPortletFileEntry(String, long)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = portletfilereposi...  [in template "20116#20152#45522" at line 14, column 51]
----
1<#if entries?has_content><div class="related-notice"><div class="container-fluid-1280">  <div class="row">             <div class="col-md-12">     <h4 class="text-center">Te puede interesar</h4>    </div>      
2<#list entries as curEntry>   
3 
4<#assign portletfilerepository = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"] /> 
5<#assign xPathImagenSelector = saxReaderUtil.createXPath("//dynamic-element[@field-reference='imagenFieldSet']/dynamic-content/text()") /> 
6<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) />   
7<#assign rootElement = docXml.getRootElement() /> 
8		<#assign imagenURL=""/> 
9 <#assign imagen = docXml.valueOf("//dynamic-element[@name='imagenFieldSet']") />   
10										<#assign jsonImagen = jsonFactoryUtil.createJSONObject(imagen) /> 
11                    <#assign m = jsonImagen?eval />	 
12					          <#assign groupId = m.groupId?number /> 
13					          <#assign uuid = m.uuid /> 
14					          <#assign fileEntry = portletfilerepository.getPortletFileEntry(uuid, groupId) /> 
15					          <#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />   
16					          <#assign imagenURL = portletfilerepository.getPortletFileEntryURL(themeDisplay, fileEntry, "") /> 
17<#assign assetRenderer = curEntry.getAssetRenderer()>      
18 
19<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest,renderResponse,curEntry)>   
20 
21<#assign viewURL = viewURL?replace("actualidad","detalles-noticia")>   
22 
23<#assign viewURL = viewURL?replace("buscador-avanzado","detalles-noticia")>  
24 
25<#assign viewURL += '?redirect=%2Fes%2Fweb%2Fsite'>  
26 
27<#assign comienzo = viewURL?index_of("detalles-noticia")> 
28<#assign final = viewURL?index_of("content")> 
29<#assign final = final+6> 
30 
31 
32<#assign cambio = viewURL[comienzo..final]> 
33 
34<#assign viewURL = viewURL?replace(cambio,"-")> 
35<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, '')> 
36 
37<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) />      
38<#assign imagen = docXml.valueOf("//dynamic-element[@name='imagenesGaleria']/dynamic-content/text()") />      
39<#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />   
40<div class="col-md-4"> 
41	<#if imagenURL??> 
42	    <p> 
43	        <div class="view-media" style="background-image:url(${imagenURL})"> 
44	        </div> 
45	    </p>  
46	</#if> 
47    <a href="${viewURL}"> 
48        <p class="text-blue title-destacado-notice"> 
49            ${curEntry.getTitle(locale)} 
50        </p> 
51    </a>   
52</div>      
53</#list>      
54</div>   
55</div>  
56</div>  
57</#if>