S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing: ==> AssetVocabularyLocalService.fetchGroupVocabulary(groupIdArt, 'slider card') [in template "20098#20124#UB_TPL_DETALLE_NOVEDAD_GENERICA" at line 28, column 57] ---- 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 vocabularySlider = AssetVocab... [in template "20098#20124#UB_TPL_DETALLE_NOVEDAD_GENERICA" at line 28, column 29] ----
1<#assign
2 displayDateStr = .vars['reserved-article-display-date'].data
3 displayDate = dateUtil.parseDate("EEE, dd MMM yyy HH:mm:ss Z", displayDateStr, localeUtil.getDefault())
4/>
5<div class="ub_tpl_detalle_novedad grayband-detail">
6 <div class="container-xl grayband-detail__title">
7 <h1 class="detalle-title mt-3 mt-xl-0">${titulo.getData()}</h1>
8 </div>
9 <div class="grayband-detail mb-5">
10 <div class="grayband-detail__header box-with-category">
11 <div class="container-xl">
12 <div class="row">
13 <#if (imagen.getData())?? && imagen.getData() != "">
14 <div class="col-auto col-lg-4 mx-auto mx-sm-0 photo">
15 <div class="grayband-detail__image">
16 <img alt="${imagen.getAttribute("alt")}" data-fileentryid="${imagen.getAttribute("fileEntryId")}" src="${imagen.getData()}" />
17 </div>
18 </div>
19 <div class="col-sm pl-lg-5 info detalle-container">
20 <#else>
21 <div class="col-sm pl-lg-5 info detalle-container">
22 </#if>
23 <div class="detalle">
24 <#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
25 <#assign journalArticle = JournalArticleLocalService.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data) />
26 <#assign groupIdArt = journalArticle.getGroupId() />
27 <#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") />
28 <#assign vocabularySlider = AssetVocabularyLocalService.fetchGroupVocabulary(groupIdArt, 'slider card') />
29 <#assign sliderVocabularyERC = vocabularySlider.externalReferenceCode />
30 <#assign categoriesDisplayedCount = 0 />
31
32 <#assign journalArticleId = .vars['reserved-article-id'].data>
33 <#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")>
34 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
35 <#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId)/>
36 <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey)>
37 <#assign categoryList = assetEntry.getCategories()>
38 <#assign vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService")>
39 <span class="category">
40 <#list categoryList as category>
41 <#assign vocabulary = vocabularyService.getVocabulary(category.getVocabularyId()) />
42
43 <#assign curVocabularyERC = vocabulary.getExternalReferenceCode() />
44 <#assign isSliderCategory = sliderVocabularyERC == curVocabularyERC />
45 <#assign isVocabularyVisible = vocabulary.visibilityType == 0>
46 <#if !isSliderCategory && isVocabularyVisible>
47 ${(categoriesDisplayedCount >= 1)?then("| "+category.getTitle(locale, true),category.getTitle(locale, true))}
48 <#assign categoriesDisplayedCount = categoriesDisplayedCount + 1 />
49 </#if>
50
51 </#list>
52 </span>
53 <div class="title-container">
54 <h3 class="grayband-detail__name"> <span class="detalle-date">${dateUtil.getDate(displayDate, "dd/MM/yyyy", locale)}</span></h3>
55 </div>
56 <#if (descripcion.getData())??>
57 <div class="detalle-description">
58 <#assign summary = .vars['reserved-article-description'].data />
59 <#if summary != "">
60 <p class="summary">${summary}</p>
61 </#if>
62 ${descripcion.getData()}
63 </div>
64 </#if>
65 </div>
66 </div>
67 </div>
68 </div>
69 </div>
70 </div>
71</div>