Si è verificato un errore nell'elaborarazione del modello.
Java method "static com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(String, long)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = DLFileEntryLocalS...  [in template "10154#10192#21508558" at line 124, column 49]
----
1<#setting locale="it_IT"> 
2 
3<#assign siteBaseURL = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL() />  
4<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] /> 
5<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() /> 
6<#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
7<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
8<#assign UserLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.UserLocalServiceUtil"]> 
9<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() /> 
10 
11<#assign AssetCategoryServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryServiceUtil"] /> 
12<#assign childCategoryId = 0 /> 
13<#assign parentCategoryId = 0 /> 
14<#assign values = portletPreferences['queryValues0'] /> 
15<#if values?has_content> 
16	<#list values as value> 
17		<#assign currentCat = AssetCategoryServiceUtil.getCategory(value?number) /> 
18		<#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
19		<#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(currentCat.getVocabularyId()) /> 
20		<#if assetVocabulary.getName() == "Temi"> 
21			<#if currentCat.getParentCategory()??> 
22				<#assign childCategoryId = currentCat.getCategoryId()/> 
23				<#assign parentCategoryId = currentCat.getParentCategory().getCategoryId() /> 
24			<#else> 
25				<#assign parentCategoryId = currentCat.getCategoryId()/> 
26			</#if> 
27		</#if> 
28	</#list> 
29</#if> 
30 
31<div class="portlet-column portlet-column-only rt-row-full" id=""> 
32    <div class="rt-container"> 
33        <div class="rt-wrapper"> 
34            <section class="rt-section rt-section--people rt-section--people-author"> 
35 
36                <div class="rt-section__wrapper"> 
37                    <div class="rt-people-card"> 
38                     
39                        <div class="rt-people-card__details"> 
40                            <div class="rt-people-card__field"> 
41                                <div class="rt-people-card__value"> 
42                                    Autore 
43                                </div> 
44                                <div class="rt-people-card__label">${themeDisplay.getLayout().getName(locale)?html}</div> 
45                            </div> 
46                        </div> 
47                    </div> 
48                </div> 
49            </section> 
50     
51        </div> 
52    </div> 
53 
54    <div class="rt-wrapper"> 
55        <div class="rt-container"> 
56            <section class="rt-section rt-section--grid rt-section--grid-4" aria-label=""> 
57                <#if entries?has_content> 
58                    <#assign countEvidenza = 0 /> 
59                    <#list entries as curEntry> 
60                        <#assign countEvidenza = countEvidenza + 1 /> 
61                        <#if countEvidenza <= 4> 
62                             
63                            <#assign assetRenderer = curEntry.getAssetRenderer() /> 
64                            <#assign className = assetRenderer.getClassName() /> 
65                             
66                            <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
67 
68                            <#if className = "com.liferay.journal.model.JournalArticle" > 
69                                <#assign article = assetRenderer.getArticle() />  
70                                <#if article?? > 
71                                    <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
72 
73 
74                                    <#assign titleText = curEntry.getTitle(locale) /> 
75                                    <#assign titleLength = titleText?length /> 
76 
77                                    <#if (titleLength > 92) > 
78                                        <#assign titleText = titleText?substring(0,92) /> 
79                                        <#assign titleText = titleText + "..." /> 
80                                    </#if> 
81 
82 
83                                    <#assign temi = [] /> 
84                                    <#assign autore = "" /> 
85                                    <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) /> 
86 
87                                    <#list categoryList as category> 
88                                        <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) /> 
89                                        <#if assetVocabulary.getName() == "Temi"> 
90                                            <#assign temi = temi + [category] /> 
91                                        <#elseif assetVocabulary.getName() == "5. Autori"> 
92                                            <#assign autore = category.getName() /> 
93                                        </#if> 
94                                    </#list> 
95 
96                                    <#assign nomeAutore = "" /> 
97                                    <#if autore?? && autore != "" && autore != "redazione"> 
98                                        <#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), autore) /> 
99                                        <#if userAutore??  && userAutore?has_content> 
100                                            <#assign nomeAutore =  userAutore.getFullName() /> 
101                                        </#if> 
102                                    <#else> 
103                                        <#assign nomeAutore = "Redazione" /> 
104                                    </#if> 
105 
106                                    <#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") /> 
107                                    <#assign Descrizione = docXml.valueOf("//dynamic-element[@name='Descrizione']/dynamic-content/text()") /> 
108                                    <#assign Etichetta = docXml.valueOf("//dynamic-element[@name='EtichettaDiLancio']/dynamic-content/text()") /> 
109                                    <#assign fileUrl = "" /> 
110                                    <#assign altImg = "" /> 
111                                    <#if Immagine?has_content> 
112                                        <#assign json = jsonFactoryUtil.createJSONObject(Immagine) /> 
113                                        <#assign nameImg = json.getString("name") /> 
114                                        <#assign altImg = json.getString("alt") /> 
115                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
116                                        <#assign uuiD = json.getString("uuid") /> 
117                                        <#assign groupId = json.getLong("groupId") /> 
118 
119                                        <#if fileEntryId != 0> 
120                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
121                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
122                                        <#else> 
123                                            <#if groupId != 0 && uuiD != ""> 
124                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
125                                                <#if fileEntry?? > 
126                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
127                                                </#if>  
128                                            </#if> 
129                                        </#if> 
130                                    <#else> 
131										<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
132											<#assign fileUrl = assetRenderer.getThumbnailPath(renderRequest) /> 
133										<#else> 
134											<#assign fileUrl = imagePath + "/toscana-notizie-placeholder.png" /> 
135										</#if> 
136                                    </#if> 
137 
138 
139                                    <div class="rt-box rt-box--has-image"> 
140                                        <div aria-label="${altImg?html}" class="rt-box__image" style="background-image: url('${fileUrl?html}');"> 
141 
142                                            <#if Etichetta?? && Etichetta != ""> 
143                                                <div class="rt-box__category"> 
144                                                    ${Etichetta?html} 
145                                                </div> 
146                                            </#if> 
147                                        </div> 
148 
149                                        <div class="rt-box__text"> 
150                                            <div class="rt-box__meta"> 
151 
152                                                <div class="rt-box__publication"> 
153                                                    <div class="rt-box__date">${curEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}</div> 
154                                                    <div class="rt-box__time">${curEntry.publishDate?string["HH:mm"]?remove_beginning("0")}</div> 
155                                                </div> 
156                                                <div class="rt-box__author"> 
157                                                    di ${nomeAutore?html} 
158                                                </div> 
159                                            </div> 
160 
161                                            <div class="rt-box__title"> 
162                                                <a title="Vai alla pagina ${titleText}" aria-label="Vai alla pagina ${titleText}" href="${rendererURL}"> 
163                                                    ${titleText?replace('<[^>]+>','','r')} 
164                                                </a> 
165                                            </div> 
166 
167                                        </div> 
168                                         
169                                    </div> 
170 
171 
172 
173                                </#if> 
174                            </#if> 
175                        </#if> 
176                    </#list> 
177                </#if>                     
178            </section> 
179        </div> 
180    </div> 
181 
182    <div class="rt-wrapper"> 
183        <div class="rt-container"> 
184            <section class="rt-section rt-section--grid rt-section--grid-4" aria-label=""> 
185                <#if entries?has_content> 
186                    <#assign countEvidenza = 0 /> 
187                    <#list entries as curEntry> 
188                        <#assign countEvidenza = countEvidenza + 1 /> 
189                        <#if (countEvidenza > 4)> 
190 
191                            <#assign assetRenderer = curEntry.getAssetRenderer() /> 
192                            <#assign className = assetRenderer.getClassName() /> 
193                             
194                            <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
195 
196                            <#if className = "com.liferay.journal.model.JournalArticle" > 
197                                <#assign article = assetRenderer.getArticle() />  
198                                <#if article?? > 
199                                    <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
200 
201                                    <#assign titleText = curEntry.getTitle(locale) /> 
202                                    <#assign titleLength = titleText?length /> 
203 
204                                    <#if (titleLength > 92) > 
205                                        <#assign titleText = titleText?substring(0,92) /> 
206                                        <#assign titleText = titleText + "..." /> 
207                                    </#if> 
208 
209 
210                                    <#assign temi = [] /> 
211                                    <#assign autore = "" /> 
212                                    <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) /> 
213 
214                                    <#list categoryList as category> 
215                                        <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) /> 
216                                        <#if assetVocabulary.getName() == "Temi"> 
217                                            <#assign temi = temi + [category] /> 
218                                        <#elseif assetVocabulary.getName() == "5. Autori"> 
219                                            <#assign autore = category.getName() /> 
220                                        </#if> 
221                                    </#list> 
222 
223                                    <#assign nomeAutore = "" /> 
224                                    <#if autore?? && autore != "" && autore != "redazione"> 
225                                        <#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), autore) /> 
226                                        <#if userAutore??  && userAutore?has_content> 
227                                            <#assign nomeAutore =  userAutore.getFullName() /> 
228                                        </#if> 
229                                    <#else> 
230                                        <#assign nomeAutore = "Redazione" /> 
231                                    </#if> 
232 
233                                    <div class="rt-box rt-box--secondary"> 
234                                        <div class="rt-box__text"> 
235                                            <div class="rt-box__publication"> 
236                                                <div class="rt-box__date"> 
237                                                    ${curEntry.publishDate?string["dd MMMM"]?remove_beginning("0")} 
238                                                </div> 
239                                                 
240                                                <div class="rt-box__category"> 
241                                                    <#assign currentCategory = 0 /> 
242                                                    <#list temi as category> 
243                                                        <#if parentCategoryId != 0> 
244                                                            <#if (currentCategory?? && currentCategory != category.getCategoryId()) && (category.getCategoryId() == parentCategoryId) || (category.getParentCategory()?? && (category.getParentCategory().getCategoryId() == parentCategoryId))> 
245                                                                <#assign currentCategory = category.getCategoryId() /> 
246                                                                ${category.getName()?html} 
247                                                            </#if> 
248                                                        <#else> 
249                                                            <#if (currentCategory?? && currentCategory != category.getCategoryId()) > 
250                                                                <#assign currentCategory = category.getCategoryId() /> 
251                                                                ${category.getName()?html} 
252                                                            </#if> 
253                                                        </#if> 
254                                                    </#list> 
255                                                </div> 
256                                            </div> 
257 
258                                            <div class="rt-box__title"> 
259                                                <a title="Vai alla pagina ${titleText}" aria-label="Vai alla pagina ${titleText}" href="${rendererURL}"> 
260                                                    ${titleText?replace('<[^>]+>','','r')} 
261                                                </a> 
262                                            </div> 
263											<#if nomeAutore != "Amministratore Portale"> 
264												<div class="rt-box__author"> 
265													di ${nomeAutore?html} 
266												</div> 
267											</#if> 
268                                        </div> 
269                                    </div> 
270                                </#if> 
271                            </#if> 
272                        </#if> 
273                    </#list> 
274                </#if>     
275            </section> 
276        </div> 
277    </div>     
278</div>