Diritti

Tutte le informazioni e i servizi della Regione in materia di diritti: tutela dei consumatori, conciliazioni di controversie, lotta alle discriminazioni, pari opportunità e privacy.
Si è verificato un errore nell'elaborarazione del modello.
Java method "static com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil.getFileEntry(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#17416577" at line 54, column 37]
----
1<#assign siteBaseURL = themeDisplay.getPortalURL() /> 
2<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() /> 
3<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] /> 
4<section class="container rt-content" id="content"> 
5<div class="row"> 
6<div class="col-md-12 portlet-column portlet-column-only" id="column-2"> 
7                 
8    <div class="rt-wrapper rt-wrapper--grid rt-wrapper--grid-2-col"> 
9        <#assign countArticle = 0 /> 
10        <#if entries?has_content> 
11            <#list entries as curEntry> 
12                <#assign assetRenderer = curEntry.getAssetRenderer() /> 
13                <#assign className = assetRenderer.getClassName() /> 
14                <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
15                <#if className = "com.liferay.journal.model.JournalArticle" > 
16                    <#assign article = assetRenderer.getArticle() /> 
17                    <#if article?? > 
18                        <#if countArticle < 4> 
19                            <#assign countArticle = countArticle+1 /> 
20                            <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
21 
22                            <#assign ImmagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
23                            <#assign ImmagineBannerTema = docXml.valueOf("//dynamic-element[@name='ImmagineBannerTema']/dynamic-content/text()") /> 
24                            <#assign noBannerTema = "true" /> 
25 
26                            <#assign fileUrl = "" /> 
27                            <#assign altImg = "" /> 
28 
29                            <#if ImmagineBannerTema?has_content> 
30                                <#assign json = jsonFactoryUtil.createJSONObject(ImmagineBannerTema) /> 
31                                <#assign nameImg = json.getString("name") /> 
32                                <#assign altImg = json.getString("alt") /> 
33                                <#assign fileEntryId = json.getLong("fileEntryId") /> 
34                                <#assign uuiD = json.getString("uuid") /> 
35                                <#assign groupId = json.getLong("groupId") /> 
36 
37                                <#if fileEntryId != 0> 
38                                    <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
39                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
40                                    <#assign noBannerTema = "false" /> 
41                                </#if>  
42                                                 
43                            </#if> 
44 
45                            <#if ImmagineCopertina?has_content && fileUrl == ""> 
46                                <#assign json = jsonFactoryUtil.createJSONObject(ImmagineCopertina) /> 
47                                <#assign nameImg = json.getString("name") /> 
48                                <#assign altImg = json.getString("alt") /> 
49                                <#assign fileEntryId = json.getLong("fileEntryId") /> 
50                                <#assign uuiD = json.getString("uuid") /> 
51                                <#assign groupId = json.getLong("groupId") /> 
52 
53                                <#if fileEntryId != 0> 
54                                    <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
55                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
56                                     
57                                <#else> 
58                                    <#if groupId != 0 && uuiD != ""> 
59                                        <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
60                                        <#if fileEntry?? > 
61                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
62                                             
63                                        <#else> 
64                                            <#assign fileUrl = imagePath + "/campagna-placeholder.png" /> 
65                                        </#if> 
66                                    <#else> 
67                                        <#assign fileUrl = imagePath + "/campagna-placeholder.png" />   
68                                    </#if> 
69                                 
70                                </#if> 
71                            <#elseif fileUrl == ""> 
72                                <#assign fileUrl = imagePath + "/campagna-placeholder.png" />  
73                            </#if> 
74 
75 
76                            <div class="rt-box rt-box--has-image rt-box--campagna"> 
77                                <div aria-label="${altImg?html}" class="rt-box__image" style="background-image: url('${fileUrl?html}');"> 
78                                </div> 
79 
80                                <div class="rt-box__text"> 
81                                    <#if curEntry.getTitle(locale)?? && curEntry.getTitle(locale) != ""> 
82                                        <div class="rt-box__title"> 
83                                            <a title="Vai a ${curEntry.getTitle(locale)?replace('"','&quot;')}" aria-label="Vai a ${curEntry.getTitle(locale)?replace('"','&quot;')}" href="${rendererURL}"> 
84                                                ${curEntry.getTitle(locale)} 
85                                            </a> 
86                                        </div> 
87                                    </#if> 
88                                    <div class="rt-box__button"> 
89									<#if article.getDDMStructureKey() == "35834" > 
90                                        <a href="${rendererURL}" class="rt-btn" title="Scopri la campagna ${curEntry.getTitle(locale)}" aria-label="Scopri la campagna ${curEntry.getTitle(locale)}"> 
91                                            Scopri la campagna 
92											<i aria-hidden="true" class="far fa-chevron-circle-right"></i> 
93                                        </a> 
94                                    <#else> 
95										<a href="${rendererURL}" class="rt-btn" title="Scopri l'evento ${curEntry.getTitle(locale)}" aria-label="Scopri l'evento ${curEntry.getTitle(locale)}"> 
96                                            Scopri l'evento 
97											<i aria-hidden="true" class="far fa-chevron-circle-right"></i> 
98                                        </a> 
99                                    </#if>  
100                                             
101                                    </div> 
102                                </div> 
103 
104                                 
105                            </div> 
106                        <#else> 
107                            </div> 
108                        </div> 
109                        <div class="col-md-12 portlet-column portlet-column-only" id="column-3"> 
110                            <div class="rt-wrapper rt-wrapper--grid-1-col"> 
111                                <#assign countArticle = countArticle+1 /> 
112                                <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
113 
114                                <div class="rt-box rt-box--has-image rt-box--campagna"> 
115 
116                                    <#assign ImmagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
117                                     
118                                    <#assign fileUrl = "" /> 
119                                    <#assign altImg = "" /> 
120 
121                                    <#if ImmagineCopertina?has_content && ImmagineCopertina != ""> 
122                                        <#assign json = jsonFactoryUtil.createJSONObject(ImmagineCopertina) /> 
123                                        <#assign nameImg = json.getString("name") /> 
124                                        <#assign altImg = json.getString("alt") /> 
125                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
126                                        <#assign uuiD = json.getString("uuid") /> 
127                                        <#assign groupId = json.getLong("groupId") /> 
128 
129                                        <#if fileEntryId != 0> 
130                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
131                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
132                                        <#else> 
133                                            <#if groupId != 0 && uuiD != ""> 
134                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
135                                                <#if fileEntry?? > 
136                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
137                                                <#else> 
138                                                    <#assign fileUrl = imagePath +  "/campagna-placeholder.png" /> 
139                                                </#if> 
140                                            <#else> 
141                                                <#assign fileUrl = imagePath +  "/campagna-placeholder.png" /> 
142                                            </#if> 
143                                         
144                                        </#if> 
145                                    <#else> 
146                                        <#assign fileUrl = imagePath +  "/campagna-placeholder.png" /> 
147                                    </#if> 
148 
149                                    <div aria-label="${altImg?html}" style="background-image: url('${fileUrl?html}');" class="rt-box__image"> 
150                                         
151                                    </div> 
152 
153                                    <div class="rt-box__text"> 
154                                        <#if curEntry.getTitle(locale)?? && curEntry.getTitle(locale) != ""> 
155                                            <div class="rt-box__title"> 
156                                                <a title="Vai a ${curEntry.getTitle(locale)?replace('"','&quot;')}" aria-label="Vai a ${curEntry.getTitle(locale)?replace('"','&quot;')}" href="${rendererURL}"> 
157                                                    ${curEntry.getTitle(locale)} 
158                                                </a> 
159                                            </div> 
160                                        </#if> 
161                                        <div class="rt-box__button"> 
162											<#if article.getDDMStructureKey() == "35834" > 
163												<a href="${rendererURL}" class="rt-btn" title="Scopri la campagna ${curEntry.getTitle(locale)}" aria-label="Scopri la campagna ${curEntry.getTitle(locale)}"> 
164                                                    Scopri la campagna 
165													<i aria-hidden="true" class="far fa-chevron-circle-right"></i> 
166												</a> 
167                                            <#else> 
168												<a href="${rendererURL}" class="rt-btn" title="Scopri l'evento ${curEntry.getTitle(locale)}" aria-label="Scopri l'evento ${curEntry.getTitle(locale)}"> 
169                                                    Scopri l'evento 
170													<i aria-hidden="true" class="far fa-chevron-circle-right"></i> 
171												</a> 
172                                            </#if> 
173                                        </div> 
174                                    </div>                                     
175                                </div> 
176                        </#if> 
177                    </#if> 
178                </#if> 
179            </#list> 
180        <#else> 
181            <h2>Al momento non ci sono contenuti per questa sezione.</h2> 
182        </#if> 
183         
184    </div> 
185 
186</div> 
187</div> 
188</section>