Europa

Tutti i bandi, le opportunità e le informazioni riguardanti i fondi europei: Fondo Sociale Europeo, Programma di Sviluppo rurale, Programma interregionale marittimo, ecc.
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy93.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy93 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl@3cd3e953"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = DLFileEntryLocalS...  [in template "10154#10192#19105989" at line 63, column 41]
----
1<#assign siteBaseURL = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL() /> 
2<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() /> 
3<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] /> 
4<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] /> 
5 
6<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
7<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
8 
9<section class="container rt-content" id="content"> 
10    <div class="row"> 
11        <div class="col-md-12 portlet-column portlet-column-only" id="column-2"> 
12                 
13            <div class="rt-wrapper rt-wrapper--grid rt-wrapper--grid-3-col"> 
14                <#assign countArticle = 0 /> 
15                <#if entries?has_content> 
16                    <#list entries as curEntry> 
17                        <#assign assetRenderer = curEntry.getAssetRenderer() /> 
18                        <#assign className = assetRenderer.getClassName() /> 
19                        <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
20                        <#if className = "com.liferay.journal.model.JournalArticle" > 
21                            <#assign article = assetRenderer.getArticle() /> 
22                            <#if article?? > 
23 
24                                <#assign countArticle = countArticle+1 /> 
25                                <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
26 
27                                <#assign titoloSpeciale = docXml.valueOf("//dynamic-element[@name='TestoPrincipale']/dynamic-content/text()") /> 
28 
29                                <#assign pageToRefer = docXml.valueOf("//dynamic-element[@name='PaginaDiRiferimento']/dynamic-content/text()") /> 
30                                 
31                                <#assign referURL = "#" /> 
32                                <#if pageToRefer?? && pageToRefer?has_content> 
33                                    <#assign layoutSplitted = pageToRefer?split("@") /> 
34 
35                                    <#assign layoutId = getterUtil.getLong(layoutSplitted[0]) /> 
36                                    <#assign groupId = getterUtil.getLong(layoutSplitted[2]) /> 
37 
38                                     
39                                    <#assign layout = LayoutLocalService.getLayout(groupId, false , layoutId) /> 
40 
41                                    <#assign referURL = siteBaseURL + layout.getFriendlyURL(locale) /> 
42 
43                                </#if> 
44                                <#assign ImmagineSfondoBanner = docXml.valueOf("//dynamic-element[@name='ImmagineSfondoBanner']/dynamic-content/text()") /> 
45                                <#assign ImmagineBannerTema = docXml.valueOf("//dynamic-element[@name='ImmagineBannerTema']/dynamic-content/text()") /> 
46                                 
47                                <#assign noBannerTema = "true" /> 
48                                <#assign haveNoImage = "true" /> 
49 
50                                <#assign fileUrl = "" /> 
51                                <#assign altImg = "" /> 
52 
53 
54                                <#if ImmagineBannerTema?has_content> 
55                                    <#assign json = jsonFactoryUtil.createJSONObject(ImmagineBannerTema) /> 
56                                    <#assign nameImg = json.getString("name") /> 
57                                    <#assign altImg = json.getString("alt") /> 
58                                    <#assign fileEntryId = json.getLong("fileEntryId") /> 
59                                    <#assign uuiD = json.getString("uuid") /> 
60                                    <#assign groupId = json.getLong("groupId") /> 
61 
62                                    <#if fileEntryId != 0> 
63                                        <#assign fileEntry = DLFileEntryLocalService.getFileEntry(fileEntryId) />  
64                                        <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
65                                        <#assign noBannerTema = "false" /> 
66                                    </#if>  
67                                                     
68                                </#if> 
69 
70                                <#if ImmagineSfondoBanner?? && ImmagineSfondoBanner != "" && fileUrl == ""> 
71                                    <#assign json = jsonFactoryUtil.createJSONObject(ImmagineSfondoBanner) /> 
72                                    <#assign nameImg = json.getString("name") /> 
73                                    <#assign altImg = json.getString("alt") /> 
74                                    <#assign fileEntryId = json.getLong("fileEntryId") /> 
75                                    <#assign uuiD = json.getString("uuid") /> 
76                                    <#assign groupId = json.getLong("groupId") /> 
77                                    <#if fileEntryId != 0> 
78                                        <#assign fileEntry = DLFileEntryLocalService.getFileEntry(fileEntryId) />  
79                                        <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
80                                    <#else> 
81                                        <#if groupId != 0 && uuiD != ""> 
82                                            <#assign fileEntry = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
83                                            <#if fileEntry?? > 
84                                                <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
85                                            </#if> 
86                                        </#if>      
87                                    </#if> 
88                                </#if> 
89 
90                                <#if fileUrl?? && fileUrl != ""> 
91                                    <#assign haveNoImage = "false" /> 
92 
93                                    <div class="rt-box rt-box--has-image"> 
94                                        <div class="rt-box__image" aria-label="${altImg}" style="background-image: url('${fileUrl?html}');"> 
95                                        </div> 
96 
97                                        <div class="rt-box__text"> 
98                                            <div class="rt-box__title"> 
99                                                <a title="Vai alla pagina dello speciale ${titoloSpeciale}" aria-label="Vai alla pagina dello speciale ${titoloSpeciale}" href="${referURL?html}"> 
100                                                    ${titoloSpeciale} 
101                                                </a> 
102                                            </div> 
103                                            <#assign titoloSecondario = docXml.valueOf("//dynamic-element[@name='TestoLinkSecondario']/dynamic-content/text()") /> 
104                                            <#if titoloSecondario?? && titoloSecondario != ""> 
105                                                <div class="rt-box__description"> 
106                                                    <p>${titoloSecondario}</p> 
107                                                </div> 
108                                            </#if> 
109                                             <div class="rt-box__button"> 
110                                                <a href="${referURL?html}" class="rt-btn" title="Scopri lo speciale ${titoloSpeciale}" aria-label="Scopri lo speciale ${titoloSpeciale}">Scopri lo speciale <i aria-hidden="true" class="far fa-chevron-circle-right"></i></a> 
111                                            </div> 
112                                        </div> 
113 
114                                        
115                                    </div> 
116                                </#if> 
117 
118                                <#if haveNoImage == "true"> 
119 
120                                    <#assign haveNoImage = "false" /> 
121 
122                                    <#assign GradienteBanner = docXml.valueOf("//dynamic-element[@name='GradienteBanner']/dynamic-content/text()") /> 
123                                    <#assign LogoHeaderImmagine = docXml.valueOf("//dynamic-element[@name='LogoHeaderImmagine']/dynamic-content/text()") /> 
124 
125                                    <#if LogoHeaderImmagine?? && LogoHeaderImmagine != ""> 
126                                        <#assign json = jsonFactoryUtil.createJSONObject(LogoHeaderImmagine) /> 
127                                        <#assign nameImg = json.getString("name") /> 
128                                        <#assign altImg = json.getString("alt") /> 
129                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
130                                        <#assign uuiD = json.getString("uuid") /> 
131                                        <#assign groupId = json.getLong("groupId") /> 
132                                        <#if fileEntryId != 0> 
133                                            <#assign fileEntry = DLFileEntryLocalService.getFileEntry(fileEntryId) />  
134                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
135                                        <#else> 
136                                            <#if groupId != 0 && uuiD != ""> 
137                                                <#assign fileEntry = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuiD,groupId) /> 
138                                                <#if fileEntry?? > 
139                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
140                                                </#if> 
141                                            </#if>      
142                                        </#if> 
143                                    </#if> 
144 
145                                    <#if fileUrl?? && fileUrl != ""> 
146                                        <div class="rt-box rt-box--has-image"> 
147                                            <div class="rt-box__image"> 
148                                                <div class="rt-box__logo" style="background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, ${GradienteBanner}, 100%);" > 
149                                                    <img src="${fileUrl}" alt="${altImg}"> 
150                                                </div> 
151                                            </div> 
152 
153                                            <div class="rt-box__text"> 
154                                                <div class="rt-box__title"> 
155                                                    <a title="Vai alla pagina dello speciale ${titoloSpeciale}" aria-label="Vai alla pagina dello speciale ${titoloSpeciale}" href="${referURL?html}"> 
156                                                        ${titoloSpeciale} 
157                                                    </a> 
158                                                </div> 
159                                                <#assign titoloSecondario = docXml.valueOf("//dynamic-element[@name='TestoLinkSecondario']/dynamic-content/text()") /> 
160                                                <#if titoloSecondario?? && titoloSecondario != ""> 
161                                                    <div class="rt-box__description"> 
162                                                        <p>${titoloSecondario}</p> 
163                                                    </div> 
164                                                </#if> 
165                                                 <div class="rt-box__button"> 
166                                                    <a href="${referURL?html}" class="rt-btn" title="Scopri lo speciale ${titoloSpeciale}" aria-label="Scopri lo speciale ${titoloSpeciale}">Scopri lo speciale <i aria-hidden="true" class="far fa-chevron-circle-right"></i></a> 
167                                                </div> 
168                                            </div> 
169 
170                                            
171                                        </div> 
172 
173                                    <#else> 
174                                        <#assign haveNoImage = "true" /> 
175                                    </#if> 
176 
177                                </#if> 
178 
179                                <#if haveNoImage == "true"> 
180                                    <div class="rt-box rt-box--has-image"> 
181                                        <div class="rt-box__image" aria-label="Speciale" style="background-image: url('${imagePath}/campagna-placeholder.png');"> 
182                                        </div> 
183 
184                                        <div class="rt-box__text"> 
185                                            <div class="rt-box__title"> 
186                                                <a title="Vai alla pagina dello speciale ${titoloSpeciale}" aria-label="Vai alla pagina dello speciale ${titoloSpeciale}" href="${referURL?html}"> 
187                                                    ${titoloSpeciale} 
188                                                </a> 
189                                            </div> 
190                                            <#assign titoloSecondario = docXml.valueOf("//dynamic-element[@name='TestoLinkSecondario']/dynamic-content/text()") /> 
191                                            <#if titoloSecondario?? && titoloSecondario != ""> 
192                                                <div class="rt-box__description"> 
193                                                    <p>${titoloSecondario}</p> 
194                                                </div> 
195                                            </#if> 
196                                             <div class="rt-box__button"> 
197                                                <a href="${referURL?html}" class="rt-btn" title="Scopri lo speciale ${titoloSpeciale}" aria-label="Scopri lo speciale ${titoloSpeciale}">Scopri lo speciale <i aria-hidden="true" class="far fa-chevron-circle-right"></i></a> 
198                                            </div> 
199                                        </div> 
200 
201                                    </div> 
202                                </#if> 
203                            </#if> 
204                        </#if> 
205                    </#list> 
206                <#else> 
207                    <h2>Al momento non ci sono speciali per questa sezione.</h2> 
208                </#if> 
209         
210            </div> 
211        </div> 
212    </div> 
213</section>