An error occurred while processing the template.
Java method "static com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil.getEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign results = assetEntryQueryServ...  [in template "20155#20195#199120" at line 135, column 1]
----
1<#--init adt--> 
2<#include "${templatesPath}/250939" /> 
3 
4<#--init template--> 
5<#include "${templatesPath}/250833" /> 
6 
7<#--functions template--> 
8<#include "${templatesPath}/250837" /> 
9 
10<#assign infoUrlIndicador = ""> 
11 
12<#if LINK_INFO.getData()?has_content > 
13   	<#assign infoUrlIndicador =  portalUtil.getPortalURL(themeDisplay) +"" +LINK_INFO.getData() + "?lang=" + locale + "&data=" + portalUtil.getPortalURL(themeDisplay) + JSON.getData()?string?split("?t")[0]> 
14</#if> 
15 
16 
17	<section class="aside-container row">    
18		<article class="main-article col-xs-12 col-sm-12 col-md-12"> 
19			<!-- Titulo del indicador --> 
20			<h2 class="ng-binding"> 
21				${Titulo.getData()} 
22			</h2> 
23			<!-- Texto superior del indicador --> 
24			<div class="ng-binding"> 
25				<p>${SUPCONTENT.getData()}</p> 
26			</div>    	 
27		</article>     
28	</section> 
29  
30	<#if infoUrlIndicador?has_content > 
31	    <!-- Grafico del indicador --> 
32	    <section class="aside-container row indicator-graph">  
33	        <article class="main-article col-xs-12 col-sm-12 col-md-12"> 
34	 		    <iframe src="${infoUrlIndicador}" width='100%' height='640px' style='border: none;overflow:hidden;'></iframe>  
35	 		</article> 
36		</section> 
37	</#if>	 
38 
39 
40	<section class="aside-container row">     
41		<article class="main-article col-xs-12 col-sm-12 col-md-12"> 
42			 
43			<!-- Dboixadera 20/11/2017 --> 
44			<!-- Se comenta la descarga de ficheros por peticion de la Caixa --> 
45			<!-- Van a revisar los datos que se muestran en el EXCEL y cuando los tengan validados, pediran descomentar este trozo de codigo -->  
46			<#if EXCEL.getData()?has_content > 
47				<p> 
48					<!-- Documentos descargables --> 
49					<div class="last-downloads">	 
50					 
51						<a href="${EXCEL.getData()}" target="_self" title='<@liferay.language key="observatoriosocial-download-excel-file"/>' type="submit" class="btn btn-download">			    		    				    		    				 
52							<div class="text"> 
53								<@liferay.language key="observatoriosocial-download-excel-file"/>    						 
54							</div> 
55							 
56							<#assign classFile = "fa-file-o"> 
57													 
58							<#if EXCEL.getData()?contains(".pdf") > 
59								<#assign classFile = "fa-file-pdf-o"> 
60							<#elseif EXCEL.getData()?contains(".xls") > 
61								<#assign classFile = "fa-file-excel-o"> 
62							<#elseif EXCEL.getData()?contains(".docx") > 
63								<#assign classFile = "fa-file-word-o">    						 
64							</#if>	     
65																									 
66							<div class="icon fa fa-2x ${classFile}"></div>  
67						</a>		    			 
68					</div> 
69				</p> 
70			</#if> 
71				 
72			<div class="ng-binding"> 
73				<!-- Texto inferior del indicador --> 
74				<#if POSTCONTENT.getData()?has_content >	         
75					<p>${POSTCONTENT.getData()}</p> 
76				</#if>		         
77			</div>    	 
78		</article> 	  
79	</section> 
80 
81	 
82<#assign assetEntryQueryService = objectUtil('com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil')> 
83 
84<#assign vocabularyIdTemaP = propsUtil.get("vocabulary.tematica.principal")?number /> 
85<#assign vocabularyIdTemaS = propsUtil.get("vocabulary.tematica.secundario")?number /> 
86<#assign vocabularyIdTipoC = propsUtil.get("vocabulary.tipo.contenido")?number /> 
87<#assign vocabularyIdTipoContenidoCategoryE = propsUtil.get("categoria.section.exclude") /> 
88															  
89<#assign categories = entry.getCategories() /> 
90<#assign categoriesPrincipal  = getCategories(categories vocabularyIdTemaP)> 
91<#assign categoriesSecundaria = getCategories(categories vocabularyIdTemaS)> 
92 
93<#assign newAllAssetInterestingCategoryIds = []> 
94<#list categoriesPrincipal as p > 
95    <#assign newAllAssetInterestingCategoryIds = newAllAssetInterestingCategoryIds + [p.getCategoryId()] > 
96</#list> 
97 
98<#list categoriesSecundaria as s > 
99    <#assign newAllAssetInterestingCategoryIds = newAllAssetInterestingCategoryIds + [s.getCategoryId()] > 
100</#list>				 
101 
102<#-- Tambien te puede interesar --> 
103<#assign assetEntryQuery = objectUtil('com.liferay.asset.kernel.service.persistence.AssetEntryQuery')>	 
104<#assign search =  assetEntryQuery.setClassName("com.liferay.journal.model.JournalArticle")>		 
105<#assign search = assetEntryQueryInteresting.setExcludeZeroViewCount(false) > 
106<#-- Ordenamos los resultados por el campo "prioridad" ascendente--> 
107<#assign search = assetEntryQueryInteresting.setOrderByCol1("priority") > 
108<#assign search = assetEntryQueryInteresting.setOrderByType1("ASC") > 
109<#-- Ordenamos los resultados por el campo "fecha de publicacion" descendente--> 
110<#assign search = assetEntryQueryInteresting.setOrderByCol2("publishDate") > 
111<#assign search = assetEntryQueryInteresting.setOrderByType2("DESC") > 
112<#assign search = assetEntryQueryInteresting.setStart(0) > 
113<#assign search = assetEntryQueryInteresting.setEnd(3)>		 
114				 
115<#assign search = assetEntryQueryInteresting.setAllCategoryIds(newAllAssetInterestingCategoryIds)> 
116 
117<#assign previewAuxInterestingIds = assetEntryQuery.getNotAnyCategoryIds()> 
118<#--Quitamos la tipologia "Seccio"--> 
119 
120<#assign newNotAllAssetInterestingCategoryIds = vocabularyIdTipoContenidoCategoryE?split(",")> 
121<#assign previewAuxInterestingIds = previewAuxInterestingIds + [newNotAllAssetInterestingCategoryIds[0]?number]> 
122 
123<#-- filtre --> 
124<#if !themeDisplay.isSignedIn()> 
125	<#assign categoriesPreview = [] />   
126	<#assign queryPreview =	assetCategoryLocalServiceUtil.dynamicQuery()/> 
127	<#assign VOID = queryPreview.add(staticUtil["com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"].eq("name", "Preview")) />		 
128	<#assign categoriesPreview = staticUtil["com.liferay.portal.kernel.service.UserLocalServiceUtil"].dynamicQuery(queryPreview, 0, 1)>		     
129	<#assign categoriaPreviewId = categoriesPreview[0].getCategoryId()> 
130	<#assign previewAuxInterestingIds = previewAuxInterestingIds + [categoriaPreviewId]>     
131</#if> 
132 
133<#assign search = assetEntryQueryInteresting.setNotAnyCategoryIds(previewAuxInterestingIds)> 
134 
135<#assign results = assetEntryQueryService.getEntries(assetEntryQueryInteresting)>				 
136		 
137<#assign assetEntryLocalService  = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
138 
139<#assign resultsInteresting = assetEntryLocalService.getEntries(assetEntryQueryInteresting)> 
140			 
141<#assign resultsInterestingArray = []> 
142 
143<#if resultsInteresting?has_content>				 
144	<#list resultsInteresting as resultsInterestingList > 
145		<#assign resultsInterestingArray = resultsInterestingArray + [resultsInterestingList] >				 
146	</#list>						 
147</#if> 
148 
149 
150<#if newAllAssetInterestingCategoryIds?size = 0> 
151	<#assign resultsInteresting = []> 
152</#if> 
153				 
154<#if resultsInteresting?has_content>		 
155	<section class="col-md-12 col-sm-12 col-xs-12 row section-article-relateds" style="margin-top: 30px;"> 
156	<h1 class="main-h1"><@liferay.language key="observatoriosocial.interesting.contents"/></h1> 
157		<section class="row summary_list_observatori">		 
158			 
159				<#list results as res>	 
160					<#assign tituloInteresting  = "" > 
161					<#assign imagenInteresting  = "" > 
162					<#assign contentInteresting = "" > 
163					<#assign yearInteresting    = "" > 
164					<#assign monthInteresting   = "" > 
165					<#assign friendlyUrlInteresting   = "" >					 
166					<#assign otherlinkInteresting   = "" > 
167					<#assign otherlinkInterestingNodes = []> 
168					<#assign otherlinkInterestingOnClick   = "" > 
169					<#assign otro   = "" > 
170					<!-- assets -->				 
171					<#assign assetRenderer = res.getAssetRenderer() > 
172					<#assign viewURL="">						 
173					<#assign articleInteresting = assetRenderer.getArticle() /> 
174					<#assign document = saxReaderUtil.read(articleInteresting.getContentByLocale(locale)) /> 
175					<#assign rootElement = document.getRootElement() /> 
176												 
177					<#assign tituloInteresting = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
178					<#assign displayDate = assetRenderer.getDisplayDate()?date?string["MMMM yyyy"]?replace("de ", "")?replace("d’", "")?cap_first />										                      
179        			<#assign contentInteresting = htmlUtil.escape(assetRenderer.getSummary()) /> 
180			 
181					<#list rootElement.elements() as dynamicElement>						 
182						<#if "GENERALIMAGE" == dynamicElement.attributeValue("name")> 
183							<#assign imagenInteresting = getImagePath(dynamicElement.element("dynamic-content").getText() dlService) />							 
184						</#if>						 
185						<#if "FRIENDLY_URL" == dynamicElement.attributeValue("name")> 
186							<#assign friendlyUrlInteresting = htmlUtil.escape(dynamicElement.element("dynamic-content").getText()) /> 
187						</#if>   
188						 
189						<#if "DOCUMENT" == dynamicElement.attributeValue("name")> 
190							<#assign documentInteresting = dynamicElement.element("dynamic-content").getText() /> 
191						</#if>	 
192						<#if "Otro_Enlace" == dynamicElement.attributeValue("name")> 
193			                <#assign otro = dynamicElement.element("dynamic-content").getText() /> 
194			                <#assign onclick = getSingleValue(otro,dynamicElement, "onclick") />                 
195			            </#if>						 
196					</#list>		 
197					 
198					<#assign viewURLInteresting = getViewURL2(friendlyUrlInteresting, otro, assetRenderer.getUrlTitle())>						 
199					 
200					<!-- categories --> 
201				    <#assign categoriesInteresting = res.getCategories() />                
202				    <#assign categoriesTipoContenidoInteresting=getCategories(categoriesInteresting,propsUtil.get("vocabulary.tipo.contenido")) /> 
203				    <#assign categoriesTematicaPrincipal=getCategories(categoriesInteresting,propsUtil.get("vocabulary.tematica.principal")) /> 
204				    <#assign categoriesSecundariesInteresting=getCategories(categoriesInteresting,propsUtil.get("vocabulary.tematica.secundario")) /> 
205        																								 
206					<div class="col-md-4 col-sm-4 col-xs-12"> 				 
207						<#list categoriesTipoContenidoInteresting as category >		         
208							<#assign vocabularyId = propsUtil.get("vocabulary.tipo.contenido") />											   
209							<#if category.getVocabularyId() == vocabularyId?number> 
210								<p class="category">${category.getTitle(locale)}</p>                 
211							</#if>							 
212						</#list> 
213						 
214						<a href="${viewURLInteresting}" title="${tituloInteresting}" class="pushtag"> 
215							<img src="${imagenInteresting}" alt="${tituloInteresting}"/> 
216						</a> 
217					 
218						<a href="${viewURLInteresting}" title="${tituloInteresting}" class="pushtag" > 
219							<h2 class="header">${tituloInteresting}</h2> 
220						</a> 																 
221													 
222						<div class="tags-and-date"> 
223						 
224							<#list categoriesTematicaPrincipal as category > 
225			                <#assign vocabularyId = propsUtil.get("vocabulary.tematica.principal") /> 
226			                    <#if category.getVocabularyId() == vocabularyId?number> 
227			                        <#assign enllacCategory=""> 
228			                        <#assign assetCategoryProperty = assetCategoryPropertyLocalService.getCategoryProperty(category.getCategoryId(), "layout")/> 
229							        <#assign layoutCategoria = layoutLocalService.fetchLayoutByFriendlyURL(themeDisplay.getSiteGroupId(), false, "/"+assetCategoryProperty.getValue())>	 
230							    	<#assign enllacCategory = portalUtil.getLayoutFullURL(layoutCategoria, themeDisplay)>  
231			                        <span class="tags"> 
232									    <a href="${enllacCategory}" title="${category.getTitle(locale)}" >${category.getTitle(locale)}</a> 
233							        </span> 
234			                    </#if> 
235			            	</#list> 
236							 
237							<#list categoriesSecundariesInteresting as category> 
238				            	<#assign enllacCategory=""> 
239				                <#assign assetCategoryProperty = assetCategoryPropertyLocalService.getCategoryProperty(category.getCategoryId(), "layout")/> 
240								<#assign layoutCategoria = layoutLocalService.fetchLayoutByFriendlyURL(themeDisplay.getSiteGroupId(), false, "/"+assetCategoryProperty.getValue())>	 
241								<#assign enllacCategory = portalUtil.getLayoutFullURL(layoutCategoria, themeDisplay)> 
242				            	<span class="tags"> 
243									<a href="${enllacCategory}" title="${category.getTitle(locale)}" >${category.getTitle(locale)}</a> 
244								</span>  
245				            </#list> 
246							 
247							<span class="posted-on">						 
248								<time datetime="${displayDate}">${displayDate}></time> 
249							</span> 
250								 
251						</div> 
252						<p class="summary">${contentInteresting}</p>						 
253					</div>				 
254				</#list>				 
255			</#if> 
256		</section> 
257	</section>