Ayuntamiento | Ayuntamiento de Valencia - València
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi") [in template "20115#20151#38119" at line 4, 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#38119" at line 4, column 1] ----
1<#if titularBusqueda??>
2 <h2 class="bloque_titulo">${titularBusqueda.getData()}</h2>
3</#if>
4<#assign commonUtilsApi =serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi")/>
5
6<#assign bloquesNew = commonUtilsApi.replaceUrlWithUID(themeDisplay.getURLCurrent(),bloques.getData())/>
7${bloquesNew}
8
9<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
10<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") />
11
12
13<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
14<#assign journalId = .vars['reserved-article-id'].data/>
15
16<#attempt>
17 <#assign article = JournalArticleLocalService.fetchArticle( groupId ,journalId) >
18<#recover>
19</#attempt>
20
21<#if article??>
22<#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" >
23<#assign articleEntry = AssetEntryLocalService.getEntry(journalArticleClassname, article.getResourcePrimKey())>
24<#assign articleRelatedEntries = AssetLinkLocalService.getDirectLinks(articleEntry.getEntryId()) >
25
26<#if articleRelatedEntries?has_content>
27
28 <#assign relatedTemplateKey = "38113" >
29
30 <#list articleRelatedEntries as relatedAsset>
31 <#assign relatedEntry = AssetEntryLocalService.getEntry(relatedAsset.getEntryId2()) >
32 <#assign entryClassPK = relatedEntry.getClassPK() >
33
34 <#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" >
35 <#if journalArticleClassname==relatedEntry.getClassName()>
36 <#assign relatedArticle = JournalArticleLocalService.fetchLatestArticle(entryClassPK) >
37 <#if relatedArticle.getDDMTemplateKey() == relatedTemplateKey >
38 <#assign portletRequestModel = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse) />
39 <#assign relatedArticleContent = JournalArticleLocalService.getArticleContent(relatedArticle, relatedArticle.getDDMTemplateKey(), "view", locale,portletRequestModel, themeDisplay)>
40
41 <div class="bloque-cuadro">
42 <h3 class="titulo-bloque"><@liferay.language key="informacion_adicional" /></h3>
43 <#assign urlNew = commonUtilsApi.replaceUrlWithUID(themeDisplay.getURLCurrent(),relatedArticleContent)/>
44 <div class="col-12 pb-3" >${urlNew}</div>
45 </div>
46
47
48 </#if>
49 </#if>
50 </#list>
51</#if>
52</#if>