An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1840.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1840 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@17fa8647"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign personaJournalArticle = journ...  [in template "20097#20123#INTESTAZIONE" at line 69, column 57]
----
1<#assign dlAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") /> 
2<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
3<#assign dlURLHelper = serviceLocator.findService("com.liferay.document.library.util.DLURLHelper") /> 
4<#assign journalLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5 
6<#assign articleId = .vars['reserved-article-id'].data /> 
7<#assign journalArticle = journalLocalService.getArticle(groupId, articleId) /> 
8<#assign ddmStructureKey = journalArticle.getDDMStructureKey() /> 
9<#assign themeIconsPath = themeDisplay.getPathThemeImages() + "/assets/images/icons.svg" /> 
10 
11<div class="row"> 
12	<div class="col-md-6"> 
13		<div class="article-header__title">${titolo.getData()}</div> 
14		<div class="article-header__abstract">${abstract.getData()}</div> 
15 
16        <#if ddmStructureKey == "INTESTAZIONE_TEMI"> 
17 
18			<#if themeDisplay.isSignedIn()> 
19			    <#assign crmId = getterUtil.getString(themeDisplay.getUser().getExpandoBridge().getAttribute("crm-id", false), "")?string /> 
20				<#assign bulkEmailTypeId = getterUtil.getString(themeDisplay.getLayout().getExpandoBridge().getAttribute("topic-id", false), "") /> 
21				<#if crmId?? && crmId?has_content && bulkEmailTypeId?? && bulkEmailTypeId?has_content> 
22					<#assign topicId = aireWidgetTemplateTool.checkCRMThemeForUser(crmId,bulkEmailTypeId)?string /> 
23					<div class="unindustria-subscribe d-flex order-1 order-md-2" id="subscribe-topic"> 
24							<#if topicId?? && topicId?has_content> 
25								<a href="javascript: void(0);" title="Segui questo tema" id="btn-unsubscribe" class="unindustria-subscribe__link d-flex flex-wrap align-items-center" data-bulkEmailTypeId="${bulkEmailTypeId}"> 
26								<svg class="ico-svg unsubscribe"> 
27									<use xlink:href="${themeIconsPath}#check-light"></use> 
28								</svg> 
29								<svg class="ico-svg subscribe d-none"> 
30									<use xlink:href="${themeIconsPath}#plus-light"></use> 
31								</svg> 
32								<span class="unindustria-subscribe__label unsubscribe" data-topicid="${topicId}"><@liferay.language key="aire.already.follow.theme" /></span> 
33								<span class="unindustria-subscribe__label subscribe d-none" data-crmid="${crmId}"><@liferay.language key="aire.follow.theme" /></span> 
34							<#else> 
35								<a href="javascript: void(0);" title="Segui questo tema"  id="btn-subscribe" class="unindustria-subscribe__link d-flex flex-wrap align-items-center" data-bulkEmailTypeId="${bulkEmailTypeId}"> 
36								<svg class="ico-svg unsubscribe d-none"> 
37									<use xlink:href="${themeIconsPath}#check-light"></use> 
38								</svg> 
39								<svg class="ico-svg subscribe"> 
40									<use xlink:href="${themeIconsPath}#plus-light"></use> 
41								</svg> 
42								<span class="unindustria-subscribe__label unsubscribe d-none" data-topicid=""><@liferay.language key="aire.already.follow.theme" /></span> 
43								<span class="unindustria-subscribe__label subscribe" data-crmid="${crmId}"><@liferay.language key="aire.follow.theme" /></span> 
44							</#if> 
45						</a> 
46						<div class="unindustria-subscribe__info"> 
47							<span> 
48								<svg class="ico-svg"> 
49									<use xlink:href="${themeIconsPath}#info-circle-light"></use> 
50								</svg> 
51							</span> 
52							<div class="unindustria-subscribe__tooltip"><@liferay.language key="aire.subscribe.tooltip" /></div> 
53						</div> 
54					</div> 
55				</#if> 
56			</#if> 
57 
58    		<div class="unindustria-riferimenti d-flex align-items-center"> 
59				<#if vai_ai_contatti_di_riferimento.getData()?has_content && vai_ai_contatti_di_riferimento.getData() != ""> 
60					<div> 
61						<a href="${vai_ai_contatti_di_riferimento.getData()}" title="<@liferay.language key='aire.go.to.contacts.header.temi' /> ${titolo.getData()}" class="unindustria-riferimenti__link"> 
62							<@liferay.language key="aire.go.to.contacts" /> 
63						</a> 
64					</div> 
65				</#if> 
66				<#if contatti_di_riferimento.getSiblings()?has_content> 
67					<div class="d-flex"> 
68						<#list contatti_di_riferimento.getSiblings() as cur_contatti_di_riferimento> 
69							<#assign personaJournalArticle = journalLocalService.getArticle(groupId, cur_contatti_di_riferimento.getData()) /> 
70 
71							<#assign personaXml = saxReaderUtil.read(personaJournalArticle.getContent()) /> 
72							<#assign nome = personaXml.valueOf("//dynamic-element[@name='nome']/dynamic-content/text()") /> 
73							<#assign cognome = personaXml.valueOf("//dynamic-element[@name='cognome']/dynamic-content/text()") /> 
74							<#assign immagineBadge = personaXml.valueOf("//dynamic-element[@name='immagine_badge']/dynamic-content/text()") /> 
75							<#assign immagineContatto = "" /> 
76 
77							<#if immagineBadge != ""> 
78								<#assign imageJSON = immagineBadge?eval /> 
79								<#assign fileEntryId =  imageJSON['fileEntryId'] /> 
80								<#attempt> 
81									<#assign dlFileEntry = dlFileEntryLocalService.fetchDLFileEntry(fileEntryId?number) /> 
82									<#-- check for DLFileEntry in trash --> 
83									<#if dlFileEntry?? && dlFileEntry?has_content && !dlFileEntry.isInTrash() && !dlFileEntry.isInTrashContainer()> 
84										<#assign fileEntry = dlAppLocalService.getFileEntry(fileEntryId?number) /> 
85										<#if fileEntry?? && fileEntry?has_content> 
86											<#assign fileVersion = fileEntry.getFileVersion() /> 
87											<#assign immagineContatto = dlURLHelper.getPreviewURL(fileEntry, fileVersion, themeDisplay, "") /> 
88										</#if> 
89									</#if> 
90								<#recover> 
91                          		</#attempt> 
92							</#if> 
93 
94							<#if immagineContatto?? && immagineContatto != ""> 
95								<div class="unindustria-riferimenti__avatar text-center"> 
96									<img alt="${nome} ${cognome}" data-fileentryid="${fileEntryId}" src="${immagineContatto}" class="unindustria-riferimenti__img"> 
97								</div> 
98							<#else> 
99								<div class="unindustria-riferimenti__avatar text-center"> 
100									<span class="unindustria-riferimenti__img text-uppercase no-image">${nome[0]}${cognome[0]}</span> 
101								</div> 
102							</#if> 
103						</#list> 
104					</div> 
105				</#if> 
106    		</div> 
107    	</#if> 
108	</div> 
109 
110    <div class="col-md-6"> 
111		<#if (immagine.getData())?? && immagine.getData() != ""> 
112			<img alt="${immagine.getAttribute("alt")}" data-fileentryid="${immagine.getAttribute("fileEntryId")}" src="${immagine.getData()}" class="article-header__img" /> 
113		</#if> 
114	</div> 
115</div> 
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1840.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1840 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@17fa8647"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign personaJournalArticle = journ...  [in template "BOX-CONTATTI" at line 11, column 9]
	- Reached through: #include "${templatesPath}/BOX-CONTATTI"  [in template "A-CHI-RIVOLGERSI" at line 46, column 29]
	- Reached through: #include "${templatesPath}/A-CHI-RIVO...  [in template "20097#20123#DETTAGLIO-CONTENUTO-GENERICO" at line 115, column 5]
