Při zpracování šablony došlo k chybě.
Java method "com.sun.proxy.$Proxy136.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy136 object "com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl@500a0166"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign docEntry = DLAppLocalService...  [in template "20115#20151#845727" in macro "printFileEntry" at line 95, column 5]
	- Reached through: @printFileEntry url=link titul=nazev  [in template "20115#20151#845727" at line 38, column 33]
----
1<style> 
2.asseco-theme.body__wrapper .calendar-events-title { 
3    display: block; 
4
5</style> 
6<#assign 
7    DLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") 
8/> 
9<#if entries?has_content> 
10    <div class="box__inner"> 
11    	<#list entries as curEntry> 
12    		<#assign  
13    		    renderer = curEntry.getAssetRenderer() 
14	            journalArticle = renderer.getArticle() 
15	             
16	            displayDate = journalArticle.getDisplayDate() 
17 
18	            doc = saxReaderUtil.read(journalArticle.getContent()) 
19                nazev = doc.valueOf("//dynamic-element[@name='nazev']/dynamic-content/text()") 
20                popis = doc.valueOf("//dynamic-element[@name='popis']/dynamic-content/text()")?replace('style=".*?"', '', 'rs') 
21                misto = doc.valueOf("//dynamic-element[@name='misto']/dynamic-content/text()") 
22                link = doc.valueOf("//dynamic-element[@name='dokument']/dynamic-content/text()") 
23                url = doc.valueOf("//dynamic-element[@name='url']/dynamic-content/text()") 
24                datum = doc.valueOf("//dynamic-element[@name='datum']/dynamic-content/text()") 
25                vlajky = doc.valueOf("//dynamic-element[@name='vlajky']/dynamic-content")?word_list 
26            /> 
27            <#if !link?has_content || link == ""> 
28                <#assign link = url /> 
29            </#if> 
30             
31            <#if datum?has_content> 
32                <#assign displayDate = datum?date("yyyy-MM-dd") /> 
33            </#if> 
34 
35    		<div class="calendar-events__single"> 
36    		    <#if link?has_content> 
37    		        <#if link?starts_with("/documents/")> 
38		                <@printFileEntry url=link titul=nazev /> 
39		            <#else> 
40		                <a href="${link}" class="calendar-events-title calendar-events__link-title h3"> 
41        		            ${nazev} 
42                        </a> 
43		            </#if> 
44    		         
45    		    <#else> 
46                    <span class="calendar-events-title calendar-events__span-title h3"> 
47                        ${nazev} 
48                    </span> 
49                </#if> 
50                <p>${popis}</p> 
51                <p class="calendar-events__meta"> 
52                    <span class="calendar-events__date"> 
53                        <time datetime="${displayDate?string("yyyy-MM-dd")}">${displayDate?string("dd. MM. yyyy")}</time> 
54                    </span> 
55                    <#assign cssClass = "" /> 
56                    <#if vlajky?size gt 0> 
57                        <#assign cssClass = "calendar-events__date" /> 
58                    </#if> 
59                    <span class="calendar-events__place ${cssClass}">${misto}</span> 
60                     
61                    <#if vlajky?size gt 0> 
62                        <#list vlajky as vlajka> 
63                            <#if vlajka?has_content> 
64                                <img class="mb-a-0" height="20" src="/documents/37855/1011564/${vlajka}.jpg" /> 
65                            </#if> 
66                        </#list> 
67                    </#if> 
68                </p> 
69            </div> 
70    	</#list> 
71	</div> 
72<#else> 
73    <div class="box__inner"> 
74        <p>Pro daný rok nebyly nalezeny žádné záznamy.</p> 
75    </div> 
76</#if> 
77 
78<#macro printFileEntry url titul> 
79    <#assign i = 0> 
80    <#list url?split("/") as x> 
81        <#if i == 2> 
82            <#assign docGroupId = x> 
83        <#elseif i == 3> 
84            <#assign docFileEntryId = x> 
85        <#elseif i == 4> 
86            <#assign docName = x> 
87        <#elseif i == 5> 
88            <#assign docUuid = x> 
89        </#if> 
90        <#assign i = i + 1> 
91    </#list> 
92     
93    <#assign docUuid = docUuid?replace("\\?t=.*$", "", "r") /> 
94     
95    <#assign docEntry = DLAppLocalService.getFileEntryByUuidAndGroupId(docUuid, docGroupId?number) /> 
96     
97    <#if docEntry??> 
98        <#assign  
99            sizeStr = " kB" 
100            size = docEntry.getSize() / 1024 
101        /> 
102        <#if size < 1024> 
103            <#assign  
104                sizeStr = size?int + sizeStr 
105            /> 
106        <#else> 
107            <#assign  
108                size = size / 1024 
109                sizeStr = size?string("#.##") + " MB" 
110            /> 
111        </#if> 
112        <a href="${url}" class="calendar-events-title calendar-events__link-title h3 link-no-decoration"> 
113            <span class="text-underline">${titul}</span> 
114            <span class="text-sm ml-a-5">(${docEntry.getExtension()?upper_case} ${sizeStr})</span> 
115        </a> 
116    </#if> 
117</#macro>