Festes | Ajuntament de València - València
S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing: ==> serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi") [in template "20115#20151#181352" at line 8, column 26] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign commonUtilsApi = serviceLocat... [in template "20115#20151#181352" at line 8, column 1] ----
1<#if titularBusqueda??>
2 <h2 class="bloque_titulo">${titularBusqueda.getData()}</h2>
3</#if>
4${bloques.getData()}
5
6<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
7<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") />
8<#assign commonUtilsApi =serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi")/>
9<#assign portletRequestModel = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse) />
10
11<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
12<#assign journalId = .vars['reserved-article-id'].data/>
13
14<#attempt>
15 <#assign article = JournalArticleLocalService.fetchArticle( groupId ,journalId) >
16<#recover>
17</#attempt>
18
19<#if article??>
20<#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" >
21<#assign articleEntry = AssetEntryLocalService.getEntry(journalArticleClassname, article.getResourcePrimKey())>
22<#assign articleRelatedEntries = AssetLinkLocalService.getDirectLinks(articleEntry.getEntryId()) >
23
24<#if articleRelatedEntries?has_content>
25
26 <#assign relatedTemplateKey = "38113" >
27
28 <#list articleRelatedEntries as relatedAsset>
29 <#assign relatedEntry = AssetEntryLocalService.getEntry(relatedAsset.getEntryId2()) >
30 <#assign entryClassPK = relatedEntry.getClassPK() >
31
32 <#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" >
33 <#if journalArticleClassname==relatedEntry.getClassName()>
34 <#assign relatedArticle = JournalArticleLocalService.fetchLatestArticle(entryClassPK) >
35 <#if relatedArticle.getDDMTemplateKey() == relatedTemplateKey >
36 <#assign relatedArticleContent = JournalArticleLocalService.getArticleContent(relatedArticle, relatedArticle.getDDMTemplateKey(), "view", locale, portletRequestModel,themeDisplay)>
37
38 <div class="row">
39 <#assign urlNew = commonUtilsApi.replaceUrlWithUID("${themeDisplay.getURLCurrent()}",relatedArticleContent)/>
40 <div class="col-12 pb-3" >${urlNew}</div>
41 </div>
42
43 </#if>
44 </#if>
45 </#list>
46</#if>
47</#if>
48<style>
49.no-padding{
50 padding-right: -15px;
51 padding-left: -15px;
52 }
53</style>