----
1<#include "${templatesPath}/MACRO-DETAIL-PAGE" /> 
2 
3<#assign reserved = false /> 
4<#if isLoggedIn != true && riservato.getData() == 'yes'> 
5    <#assign reserved = true /> 
6</#if> 
7 
8<div class="webcontent-detail <#if reserved == true>webcontent-detail--reserved</#if>"> 
9    <div class="container"> 
10        <div class="row"> 
11            <nav class="col-md-4"> 
12                <div class="webcontent-detail__nav"> 
13                    <ul> 
14                    <#list titolo_paragrafo.getSiblings() as cur_titolo> 
15                        <#if cur_titolo.getData() != ""> 
16                            <li><a href="#section-${cur_titolo?counter}">${cur_titolo.getData()}</a></li> 
17                        </#if> 
18                    </#list> 
19                    <#if video.getSiblings()[0].getData() != ""> 
20                        <li><a href="#section-video">${languageUtil.get(locale, "aire.section.video")}</a></li> 
21                    </#if> 
22                    <#if photo_gallery.getSiblings()[0].getData() != ""> 
23                        <li><a href="#section-gallery">${languageUtil.get(locale, "aire.section.gallery")}</a></li> 
24                    </#if> 
25                    <#if documenti_allegati.getSiblings()[0].getData() != ""> 
26                        <li><a href="#section-allegati">${languageUtil.get(locale, "aire.section.documents")}</a></li> 
27                    </#if> 
28                    </ul> 
29                    <#if tags?has_content> 
30                    <div class="webcontent-detail__box"> 
31                        <div class="webcontent-detail__box-title">${languageUtil.get(locale, "aire.section.tag")}</div> 
32                        <div> 
33                        <#list tags as tag> 
34                            <a href="/ricerca?tag=${tag.getTagId()}" title="${tag.getName()}" class="webcontent-detail__tag">#${tag.getName()}</a> 
35                        </#list> 
36                        </div> 
37                    </div> 
38                    </#if> 
39                </div> 
40            </nav> 
41            <div class="col-md-8 <#if reserved == true>col-reserved</#if>"> 
42                <#if reserved == true><#include "${templatesPath}/MODALE_CONTENUTO_RISERVATO" /></#if> 
43                <div class="webcontent-detail__main"> 
44                  <#if reserved == false> 
45                    <#list titolo_paragrafo.getSiblings() as cur_titolo> 
46                        <section id="section-${cur_titolo?counter}" class="webcontent-detail__section"> 
47                            <h2 class="webcontent-detail__section-title">${cur_titolo.getData()}</h2> 
48                            ${cur_titolo.descrizione_paragrafo.getData()} 
49                        </section> 
50                    </#list> 
51                    <#if video.getSiblings()[0].getData() != ""> 
52                        <section id="section-video" class="webcontent-detail__section"> 
53                            <h2 class="webcontent-detail__section-title">${languageUtil.get(locale, "aire.section.video")}</h2> 
54                            <#list video.getSiblings() as cur_video> 
55                                <#if cur_video.getData()?? && cur_video.getData() != ""> 
56                                    <div class="article-detail__video iframe-responsive"> 
57                                        <#if cur_video.videoType.getData() == "youtubeVideo"> 
58                                            <iframe src="${cur_video.getData()}" width="640" height="362" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="allowfullscreen" loading="lazy">..</iframe> 
59                                        <#else> 
60                                            <iframe src="${cur_video.getData()}" width="640" height="362" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="allowfullscreen" loading="lazy">..</iframe> 
61                                        </#if> 
62                                    </div> 
63                                </#if> 
64                            </#list> 
65                        </section> 
66                    </#if> 
67                    <#if photo_gallery.getSiblings()[0].getData() != ""> 
68                        <section id="section-gallery" class="webcontent-detail__section"> 
69                            <h2 class="webcontent-detail__section-title">${languageUtil.get(locale, "aire.section.gallery")}</h2> 
70                            <div class="slider slider-photogallery-detail"> 
71                            <#list photo_gallery.getSiblings() as photo> 
72                                <div> 
73                                <img src="${photo.getData()}" loading="lazy" class="article-detail__img" alt="${languageUtil.get(locale, "aire.image.alt")} ${photo?counter}" /> 
74                                </div> 
75                            </#list> 
76                            </div> 
77                        </section> 
78                    </#if> 
79                    <#if documenti_allegati.getSiblings()[0].getData() != ""> 
80                        <section id="section-allegati" class="webcontent-detail__section"> 
81                        <h2 class="webcontent-detail__section-title">${languageUtil.get(locale, "aire.section.documents")}</h2> 
82                            <#list documenti_allegati.getSiblings() as allegato> 
83                                <#if allegato.getData() != ""> 
84                                    <@mostraAllegato allegato /> 
85                                    <#if allegato.titolo_doc.getData() != ""> 
86                                        <#assign titoloAllegato = allegato.titolo_doc.getData()> 
87                                    <#else> 
88                                        <#assign titoloAllegato = allegatoTitle> 
89                                    </#if>									 
90                                    <a href="${fileEntryDownloadURL}" title="${titoloAllegato}" class="webcontent-detail__attachment d-flex align-items-end w-100"> 
91                                        <svg class="ico-svg"> 
92                                            <use xlink:href="${themeIconsPath}#arrow-to-bottom-light"></use> 
93                                        </svg> 
94                                        <span>${titoloAllegato}</span> 
95                                    </a> 
96                                </#if> 
97                            </#list> 
98                        </section> 
99                    </#if> 
100                  <#else> 
101                    <#assign primo_titolo = titolo_paragrafo.getSiblings()[0] /> 
102                    <#if primo_titolo.getData()?has_content> 
103                        <section id="section-1" class="webcontent-detail__section"> 
104                            <h2 class="webcontent-detail__section-title">${primo_titolo.getData()}</h2> 
105                            ${primo_titolo.descrizione_paragrafo.getData()} 
106                        </section> 
107                    </#if> 
108                  </#if> 
109                </div> 
110            </div> 
111        </div> 
112    </div> 
113</div> 
114<#if reserved == false> 
115    <#include "${templatesPath}/A-CHI-RIVOLGERSI" /> 
116</#if>