Elementi Navigazione

Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy126.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy126 object "com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl@4fb68ac8"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign dlDocument = dlAppService.get...  [in template "20116#20152#56374" at line 29, column 32]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") /> 
2 
3<#assign SPACE_KB = 1024 /> 
4<#assign SPACE_MB = SPACE_KB?int * 1024 /> 
5<#assign SPACE_GB = SPACE_MB?int * 1024 /> 
6<#assign SPACE_TB = SPACE_GB?int * 1024 /> 
7 
8<article class="webcontent"> 
9 
10    <div class="webcontent__text"> 
11        <#if Paragraph.getSiblings()?has_content > 
12         
13            <#list Paragraph.getSiblings() as p> 
14                 
15                <h2> ${p.ParagraphTitle.data}</h2> 
16                 
17                <p> ${p.ParagraphBody.data} </p> 
18                 
19                <#if p.ParagraphFile.getSiblings()?has_content > 
20                 
21                    <div class="file-list"> 
22                     
23                       <#list p.ParagraphFile.getSiblings() as file> 
24                        
25                           <#if file?? && validator.isNotNull(file.data) > 
26                               <#assign urlSplitted = file.data?split("/") /> 
27                               <#assign indexToken = urlSplitted?size - 1 /> 
28                               <#assign uuid = urlSplitted[indexToken]?split("?")[0] /> 
29                               <#assign dlDocument = dlAppService.getFileEntryByUuidAndGroupId(uuid,groupId) /> 
30                               <#assign dlDocumentSize = dlDocument.size?int /> 
31                                
32                               <#if dlDocumentSize lt SPACE_KB> 
33                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " Byte" /> 
34                                   <#elseif dlDocumentSize lt SPACE_MB> 
35                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_KB /> 
36                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " KB" /> 
37                                   <#elseif dlDocumentSize lt SPACE_GB > 
38                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_MB /> 
39                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " MB" /> 
40                               <#elseif dlDocumentSize lt SPACE_TB> 
41                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_GB /> 
42                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " GB" /> 
43                               <#else> 
44                                   <#assign dlDocumentSize = dlDocumentSize / SPACE_TB /> 
45                                   <#assign dlDocumentSize = dlDocumentSize?round?string + " TB" /> 
46                               </#if> 
47 
48                               <div class="file has-icon"> 
49                                   <i class="fa fa-file-pdf-o" aria-hidden="true"></i> 
50                                   <div class="file__name"> 
51                                    <#assign fileTitleSplit= dlDocument.getTitle()?split(".pdf") /> 
52                                    <a href="${file.data}" title="${dlDocument.getTitle()}" class="file__link" target="_blank">${fileTitleSplit[0]} 
53                                    </a> 
54                                   </div> 
55                                   <div class="file__info">(${dlDocument.extension?upper_case} ${dlDocumentSize})</div> 
56                               </div> 
57 
58                           </#if> 
59                            
60                       </#list> 
61                        
62                    </div> 
63                     
64                </#if> 
65                 
66            </#list> 
67             
68        </#if> 
69         
70    </div> 
71     
72</article> 
73 
74<#if LinkToPage?? && validator.isNotNull(LinkToPage.data)> 
75    <div class="webcontent__link"> 
76        <a href="${LinkToPage.data}" title="${LinkLabel.data}" class="btn-link">${LinkLabel.data}</a> 
77    </div> 
78</#if>