Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy93.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy93 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl@e3ed82"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = DLFileEntryLocalS...  [in template "10154#10192#11263370" at line 125, column 65]
----
1<#setting locale="it_IT"> 
2 
3<#setting time_zone=timeZone.ID> 
4 
5<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] /> 
6<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
7<#assign DLFileEntryLocalServiceUtil =  serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />  
8 
9<#assign journalArticleId = .vars['reserved-article-id'].data/>  
10<#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) /> 
11<#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) /> 
12 
13<#assign assetRenderer = entry.getAssetRenderer() /> 
14<#assign entryTitle = htmlUtil.escape(entry.getTitle(locale)?html) /> 
15 
16<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
17<#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(entry.entryId) /> 
18 
19<#assign siteBaseURL = themeDisplay.getPortalURL() />  
20<#assign urlSocial = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
21 
22<#assign docXml = saxReaderUtil.read(article.getContent()) /> 
23 
24<#assign rivoltoAChi = [] /> 
25<#assign temi = [] /> 
26 
27<#list categoryList as category> 
28    <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
29    <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) /> 
30    <#if assetVocabulary.getName() == "Temi"> 
31        <#assign temi = temi + [category] /> 
32    <#elseif assetVocabulary.getName() == "Rivolto a chi"> 
33        <#assign rivoltoAChi = rivoltoAChi + [category] /> 
34    </#if> 
35</#list> 
36 
37<#list temi as category> 
38    <#if category.getParentCategory()??> 
39        <#assign child = category.getName()/> 
40    <#else> 
41        <#assign parent = category.getName()/> 
42    </#if> 
43</#list> 
44 
45<style> 
46.header-title{ 
47    display:none; 
48
49.header-back-to{ 
50    display:none; 
51
52 
53.hide-content{ 
54    visibility:hidden; 
55    height : 0; 
56    padding: 0px !important; 
57
58</style> 
59 
60	<#assign iconClass = "far fa-bell"/> 
61	<#if TipologiaAggiornamento?? && TipologiaAggiornamento.getData() != ""> 
62		<!-- Icona e testo GENERICO --> 
63		<#if TipologiaAggiornamento.getData()?upper_case == 'GENERICO'> 
64			<#assign iconClass = "far fa-bell"/> 
65		</#if> 
66		<!-- Icona e testo AVVISO --> 
67		<#if TipologiaAggiornamento.getData()?upper_case == 'AVVISO'> 
68			<#assign iconClass = "far fa-bell"/> 
69		</#if> 
70		<!-- Icona e testo PROGETTO --> 
71		<#if TipologiaAggiornamento.getData()?upper_case == 'PROGETTO'> 
72			<#assign iconClass = "far fa-ruler-triangle"/> 
73		</#if> 
74		<!-- Icona e testo PUBBLICAZIONE --> 
75		<#if TipologiaAggiornamento.getData()?upper_case == 'PUBBLICAZIONE'> 
76			<#assign iconClass = "far fa-list-alt"/> 
77		</#if> 
78		<!-- Icona e testo DELIBERA --> 
79		<#if TipologiaAggiornamento.getData()?upper_case == 'DELIBERA'> 
80			<#assign iconClass = "far fa-newspaper"/> 
81		</#if> 
82	</#if> 
83<div class="rt-subheader rt-subheader--no-bg rt-subheader--updates"> 
84    <div class="rt-subheader__wrapper"> 
85        <div class="rt-container"> 
86            <div class="rt-subheader__content"> 
87				 
88 
89                <h2 class="rt-subheader__title">${.vars['reserved-article-title'].data} <@getEditIcon /> </h2> 
90                <div class="rt-subheader__text">${entry.getSummary(locale)}</div> 
91                 
92            </div> 
93        </div> 
94    </div> 
95</div>     
96 
97<section class="container rt-content" id="content"> 
98    <div class="row"> 
99        <div class="col-md-8 portlet-column portlet-column-first" id="column-2"> 
100            <div class="rt-page__content rt-page-content--left"> 
101                <div class="rt-page__content-text"> 
102                    <#if TitoloSecondario?? && TitoloSecondario?has_content && TitoloSecondario.getData() != "" && TitoloSecondario.getData()?trim != ""> 
103                        <div class="rt-page__content-emphasis"> 
104                            ${TitoloSecondario.getData()} 
105                        </div>     
106                    </#if> 
107 
108					<#assign fileUrl = "" /> 
109 
110					<#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") /> 
111					<#if Immagine?? && Immagine != ""> 
112						<#assign json = jsonFactoryUtil.createJSONObject(Immagine) /> 
113 
114						<#assign nameImg = json.getString("name") /> 
115						<#assign fileEntryId = json.getLong("fileEntryId") /> 
116						<#assign altImg = json.getString("alt") /> 
117						<#assign uuiD = json.getString("uuid") /> 
118						<#assign groupId = json.getLong("groupId") /> 
119						 
120						<#if fileEntryId != 0> 
121							<#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
122							<#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
123						<#else> 
124							<#if groupId != 0 && uuiD != ""> 
125								<#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
126															 
127								<#if fileEntry?? > 
128									<#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
129								</#if> 
130							</#if> 
131													 
132						</#if> 
133					</#if> 
134 
135					<#if fileUrl?? && fileUrl != ""> 
136						<img style="float:left; margin-right: 10px; width:294px;" alt="immagine articolo" src="${fileUrl?html}" /> 
137					</#if> 
138 
139                    <#if Testo??> 
140                        ${Testo.getData()?remove_beginning("<p>&nbsp;</p>")} 
141                    </#if> 
142                </div> 
143            </div> 
144 
145			<div class="rt-update-informations"> 
146				<div class="rt-update-informations__row"> 
147					<div class="rt-update-informations__info rt-update-informations__info--updated"> 
148						<i aria-hidden="true" class="far fa-calendar-edit"></i> 
149						<div class="rt-update-informations__info-label">Pubblicato il:</div> 
150						<div class="rt-update-informations__info-value"><strong>${entry.publishDate?string["dd.MM.yyyy"]}</strong></div> 
151					</div> 
152 
153					<div class="rt-update-informations__info rt-update-informations__info--id"> 
154							<i aria-hidden="true" class="far fa-hashtag"></i> 
155						<div class="rt-update-informations__info-label">Article ID:</div> 
156						<div class="rt-update-informations__info-value"><strong>${article.getArticleId()}</strong></div> 
157					</div> 
158				</div> 
159			</div> 
160 
161			<div class="rt-btn-wrapper rt-btn-wrapper--right-align"> 
162				<div class="a2a_kit a2a_kit_size_32 a2a_default_style" data-a2a-title="${.vars['reserved-article-title'].data?html}"> 
163					<a class="a2a_button_facebook"></a> 
164					<a class="a2a_button_twitter"></a> 
165					<a class="a2a_button_email"></a> 
166					<a class="a2a_button_whatsapp"></a> 
167					<a class="a2a_button_linkedin"></a> 
168				</div> 
169			</div> 
170 
171        </div> 
172 
173        <div class="col-md-4 portlet-column portlet-column-last" id="column-3">         
174            <div class="rt-sidebar-widget rt-sidebar-widget--print"> 
175                <a class="rt-sidebar-widget__button-print" onclick="window.print();" href="javascript:void(0);" title="Stampa l'articolo"> 
176					<i aria-hidden="true" class="far fa-print"></i> 
177					<span>Stampa l'articolo</span>	 
178				</a> 
179            </div> 
180        </div> 
181 
182            
183        <@getLinkAndAllegati /> 
184		 
185    </div> 
186 
187</section> 
188 
189 
190<#macro getLinkAndAllegati> 
191	<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
192	<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
193	<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
194	 
195	<#assign currentArticle = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
196	<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
197	<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
198	<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
199	<#assign currentArticleRelatedLinks = assetLinkLocalService.getLinks(currentArticleAssetEntryId) /> 
200 
201	<#assign hasAllegato = "false" /> 
202	<#assign hasLink = "false" /> 
203	<#if currentArticleRelatedLinks?? && currentArticleRelatedLinks?has_content> 
204 
205		<#list currentArticleRelatedLinks as related_entry> 
206			<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
207			<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
208			<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
209 
210			<#if relatedAssetEntry.getClassName() == 'com.liferay.document.library.kernel.model.DLFileEntry' > 
211				<#assign hasAllegato = "true" /> 
212			<#elseif relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' > 
213				<#assign hasLink = "true" /> 
214			</#if> 
215		</#list> 
216	</#if> 
217 
218	<#if (hasLink == "true") || (hasAllegato == "true")> 
219		<div class="rt-page__content"> 
220		<section class="rt-section rt-section--box rt-section--box-col rt-section--box-col-2" aria-label="Sezione link e allegati"> 
221			<div class="rt-section-title-wrapper"> 
222				<h2 class="rt-section-title">Link e allegati</h2> 
223			</div> 
224			<div class="rt-section__wrapper"> 
225				 
226				<#if hasLink == "true"> 
227					<#list currentArticleRelatedLinks as related_entry> 
228						<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
229						<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
230						<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
231 
232						<#if (relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle') && (related_entry.getEntryId1() == entry.getEntryId() )> 
233							<#assign relatedArticle = JournalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
234							<#if relatedArticle?? && relatedArticle != ""> 
235								<div class="rt-box rt-box--link"> 
236									<div class="rt-box__header"> 
237										<div class="rt-box__wrapper"> 
238											<div class="rt-box__title"> 
239												<a target="_blank" href="/-/${relatedArticle.getUrlTitle()}" aria-label="Vedi ${relatedArticle.getTitle()}" title="Vedi ${relatedArticle.getTitle()}"> 
240													${relatedArticle.getTitle()} 
241												</a> 
242											</div> 
243										</div> 
244 
245										<div class="rt-box__icon"> 
246											<i aria-hidden="true" class="far fa-link"></i> 
247										</div> 
248									</div> 
249								</div> 
250							</#if> 
251						</#if> 
252					</#list> 
253				</#if> 
254 
255				<#if hasAllegato == "true"> 
256					<#list currentArticleRelatedLinks as related_entry> 
257						<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
258						<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
259						<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
260						<#assign relatedAssetEntryClassUuid = relatedAssetEntry.getClassUuid() /> 
261						<#assign relatedAssetEntryGroupId = relatedAssetEntry.getGroupId() /> 
262 
263						<#if (relatedAssetEntry.getClassName() == 'com.liferay.document.library.kernel.model.DLFileEntry') && (related_entry.getEntryId1() == entry.getEntryId() ) > 
264							 
265							<#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(relatedAssetEntryClassUuid,relatedAssetEntryGroupId) /> 
266							 
267							<#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() /> 
268							<#if fileEntry?? && fileUrl != ""> 
269								<div class="rt-box rt-box--link"> 
270									<div class="rt-box__header"> 
271										<div class="rt-box__wrapper"> 
272											<div class="rt-box__title"> 
273												<a target="_blank" href="${fileUrl}" aria-label="Vedi ${fileEntry.getTitle()}" title="Vedi ${fileEntry.getTitle()}"> 
274													${fileEntry.getTitle()} 
275												</a> 
276											</div> 
277										</div> 
278 
279										<div class="rt-box__icon"> 
280											<i aria-hidden="true" class="far fa-download"></i> 
281										</div> 
282									</div> 
283								</div> 
284							</#if> 
285						</#if> 
286					</#list> 
287				</#if> 
288			</div> 
289		</section> 
290		</div> 
291	</#if> 
292 
293</#macro> 
294 
295 
296<#macro getEditIcon> 
297	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
298        <#if renderResponse?? > 
299            <#assign redirectURL = renderResponse.createRenderURL() /> 
300 
301            ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")} 
302            ${redirectURL.setWindowState("pop_up")} 
303 
304            <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
305 
306            <#if validator.isNotNull(editPortletURL)> 
307                <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> 
308 
309                <@liferay_ui["icon"] 
310                    cssClass="icon-monospaced visible-interaction" 
311                    icon="pencil" 
312                    markupView="lexicon" 
313                    message=title 
314                    url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
315                /> 
316            </#if> 
317        </#if>     
318	</#if> 
319</#macro> 
320 
321 
322<script type="text/javascript"> 
323	var a2a_config = a2a_config || {}; 
324	a2a_config.onclick = 1; 
325	a2a_config.locale = "it"; 
326	a2a_config.num_services = 5; 
327	a2a_config.title = '${.vars['reserved-article-title'].data?html}'; 
328	a2a_config.track_links = 'custom'; 
329	a2a_config.track_links_key = '${urlSocial?html}'; 
330	a2a_config.linkurl = '${urlSocial?html}'; 
331	a2a_config.linkname = 'aaaa ${.vars['reserved-article-title'].data?html}'; 
332 
333	a2a_config.templates = a2a_config.templates || {}; 
334	a2a_config.templates.twitter = { 
335		text: "${.vars['reserved-article-title'].data?html}  ${urlSocial?html}", 
336		related: "AddToAny,Twitter" 
337	}; 
338</script> 
339<script async src="https://static.addtoany.com/menu/page.js"></script>