Při zpracování šablony došlo k chybě.
Java method "com.sun.proxy.$Proxy504.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy504 object "com.asseco.mpsv.portal.extensions.wrapper.JournalArticleLocalServiceHook@3e81cbba"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: journalArticle = JournalArticleLocalS...  [in template "20115#20151#945982" at line 10, column 5]
	- Reached through: #assign-container  [in template "20115#20151#945982" at line 6, column 1]
----
1<style> 
2.fotogallery .image { 
3    float: left; 
4
5</style> 
6<#assign 
7    DLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") 
8    JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
9    articleId = .vars['reserved-article-id'].data 
10    journalArticle = JournalArticleLocalService.getArticle(groupId, articleId) 
11    locale = .vars['locale'] 
12 
13    displayDate = journalArticle.getDisplayDate()?date  
14/> 
15<div id="aktualita-${articleId}" class="box"> 
16    <div class="box__title-holder"> 
17        <div class="row"> 
18            <div class="col-xs-12 col-md-9"> 
19                <h2 class="box__title box__title--page mb-a-15">${journalArticle.getTitle(locale)}</h2> 
20                <p class="mb-a-0">${displayDate?string("d. M. yyyy")}</p> 
21            </div> 
22        </div> 
23    </div> 
24    <div class="box__inner box__inner--title"> 
25        <div class="row"> 
26            <div class="col-xs-12 col-md-8 col-lg-7"> 
27                <#if journalArticle.getDescription(locale)?has_content> 
28                    <div class="box__block"> 
29                        <p class="bigger mb-a-0"> 
30                            ${journalArticle.getDescription(locale)}     
31                        </p> 
32                    </div> 
33                </#if> 
34                <div class="box__block"> 
35                    ${obsah.getData()}  
36                </div> 
37            </div> 
38            <div class="col-xs-12 col-md-offset-1 col-md-3 col-lg-offset-2"> 
39                <div class="box__block"> 
40                    <#if dokument.getData()?has_content || (priloha.getSiblings()?has_content && priloha.getSiblings()?first.getData()?has_content)> 
41                        <h4>Ke stažení</h4> 
42                        <ul class="navigation-list navigation-list--download no-bullets" aria-label="Seznam tiskových zpráv"> 
43                            <li class="navigation-list__item"> 
44                                <@printFileEntry downloadURL=dokument.getData() title="Aktualita" /> 
45                            </li> 
46                             
47                            <#if priloha.getSiblings()?has_content> 
48                            	<#list priloha.getSiblings() as cur_priloha> 
49                            	 
50                            	    <#if cur_priloha.getData()?has_content> 
51                                	    <#if cur_priloha.nazev.getData()?has_content> 
52                                	        <#assign nazev = cur_priloha.nazev.getData() /> 
53                                	    <#else> 
54                                	        <#assign nazev = "Příloha" /> 
55                                	    </#if> 
56                                	     
57                                	    <li class="navigation-list__item"> 
58                                	        <@printFileEntry downloadURL=cur_priloha.getData() title=nazev /> 
59                                        </li> 
60                                    </#if> 
61                            	</#list> 
62                            </#if> 
63                        </ul> 
64                    </#if> 
65                     
66                    <#if odkaz?? && odkaz.getSiblings()?has_content && odkaz.getSiblings()?first.getData()?has_content> 
67                        <h4>Odkazy</h4> 
68                        <ul class="navigation-list navigation-list--download no-bullets" aria-label="Seznam odkazu"> 
69                        	<#list odkaz.getSiblings() as cur_odkaz> 
70                        	    <li class="navigation-list__item"> 
71                            		<a href="${cur_odkaz.getData()}" class="with-icon with-icon--smaller"> 
72                            		    <span class="text-underline"> 
73                                		    <#if cur_odkaz.titulekOdkazu.getData()?has_content> 
74                                		        ${cur_odkaz.titulekOdkazu.getData()} 
75                                		    <#else> 
76                                		        ${cur_odkaz.getData()} 
77                                		    </#if> 
78                                		</span> 
79                            		</a> 
80                            	</li> 
81                        	</#list> 
82                        </ul> 
83                    </#if> 
84                </div> 
85                <#if autor?? && autor.getData()?has_content> 
86                    <div class="box__block"> 
87                        <h4>Autor:</h4> 
88                        <p>${autor.getData()} 
89                            <#if autor.telefon.getData()?has_content> 
90                                <br> 
91                                telefon: <a href="tel:${autor.telefon.getData()}">${autor.telefon.getData()}</a> 
92                            </#if> 
93                            <#if autor.email.getData()?has_content>                              
94                                <br> 
95                                e-mail: <a href="mailto:${autor.email.getData()}">${autor.email.getData()}</a> 
96                            </#if> 
97                        </p> 
98                    </div> 
99                </#if> 
100            </div> 
101        </div> 
102        <#if fotogalerie?? && fotogalerie.getSiblings()?has_content && fotogalerie.getSiblings()?first.getData()?has_content> 
103            <div class="row fotogallery"> 
104                <div class="col-xs-12"> 
105                    <#list fotogalerie.getSiblings() as cur_fotogalerie> 
106                		<div class="image image-${cur_fotogalerie?index} pr-a-5"> 
107                            <a href="${cur_fotogalerie.getData()}" class="img-href" title="${cur_fotogalerie.alt.getData()}"> 
108                                <img src="${cur_fotogalerie.getData()}" width="${cur_fotogalerie.width.getData()}" height="${cur_fotogalerie.height.getData()}"/> 
109                            </a> 
110                        </div> 
111                	</#list> 
112                </div> 
113            </div> 
114             
115            <script type="text/javascript"> 
116                YUI().use( 
117                    'aui-node', 
118                    'aui-image-viewer', 
119                    function(Y) { 
120                        new Y.ImageViewer( 
121
122                            links: '#aktualita-${articleId} .fotogallery a.img-href', 
123                            zIndex: 4, 
124                            captionFromTitle: true, 
125                            infoTemplate: 'Obrázek {current} z {total}', 
126                            imageAnim: { 
127                                duration: 0.5, 
128                                easing: 'easeIn' 
129                            }, 
130                            playing: false 
131
132                        ).render(); 
133
134                ); 
135            </script> 
136        </#if> 
137    </div> 
138</div> 
139 
140<#macro printFileEntry downloadURL title> 
141 
142    <#assign 
143        i = 0 
144        docUuid = null! 
145    /> 
146 
147    <#list downloadURL?split("/") as x> 
148        <#if i == 2> 
149            <#assign docGroupId = x> 
150        <#elseif i == 3> 
151            <#assign docFolderId = x> 
152        <#elseif i == 4> 
153            <#assign docName = x> 
154        <#elseif i == 5> 
155            <#assign docUuid = x> 
156        </#if> 
157        <#assign i = i + 1> 
158    </#list> 
159     
160    <#if docUuid?contains("?")> 
161        <#assign docUuid = docUuid?split("?")[0] /> 
162    </#if> 
163     
164    <#if docGroupId?has_content && docUuid?has_content> 
165        <#assign fileEntry = DLAppLocalService.getFileEntryByUuidAndGroupId(docUuid, docGroupId?number) /> 
166    <#elseif docGroupId?has_content && docFolderId?has_content && docName?has_content> 
167        <#attempt> 
168            <#assign fileEntry = DLAppLocalService.getFileEntry(docGroupId?number, docFolderId?number, docName) /> 
169        <#recover> 
170        </#attempt> 
171    </#if> 
172     
173    <#if fileEntry?has_content> 
174        <a class="download-icon" href="${downloadURL}" target="_blank"> 
175            <span class="mpsv-icons-${fileEntry.getExtension()}"></span> 
176		    <span> 
177		        <#assign  
178		            fileName = title + "." + fileEntry.getExtension()  
179		        /> 
180		        <span class="text-underline">${fileName}</span> 
181		        <@createSpanForDoc fileEntry = fileEntry /> 
182		    </span> 
183		</a> 
184    </#if> 
185</#macro> 
186 
187<#macro createSpanForDoc fileEntry> 
188    <#assign  
189        fileSize = fileEntry.getSize() 
190        fileSizeType = "B"  
191    /> 
192     
193    <#list 1..2 as i> 
194        <#if fileSize gt 1024> 
195            <#assign fileSize = fileSize / 1024> 
196            <#if i == 1> 
197                <#assign fileSizeType = "kB"> 
198            <#else> 
199                <#assign fileSizeType = "MB"> 
200            </#if> 
201        </#if> 
202    </#list> 
203     
204    <span class="text-sm ml-a-5">(${fileSize?round} ${fileSizeType})</span>       
205 
206</#macro>