angle-left Le Sezioni unite restringono il sindacato sui “motivi inerenti alla giurisdizione” ex art. 111, comma 8, Cost.
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy169.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy169 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl@4701b629"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign file = dlFileEntryService.get...  [in template "20115#20151#34442" at line 112, column 17]
----
1<#assign portletId = themeDisplay.getPortletDisplay().getId() /> 
2<#assign journalArticleId = .vars['reserved-article-id'].data/> 
3 
4<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') /> 
5 
6 
7<#--<#assign titleLink = "javascript:;" />--> 
8<#--<#if (Content.getData())??>--> 
9    <#--<#assign titleLink = Content.getData() />--> 
10<#--</#if>--> 
11 
12<h1 class="h2" style="display: block;"> 
13    <#--<a href="${titleLink}">--> 
14    ${.vars['reserved-article-title'].data} 
15    <#--</a>--> 
16</h1> 
17 
18<span class="sottotitolo">${TitoloEsteso.getData()}</span> 
19<#--<p>${.vars['reserved-article-description'].data}</p>--> 
20<#if Content?? && Content?has_content> 
21        <ul class="list-unstyled"> 
22 
23                <#assign cur_Allegato=Content /> 
24                <#assign cur_Allegato_data = cur_Allegato.getData()?split("/")> 
25                <#assign groupId = cur_Allegato_data[2]?number /> 
26                <#assign uuId = cur_Allegato_data[5]?keep_before('?') /> 
27                <#assign fileName = cur_Allegato_data[4] /> 
28 
29                <#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') /> 
30                <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId,groupId)  > 
31 
32                <#assign file_description='Download file' /> 
33                <#if file.getDescription()?? &&  file.getDescription()!=''> 
34                    <#assign file_description=file.getDescription() /> 
35                </#if> 
36 
37                <#assign file_size = '' /> 
38                <#if file.getSize()??> 
39                    <#assign file_size>(${file.getSize()}kb)</#assign> 
40                </#if> 
41 
42            <li> 
43                    <#if file_description!=''> 
44                        <a href="${cur_Allegato.getData()}" class="download--link" title="${file_description}"> 
45                            ${file_description} 
46                        </a>, 
47                    </#if> 
48                <span class="download--link__dettagli"> 
49                    ${file_size} 
50                </span> 
51            </li> 
52        </ul> 
53</#if> 
54<#if Sentenza?? && Sentenza.getData()?has_content> 
55	 <ul class="list-unstyled"> 
56<#-- Sentenza is a string URL --> 
57    <#assign file_description='No title' /> 
58 
59    <#if TitoloSentenza?? && TitoloSentenza.getData()?has_content> 
60        <#assign file_description=TitoloSentenza.getData() /> 
61    </#if> 
62 
63	<li> 
64        <a href="${Sentenza.getData()}" class="" title="${file_description}"> 
65            ${file_description} 
66        </a> 
67    </li> 
68</#if> 
69<#if SentenzaSeparator??> 
70    <#list SentenzaSeparator.getSiblings() as cur_Sentenza> 
71        <#if cur_Sentenza.Sentenza?? && cur_Sentenza.Sentenza.getData()?has_content> 
72	 <ul class="list-unstyled"> 
73        <#-- Sentenza is a string URL --> 
74            <#assign file_description='No title' /> 
75 
76            <#if cur_Sentenza.TitoloSentenza?? && cur_Sentenza.TitoloSentenza.getData()?has_content> 
77                <#assign file_description=cur_Sentenza.TitoloSentenza.getData() /> 
78            </#if> 
79 
80	<li> 
81        <a href="${cur_Sentenza.Sentenza.getData()}" class="" title="${file_description}"> 
82            ${file_description} 
83        </a> 
84    </li> 
85        </#if> 
86    </#list> 
87</#if> 
88 
89<#assign showAllegati = false /> 
90<#if Allegato?? && Allegato.getData()?? && Allegato.getSiblings()?has_content > 
91    <#list Allegato.getSiblings() as cur_Allegato> 
92        <#if cur_Allegato.getData()?has_content > 
93            <#assign showAllegati = true /> 
94        </#if> 
95    </#list> 
96</#if> 
97 
98<#if showAllegati > 
99    <h2 class="h3">Allegati</h2> 
100    <ul class="list-unstyled"> 
101 
102        <#list Allegato.getSiblings() as cur_Allegato> 
103 
104            <#if cur_Allegato.getData()?has_content > 
105 
106                <#assign cur_Allegato_data = cur_Allegato.getData()?split("/")> 
107                <#assign groupId = cur_Allegato_data[2]?number /> 
108                <#assign uuId = cur_Allegato_data[5]?keep_before('?') /> 
109                <#assign fileName = cur_Allegato_data[4] /> 
110 
111                <#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') /> 
112                <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId,groupId)  > 
113 
114                <#assign file_description='Download file' /> 
115                <#if file.getDescription()?? &&  file.getDescription()!=''> 
116                    <#assign file_description=file.getDescription() /> 
117                </#if> 
118 
119                <#assign file_size = '' /> 
120                <#if file.getSize()??> 
121                    <#assign file_size>(${file.getSize()}kb)</#assign> 
122                </#if> 
123 
124                <li> 
125                    <#if file_description!=''> 
126                    <a href="${cur_Allegato.getData()}" class="download--link" title="${file_description}"> 
127                        ${file_description}</a>, 
128                    </#if> 
129                    <span class="download--link__dettagli"> 
130                        ${file_size} 
131                    </span> 
132                </li> 
133            </#if> 
134        </#list> 
135    </ul> 
136</#if> 
137 
138 
139<#assign showDecisione = false> 
140<#if Decisione?? > 
141    <#list Decisione.getSiblings() as cur_content> 
142        <#list cur_content.getData()?split("\"") as cur_PK> 
143            <#if cur_PK?matches("\\d+")> 
144                <#assign showDecisione = true /> 
145                <#break> 
146            </#if> 
147        </#list> 
148        <#if showDecisione><#break></#if> 
149    </#list> 
150</#if> 
151 
152<#if showDecisione > 
153    <h2 class="h3">Decisione</h2> 
154    <div class="accordion--group" id="${portletId}__accordion" role="tablist" aria-multiselectable="true"> 
155        <#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
156        iterIdx = 0 /> 
157        <#list Decisione.getSiblings() as cur_content> 
158            <#assign iterIdx = iterIdx + 1 /> 
159 
160            <#list cur_content.getData()?split("\"") as cur_PK> 
161                <#if cur_PK?matches("\\d+")> 
162                    <#assign linkedArticleId = cur_PK?number /> 
163                    <#break> 
164                </#if> 
165            </#list> 
166            <#if linkedArticleId?? > 
167                <div class="accordion--item"> 
168                    <div class="accordion--heading chiuso" role="tab" id="heading_${journalArticleId}_${portletId}_${iterIdx}"> 
169                        <#assign linkedArticle = JournalArticleLocalService.fetchLatestArticle(linkedArticleId) /> 
170                        <div class="h4 title"> 
171                            <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne_${journalArticleId}_${portletId}_${iterIdx}" 
172                               aria-expanded="false" aria-controls="collapseOne_${journalArticleId}_${portletId}_${iterIdx}" class=""> 
173                                ${linkedArticle.getTitle(themeDisplay.getLocale())} <span class="fa fa-angle-down"></span> 
174                            </a> 
175                        </div> 
176                        <div id="collapseOne_${journalArticleId}_${portletId}_${iterIdx}" class="accordion--collapse collapse" role="tabpanel" aria-labelledby="heading_${journalArticleId}_${portletId}_${iterIdx}"> 
177                            <div class="accordion--body" style="border: 1px solid gray; padding:10px;"> 
178                                <#assign VOID = freeMarkerPortletPreferences.setValue("portletSetupPortletDecoratorId", "barebone") /> 
179                                <#assign article = cur_content.getData()?eval /> 
180                                <@liferay_ui["asset-display"] 
181                                className=article.className 
182                                classPK=getterUtil.getLong(article.classPK, 0) 
183                                /> 
184                                <#assign VOID = freeMarkerPortletPreferences.reset() /> 
185                            </div> 
186                        </div> 
187                    </div> 
188                </div> 
189            </#if> 
190        </#list> 
191    </div> 
192</#if> 
193 
194<div class="row"> 
195    <div class="col-xs-3"><p>Anno di pubblicazione:</p></div> 
196    <div class="col-xs-9"><p><b>${AnnoDiRiferimento.getData()}</b></p></div> 
197</div> 
198 
199<#if Autore?? && Autore.getData()?has_content> 
200<div class="row"> 
201    <div class="col-xs-3"><p>Autore:</p></div> 
202    <div class="col-xs-9"><p><b>${Autore.getData()}</b></p></div> 
203</div> 
204</#if> 
205<#assign journalArticleId = .vars['reserved-article-id'].data> 
206<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"]> 
207<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
208<#assign assetVocabularyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"]> 
209 
210 
211<#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/> 
212<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",articleResourcePK) > 
213<#assign materieFocusVocId=assetVocabularyLocalServiceUtil.getGroupVocabulary(groupId,'Materie Focus').vocabularyId > 
214<#assign materieDottrinaVocId=assetVocabularyLocalServiceUtil.getGroupVocabulary(groupId,'MaterieDottrina').vocabularyId > 
215<#assign categorieOsservatorioVocId=assetVocabularyLocalServiceUtil.getGroupVocabulary(groupId,'Categorie Osservatorio').vocabularyId > 
216 
217<#assign categorieVistaMateria = []/> 
218<#assign categorieStampaMateria = []/> 
219<#assign categorieVistaTipologia = []/> 
220<#assign categorieStampaTipologia = []/> 
221<#list categoryList?reverse as cat> 
222    <#if cat.getVocabularyId() == materieFocusVocId || cat.getVocabularyId() == materieDottrinaVocId> 
223        <#if !categorieVistaMateria?seq_contains(cat.getName())> 
224            <#if cat.isRootCategory()> 
225                <#assign outputName = '<b>' + cat.getName() + '</b>'> 
226            <#else > 
227                <#assign outputName = cat.getName()> 
228            </#if> 
229            <#if cat.getParentCategory()??> 
230                <#if cat.getParentCategory().isRootCategory()> 
231                    <#assign outputName = '<b>' + cat.getParentCategory().getName() + "</b>, " + outputName> 
232                <#else > 
233                    <#assign outputName = cat.getParentCategory().getName() + ", " + '<i>' + outputName + '</i>'> 
234                </#if> 
235                <#if cat.getParentCategory().getParentCategory()??> 
236                    <#assign outputName = '<b>' + cat.getParentCategory().getParentCategory().getName() + "</b>, " + outputName> 
237                    <#assign categorieVistaMateria = categorieVistaMateria + [ cat.getParentCategory().getParentCategory().getName() ]/> 
238                </#if> 
239                <#assign categorieVistaMateria = categorieVistaMateria + [ cat.getParentCategory().getName() ]/> 
240            </#if> 
241            <#assign categorieStampaMateria = categorieStampaMateria + [ outputName ]/> 
242        </#if> 
243    <#elseif cat.getVocabularyId() == categorieOsservatorioVocId> 
244        <#if !categorieVistaTipologia?seq_contains(cat.getName())> 
245            <#if cat.isRootCategory()> 
246                <#assign outputName = '<b>' + cat.getName() + '</b>'> 
247            <#else > 
248                <#assign outputName = cat.getName() > 
249            </#if> 
250            <#if cat.getParentCategory()??> 
251                <#if cat.getParentCategory().isRootCategory()> 
252                    <#assign outputName = '<b>' + cat.getParentCategory().getName() + "</b>, " + outputName> 
253                <#else > 
254                    <#assign outputName = cat.getParentCategory().getName() + ", " + '<i>' + outputName + '</i>'> 
255                </#if> 
256                <#if cat.getParentCategory().getParentCategory()??> 
257                    <#assign outputName = '<b>' + cat.getParentCategory().getParentCategory().getName() + "</b>, " + outputName> 
258                    <#assign categorieVistaTipologia = categorieVistaTipologia + [ cat.getParentCategory().getParentCategory().getName() ]/> 
259                </#if> 
260                <#assign categorieVistaTipologia = categorieVistaTipologia + [ cat.getParentCategory().getName() ]/> 
261            </#if> 
262            <#assign categorieStampaTipologia = categorieStampaTipologia + [ outputName ]/> 
263        </#if> 
264    </#if> 
265</#list> 
266<#if categorieStampaMateria?has_content> 
267<div class="row"> 
268    <div class="col-xs-3"> 
269        <p>Materia:</p> 
270    </div> 
271    <div class="col-xs-9"> 
272<#list categorieStampaMateria?reverse as cs> 
273    <p>${cs}</p> 
274</#list> 
275    </div> 
276</div> 
277</#if> 
278<#if categorieStampaTipologia?has_content> 
279<div class="row"> 
280    <div class="col-xs-3"> 
281        <p>Tipologia:</p> 
282    </div> 
283    <div class="col-xs-9"> 
284<#list categorieStampaTipologia?reverse as cs> 
285    <p>${cs}</p> 
286</#list> 
287    </div> 
288</div> 
289</#if>