Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy128.getLayout(long, boolean, long)" threw an exception when invoked on com.sun.proxy.$Proxy128 object "com.liferay.portal.service.impl.LayoutLocalServiceImpl@6fa0f2ec"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign pagina = LayoutLocalService.g...  [in template "20155#20195#23504" at line 195, column 73]
----
1<#assign fileService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
2<#assign dlFileEntryTypeService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService") /> 
3<#assign dlFileVersionService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileVersionLocalService") /> 
4<#assign   LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
5<#assign   journalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
6 
7<#assign   assetEntryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
8 
9<#assign   layoutId = themeDisplay.getLayout().getPlid() /> 
10 
11<#assign  pathThemeImages = themeDisplay.getPathThemeImages() /> 
12<#assign  pathThemeImages = httpUtil.getPath(pathThemeImages) /> 
13 
14<#assign  pathContext = themeDisplay.getPathContext() /> 
15<#assign  currentURL = getterUtil.getString(themeDisplay.getURLCurrent()) /> 
16 
17<#assign   layoutLong = getterUtil.getLong(layoutId) /> 
18 
19<#assign  layoutCorrente = themeDisplay.getLayout() /> 
20<#assign  pageName = layoutCorrente.getName(locale) /> 
21 
22 
23 
24<#assign  description = .vars['reserved-article-description'].data /> 
25<#assign  title = .vars['reserved-article-title'].data /> 
26 
27<#-- 
28 
29<#if (currentURL?index_of("/-/")!=-1) > 
30    <h1>${title}</h1> 
31<#else> 
32    <#if (validator.isNotNull(pageName))> 
33        <h1>${pageName}</h1> 
34    </#if> 
35</#if> 
36 
37--> 
38 
39<div class="py-3"> 
40	<div class="container"> 
41		<#if header_html.getSiblings()?has_content > 
42				<#list header_html.getSiblings() as cur_header_html > 
43			        <#assign header_html = cur_header_html.getData() /> 
44			        <#if header_html?? && header_html!="" && header_html?contains("https://www.google.com/maps/") > 
45			            <#assign aCK=objectUtil("com.liferay.portal.kernel.util.CookieKeys") /> 
46                        <#assign cookieGoogle = aCK.getCookie(request,"adm_cookie_google")! /> 
47                         
48                        <#if cookieGoogle=="1"> 
49                            ${header_html} 
50                        </#if> 
51			        <#else> 
52					    ${cur_header_html.getData()} 
53					</#if> 
54					 
55			    </#list> 
56		</#if> 
57 
58		<#assign  gid = getterUtil.getLong(themeDisplay.getScopeGroupId()) /> 
59 
60		<#if (raggruppatore.getSiblings()?has_content) > 
61	 
62			<ul class="list-link pl-0 pb-4"> 
63				<#list   raggruppatore.getSiblings() as cur_Raggruppatore > 
64					<#if cur_Raggruppatore.separatore.data!="" > 
65					   ${cur_Raggruppatore.separatore.data} 
66					</#if> 
67					<#list  cur_Raggruppatore.getChildren() as cur_Prop  > 
68						<#list  cur_Prop.getSiblings() as cur_Prop_1 > 
69						    
70							  
71							<#if (cur_Prop_1.getName()=="link_esterno" && (cur_Prop_1.getData()!="")) > 
72								 <li class="d-flex text-adm mb-4"> 
73									<span class="col-auto pl-2 fas fa-external-link-alt text-24"></span> 
74								 
75									<div> 
76										<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto.external.site' /> ${cur_Prop_1.descrizione_link_esterno.data} - <@liferay_ui['message'] key='aria.label.templates.external.site' />" href="${cur_Prop_1.getData()}"> 
77										  ${cur_Prop_1.descrizione_link_esterno.data} 
78										</a> 
79										 
80										${cur_Prop_1.destra_link_esterno.data} 
81									</div> 
82								</li> 
83							</#if> 
84						   
85							<#if (cur_Prop_1.getType()=="document_library")> 
86								<#assign arrdoc = cur_Prop_1.getData()?split("/") /> 
87								 
88												 
89								<#if (arrdoc?size > 5) > 
90	 
91									<#assign fileUid= (arrdoc[arrdoc?size-1]?split("?"))[0]/>	 
92									 
93									<#assign  doc = fileService.getFileEntryByUuidAndGroupId(fileUid,gid) /> 
94									<#if (doc?? && doc!="") > 
95										<#assign entry = assetEntryService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",doc.getFileEntryId()) /> 
96										<#assign  fileEntryTypeId = doc.getFileEntryTypeId()  /> 
97										<#assign  fileEntryType = dlFileEntryTypeService.getDLFileEntryType(fileEntryTypeId)  /> 
98										<#assign  dlFileVersion = dlFileVersionService.getLatestFileVersion(doc.getUserId(),doc.getFileEntryId())  /> 
99										 
100									   <#assign renderer = entry.getAssetRenderer()> 
101									   <#assign fieldsMap =  renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() /> 
102										<#assign  testodestra =""  /> 
103										<#assign  testosinistra =""  /> 
104										<#assign  testoLink =""  /> 
105										<#list fieldsMap as item > 
106										      <#if item.getValue()??> 
107											   <#if (item.getName()=="Sinistra")> 
108 
109												   <#assign  testosinistra = htmlUtil.extractText(item.getValue().getString(locale)!"") /> 
110											   <#elseif (item.getName()=="Destra")> 
111												   <#assign  testodestra = htmlUtil.extractText(item.getValue().getString(locale)!"")/> 
112											   <#elseif (item.getName()=="Testo_Link") /> 
113												   <#assign  testoLink = htmlUtil.extractText(item.getValue().getString(locale)!"") /> 
114											   </#if> 
115										      </#if> 
116										</#list> 
117										 
118										<li class="d-flex text-adm mb-4"> 
119													<#assign  mimetype = doc.getMimeType() /> 
120													<span class="col-auto pl-2 fas fa-paperclip text-24"></span> 
121													 
122												<div> 
123												 
124													<#if (testosinistra!="")> 
125														${testosinistra}  
126													</#if> 
127													<#if (testoLink!="")> 
128														<a aria-label="<@liferay_ui['message'] key='aria.label.templates.download.file' /> ${testoLink}" href="${cur_Prop_1.getData()}">${testoLink}</a>  
129													<#else> 
130													  <a aria-label="<@liferay_ui['message'] key='aria.label.templates.download.file' /> ${doc.getTitle()}" href="${ cur_Prop_1.getData()}">${doc.getTitle()}</a>  
131													</#if> 
132													<#if (testodestra!="")> 
133														 ${testodestra} 
134													</#if>												 
135												</div> 
136										</li> 
137									</#if> 
138								 
139								</#if>	 
140							 
141							</#if> 
142							 
143						<#if cur_Prop_1.getName()=="link_contenuto"> 
144							<#assign displayPage ="" /> 
145							<#if cur_Prop_1.RelWebContent?? && validator.isContent(cur_Prop_1.RelWebContent.getData())> 
146									<#assign webContentData = jsonFactoryUtil.createJSONObject(cur_Prop_1.RelWebContent.getData()) />	 
147								 
148									<#if webContentData.classPK?? && (getterUtil.getLong(webContentData.classPK)>0)> 
149										<#assign journal = journalService.fetchLatestArticle(getterUtil.getLong(webContentData.classPK)) /> 
150										<#assign displayPage = pathContext + '/-/' + journal.getUrlTitle() /> 
151									 
152									<#elseif webContentData.uuid??>	 
153											<#assign journal = journalService.getJournalArticleByUuidAndGroupId(webContentData.uuid,gid) /> 
154											<#assign displayPage = pathContext + '/-/' + journal.getUrlTitle() /> 
155									 
156									</#if> 
157								 
158								<#elseif cur_Prop_1.getData()!="">									 
159									<#assign displayPage = pathContext+cur_Prop_1.getData() />					 
160								</#if>	 
161								<#--Visualizzazione link a contenuto -->	 
162								<#if validator.isContent(displayPage) && validator.isContent(cur_Prop_1.descrizione_link_contenuto.data)>	 
163									<li class="d-flex text-adm mb-4"> 
164								 
165										<#if (getterUtil.getBoolean(cur_Prop_1.icona_link.getData())) > 
166										   <span class="col-auto pl-2 fas fa-caret-right text-12 pt-2"></span> 
167										<#else> 
168											 <span class="col-auto pl-2 far fa-folder text-24"></span> 
169										</#if> 
170															 
171										<div> 
172											<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto' /> ${cur_Prop_1.descrizione_link_contenuto.data}" href="${displayPage}"> 
173												${cur_Prop_1.descrizione_link_contenuto.data} 
174											</a> 
175											 
176											 
177											<#if cur_Prop_1.destra_link_contenuto?has_content && cur_Prop_1.destra_link_contenuto.data!=""> 
178												<#assign  destra_link_contenuto = cur_Prop_1.destra_link_contenuto.data /> 
179												<#if (validator.isNotNull(destra_link_contenuto)) > 
180													 ${destra_link_contenuto}  
181												</#if> 
182											</#if> 
183											 
184										 </div>		 
185									</li> 
186								</#if>	 
187						</#if> 
188							 
189							<#if (cur_Prop_1.getType()=="link_to_layout")> 
190							    
191								<#if (cur_Prop_1.getData()!="")> 
192								    
193									<#assign   layoutLong = getterUtil.getLong(cur_Prop_1.getData()) /> 
194								    
195									<#assign  pagina = LayoutLocalService.getLayout(gid, false, layoutLong) /> 
196									<#if (pagina?? && pagina!="") > 
197										<li class="d-flex text-adm mb-4"> 
198										 
199									    
200											<#if (getterUtil.getBoolean(cur_Prop_1.icona_link_pagina.getData())) > 
201												<span class="col-auto pl-2 fas fa-caret-right text-12 pt-2"></span> 
202											<#else> 
203												<span class="col-auto pl-2 far fa-folder text-24"></span> 
204											</#if> 
205										  <div> 
206										   
207											<#if pagina.getExpandoBridge().getAttribute("sinistra")?? > 
208												${pagina.getExpandoBridge().getAttribute("sinistra")} 
209											</#if> 
210											<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto.page' /> ${pagina.getHTMLTitle(locale)}" href="${cur_Prop_1.getFriendlyUrl()}">${pagina.getHTMLTitle(locale)}</a> 
211											 
212											<#if pagina.getExpandoBridge().getAttribute("destra")??> 
213												${pagina.getExpandoBridge().getAttribute("destra")} 
214											</#if> 
215										</div> 
216										</li>  
217									</#if> 
218								</#if> 
219							</#if> 
220						    
221							<#if (cur_Prop_1.getType()=="boolean")> 
222							 
223								<#if (cur_Prop_1.getData()!="") > 
224									 
225									<#list layoutCorrente.getChildren() as layoutChild > 
226										<#if (!layoutChild.isHidden())> 
227											<li class="d-flex text-adm mb-4"> 
228												 
229													<span class="col-auto pl-2 far fa-folder text-24"></span> 
230												<div> 
231														<#if layoutChild.getExpandoBridge().getAttribute("sinistra")??> 
232															${layoutChild.getExpandoBridge().getAttribute("sinistra")} 
233														</#if> 
234													<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto.page' /> ${layoutChild.getHTMLTitle(locale)}" href="${pathContext + layoutChild.getFriendlyURL()}">${layoutChild.getHTMLTitle(locale)}</a> 
235														<#if layoutChild.getExpandoBridge().getAttribute("destra")??> 
236															${layoutChild.getExpandoBridge().getAttribute("destra")} 
237														</#if> 
238												</div>											 
239											</li> 
240										</#if> 
241										 
242									</#list> 
243								</#if> 
244							</#if> 
245							 
246						</#list> 
247					</#list> 
248					 
249				</#list> 
250			</ul>	 
251		</#if> 
252 
253		<#if (validator.isNotNull(footer_html.getData()))> 
254		${footer_html.getData()} 
255		</#if> 
256	</div> 
257</div>