Chapelure

Une erreur s'est produite lors du traitement du gabarit.
Java method "com.sun.proxy.$Proxy127.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy127 object "it.ariadne.buzzi.dlFileEntryServiceWrapper.DlFileEntryServiceWrapper@2d7836ea"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign dlDocument = dlAppService.get...  [in template "20116#20152#52307" at line 92, column 32]
----
1<#include "${templatesPath}/SOCIAL-SHARE-MACRO" /> 
2<#assign  
3    serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()      
4    themeDisplay = serviceContext.getThemeDisplay()  
5    imageLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ImageLocalService")  
6/> 
7<#assign  
8    url = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()  
9    journalArticleAuthor = .vars['reserved-article-author-name'].data  
10/> 
11 
12<div class="container"> 
13 
14    <div class="row"> 
15 
16        <div class="col-sm-8 col-sm-offset-2"> 
17 
18            <!-- Web Content --> 
19            <article class="webcontent"> 
20                <figure class="webcontent__figure"> 
21 
22                    <#if NewsImage.getAttribute("alt") != ""> 
23                        <#assign alt = NewsImage.getAttribute("alt") /> 
24                    <#else> 
25                        <#assign alt = NewsTitle.getData() />   
26                    </#if>   
27 
28                    <#if NewsImage.getData()?? && NewsImage.getData() != ""> 
29                        <img data-fileentryid="${NewsImage.getAttribute("fileEntryId")}" alt="${alt}" src="${NewsImage.getData()}" class="webcontent__img" /> 
30                    </#if> 
31                </figure> 
32 
33                <#assign  
34                    imageWidth = 600 
35                    imageHeight = 600 
36                /> 
37                 
38                <#if NewsImage.getAttribute("id") ??> 
39                    <#assign imageId = NewsImage.getAttribute("id") /> 
40                </#if> 
41                <#if imageId?? && imageId != ""> 
42                    <#assign image = imageLocalService.fetchImage(imageId?number) /> 
43                    <#if image?? && image?has_content> 
44                        <#assign  
45                            imageWidth = image.getWidth() 
46                            imageHeight = image.getHeight() 
47                        /> 
48                    </#if> 
49                </#if> 
50 
51                <div class="webcontent__date"> 
52                    <#assign NewsDate_Data = getterUtil.getString(NewsDate.getData())> 
53                    <#assign displayDate = "" /> 
54 
55                    <#if validator.isNotNull(NewsDate_Data)> 
56                        <#assign NewsDate_DateObj = dateUtil.parseDate("yyyy-MM-dd", NewsDate_Data, locale)> 
57 
58						<#if locale == 'de_DE'> 
59							<#assign dateFormat = "dd.MMMMyyyy" /> 
60						<#else> 
61							<#assign dateFormat = "dd MMMM yyyy" /> 
62						</#if> 
63 
64                        <#assign displayDate = dateUtil.getDate(NewsDate_DateObj, dateFormat, locale) />                  
65                        ${displayDate} 
66                    </#if> 
67                </div> 
68 
69                <h1 class="webcontent__title">${NewsTitle.getData()}</h1> 
70 
71                <div class="webcontent__text"> 
72                    ${NewsBody.getData()} 
73                </div> 
74 
75                <#if NewsDocument?? && NewsDocument.getSiblings()?has_content > 
76 
77                    <#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") /> 
78 
79                    <#assign SPACE_KB = 1024 /> 
80                    <#assign SPACE_MB = SPACE_KB?int * 1024 /> 
81                    <#assign SPACE_GB = SPACE_MB?int * 1024 /> 
82                    <#assign SPACE_TB = SPACE_GB?int * 1024 /> 
83 
84                    <div class="file-list"> 
85 
86                       <#list NewsDocument.getSiblings() as file> 
87 
88                           <#if file?? && validator.isNotNull(file.data) > 
89                               <#assign urlSplitted = file.data?split("/") /> 
90                               <#assign indexToken = urlSplitted?size - 1 /> 
91                               <#assign uuid = urlSplitted[indexToken]?split("?")[0] /> 
92                               <#assign dlDocument = dlAppService.getFileEntryByUuidAndGroupId(uuid,groupId) /> 
93                               <#assign dlDocumentSize = dlDocument.size?int /> 
94 
95                               <#if dlDocumentSize lt SPACE_KB> 
96                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " Byte" /> 
97                                   <#elseif dlDocumentSize lt SPACE_MB> 
98                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_KB /> 
99                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " KB" /> 
100                                   <#elseif dlDocumentSize lt SPACE_GB > 
101                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_MB /> 
102                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " MB" /> 
103                               <#elseif dlDocumentSize lt SPACE_TB> 
104                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_GB /> 
105                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " GB" /> 
106                               <#else> 
107                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_TB /> 
108                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " TB" /> 
109                               </#if> 
110 
111                               <div class="file has-icon"> 
112                                   <i class="fa fa-file-pdf-o" aria-hidden="true"></i> 
113                                   <div class="file__name"><a href="${file.data}" title="${dlDocument.getTitle()}" class="file__link" target="_blank">${dlDocument.getTitle()}</a></div> 
114                                   <div class="file__info">(${dlDocument.extension?upper_case} ${dlDocumentSize})</div> 
115                               </div> 
116 
117                           </#if>                        
118 
119                       </#list> 
120                        
121                       <#assign urlImage = themeDisplay.getPortalURL() + NewsImage.getData() /> 
122                       <@shareContent title="${NewsTitle.getData()}" summary="${NewsBody.getData()}" detailURL="${url}" imageURL="${urlImage}"/> 
123 
124                    </div> 
125 
126                </#if> 
127 
128                <#include "${templatesPath}/SLIDER_MASTER" />                 
129                <#include "${templatesPath}/NEWS_ARTICLE_DETAIL_RICH_SNIPPET" /> 
130            </article> 
131 
132        </div> 
133 
134    </div> 
135 
136</div>