Fehler bei der Verarbeitung der Vorlage.
Java method "com.sun.proxy.$Proxy125.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy125 object "com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl@8a6e85a"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign Datei = DLAppServiceUtil.getF...  [in template "20116#20152#33580" at line 152, column 21]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign groupService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") /> 
3<#assign umTemplateService = serviceLocator.findService("de.xdot.um.template.UmTemplateService") /> 
4 
5<#assign groupObj = groupService.getGroup(groupId) /> 
6<#assign groupName = groupObj.getDescriptiveName(locale) /> 
7 
8<#assign layoutSet = groupObj.getPublicLayoutSet() /> 
9<#assign hostname = layoutSet.getVirtualHostname()/> 
10 
11<div class="print-header"> 
12${groupName} - https://${hostname} 
13</div> 
14 
15 
16<div class="artikel"> 
17 
18<#if Spitzmarke.getData()!=""> 
19    <h2 class="spitzmarke">${Spitzmarke.getData()}</h2> 
20</#if> 
21 
22 
23    <div class="green-line"></div> 
24 
25 
26    <h1 class="h1--large">${Ueberschrift.getData()}</h1> 
27 
28<#if BildMitBildunterschrift??> 
29 
30    <#if BildMitBildunterschrift.getSiblings()?has_content> 
31 
32        <#if (BildMitBildunterschrift.getSiblings()?size>1)> 
33            <@imageTextSlider/> 
34        <#else> 
35 
36            <#list BildMitBildunterschrift.getSiblings() as cur_Bild> 
37                <#if cur_Bild.Bild.getData()?has_content> 
38                    <div class="teaser-image no-carousel"> 
39                        <@createImageTag imageUrl="${cur_Bild.Bild.getData()}" bildunterschrift="${cur_Bild.Bildunterschrift.getData()}"/> 
40                    </div> 
41                </#if> 
42            </#list> 
43 
44        </#if> 
45 
46    </#if> 
47</#if> 
48 
49 
50    <div class="teaser-content"> 
51 
52    ${umTemplateService.addCopyright(Inhalt.data, locale)} 
53 
54 
55    <#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
56 
57    <#if (WeitereInformationen.getSiblings()?has_content)  && 
58    (WeitereInformationen.getSiblings()?size>0) && 
59    ((WeitereInformationen.getSiblings()[0].Linktext.getData()?has_content) || 
60    (WeitereInformationen.getSiblings()[0].InternerLink.getFriendlyUrl()?has_content)) || 
61     ( (WeitereInformationen.getSiblings()[0].article?? && WeitereInformationen.getSiblings()[0].article.data?has_content) )> 
62 
63        <h2 class="h2">Weitere Informationen</h2> 
64 
65        <#assign weitereInformationenListe=WeitereInformationen.getSiblings()/> 
66 
67        <#list weitereInformationenListe as cur_WeitereInformationen> 
68 
69            <#assign tlink=""/> 
70 
71        <#-- if internal link, use page name as default link text --> 
72            <#if (cur_WeitereInformationen.InternerLink??) && 
73            (cur_WeitereInformationen.InternerLink.getFriendlyUrl()?has_content)> 
74 
75                <#assign tlink = cur_WeitereInformationen.InternerLink.getFriendlyUrl()> 
76 
77            <#-- always use relative URL --> 
78                <#if tlink?starts_with("http")> 
79                    <#assign tlink = "/"+tlink?split("/")[3]> 
80                </#if> 
81 
82            <#-- page might have been deleted --> 
83                <#assign tlink_text=""> 
84 
85 
86                <#if (layoutService.fetchLayoutByFriendlyURL( getterUtil.getLong(groupId), getterUtil.getBoolean(false), tlink)??)> 
87 
88                    <#assign layout = layoutService.fetchLayoutByFriendlyURL( getterUtil.getLong(groupId), getterUtil.getBoolean(false), tlink) /> 
89 
90                    <#assign tlink_text = layout.getName(locale)/> 
91 
92                </#if> 
93 
94            </#if> 
95 
96 
97            <#assign linktarget=""> 
98 
99            <#if ! tlink?has_content> 
100                <#assign tlink = cur_WeitereInformationen.ExternerLink.getData()> 
101                <#assign linktarget="_blank"> 
102            </#if> 
103 
104            <#if ! tlink?has_content> 
105                <#if (cur_WeitereInformationen.article?? && cur_WeitereInformationen.article.data?has_content)> 
106                    <#assign 
107                        entryInfo = cur_WeitereInformationen.article.data?eval 
108                        entryClassPK = getterUtil.getLong(entryInfo.classPK) 
109                        article = journalArticleLocalService.fetchLatestArticle(entryClassPK) 
110                        tlink = "/-/" + article.urlTitle 
111                        linktarget = "" 
112                        tlink_text = article.getTitle(locale) 
113                    /> 
114                </#if> 
115            </#if> 
116 
117        <#-- overwrite linktext, if editor has set it manually --> 
118            <#if (cur_WeitereInformationen.Linktext.getData()?has_content)> 
119                <#assign tlink_text = cur_WeitereInformationen.Linktext.getData()> 
120            </#if> 
121 
122            <div class="weiterer-link"> 
123 
124                <a class="mehr-link" href="${tlink}" target="${linktarget}" alt="${tlink_text}" 
125                   title="${tlink_text}">${tlink_text}</a> 
126 
127            </div> 
128 
129 
130        </#list> 
131 
132 
133    </#if> 
134 
135    <#if ZumHerunterladen??> 
136 
137        <#if (ZumHerunterladen.PdfDatei.getSiblings()?has_content) && 
138        (ZumHerunterladen.PdfDatei.getSiblings()?size>0) && 
139        (ZumHerunterladen.PdfDatei.getSiblings()[0].getData()?has_content)> 
140 
141 
142 
143            <h2>Zum Herunterladen</h2> 
144 
145            <#list  ZumHerunterladen.PdfDatei.getSiblings() as cur_Datei> 
146                <#if cur_Datei.getData()?has_content> 
147 
148                    <#assign fileUrl = getterUtil.getString(cur_Datei.getData())> 
149                    <#assign fileUid = stringUtil.extractLast(fileUrl, "/")> 
150 
151                    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
152                    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(fileUid,groupId)> 
153 
154                    <#if (Datei.getDescription()?has_content)> 
155                        <#assign dateiText=Datei.getDescription()> 
156                    <#else> 
157                        <#assign dateiText=Datei.getTitle()> 
158                    </#if> 
159 
160                <#-- Add the filesize to linktext --> 
161                    <#if Datei??> 
162                        <#assign fileSize = ((Datei.getSize()/1024)?round)/> 
163                        <#assign unit="KB"/> 
164 
165                        <#if (fileSize > 1000) > 
166                            <#setting locale="de_DE"> 
167                            <#assign fileSize = (fileSize / 1024)?string["0.#"]/> 
168                            <#assign unit="MB"/> 
169                        </#if> 
170 
171                        <#assign dateiGroesse="["+fileSize+" "+unit+"]"/> 
172                        <#assign dateiText+= " " + dateiGroesse> 
173                    </#if> 
174 
175                    <div class="weiterer-link"> 
176                        <a href="${fileUrl}" target="_blank" alt="${dateiText}" 
177                           title="${dateiText}">${dateiText}</a><br/> 
178                    </div> 
179 
180                </#if> 
181            </#list> 
182        </#if> 
183 
184    </#if> 
185 
186 
187    </div> 
188 
189</div> 
190 
191 
192 
193 
194<#-- image text slider --> 
195 
196 
197 
198 
199<#macro imageTextSlider> 
200 
201 
202<section class="carousel-container slider-articlepage"> 
203    <div class="carousel slide carousel-fade" data-ride="carousel" id="carousel"> 
204        <div class="indicators-wrapper"> 
205            <button class="ctrlTogglePlay playing">&nbsp;</button> 
206            <ol class="carousel-indicators"> 
207                <#list BildMitBildunterschrift.getSiblings() as cur_images> 
208                    <li class="${(cur_images?counter == 1)?then('active', '')}" 
209                        data-slide-to="${(cur_images?counter == 1)?then(0, (cur_images?counter - 1))}" 
210                        data-target='#carousel'></li> 
211                </#list> 
212            </ol> 
213        </div> 
214        <a class="left carousel-control" href='#carousel' role="button" data-slide="prev"> 
215            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> 
216            <span class="sr-only">Previous</span> 
217        </a> 
218 
219 
220        <a class="right carousel-control" href='#carousel' role="button" data-slide="next"> 
221            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> 
222            <span class="sr-only">Next</span> 
223        </a> 
224 
225 
226        <div class="carousel-inner" role="listbox"> 
227            <#list BildMitBildunterschrift.getSiblings() as cur_images> 
228                <div class="${(cur_images?counter == 1)?then('active', '')} item" role="option"> 
229                    <div class="teaser-image"> 
230                        <@createImageTag imageUrl="${cur_images.Bild.getData()}" bildunterschrift="${cur_images.Bildunterschrift.getData()}"/> 
231                    </div> 
232                </div> 
233            </#list> 
234        </div> 
235    </div> 
236</section> 
237 
238 
239</#macro> 
240 
241<script> 
242    $(document).ready(function () { 
243 
244        $('.ctrlTogglePlay').on('click', function () { 
245 
246            if($(this).hasClass('playing')) { 
247                $('.carousel').carousel('pause'); 
248                // console.log('stop'); 
249            }else { 
250                $('.carousel').carousel('cycle'); 
251                //  console.log('play'); 
252
253 
254            $(this).toggleClass('playing') 
255 
256        }); 
257 
258        $('.carousel').carousel({ 
259            interval: 5000, 
260            pause: "false" 
261        }); 
262    }); 
263</script> 
264 
265 
266 
267 
268<#macro createImageTag imageUrl bildunterschrift> 
269 
270    <#assign altTag="alt-tag"> 
271    <#assign bildnachweis=""> 
272 
273    <#assign imageFileUid = stringUtil.extractLast(imageUrl, "/")> 
274 
275    <#if (stringUtil.extractFirst(imageFileUid, "t")??)> 
276        <#assign imageFileUid = stringUtil.extractFirst(imageFileUid, "t")/> 
277        <#assign imageFileUid= imageFileUid?substring(0,imageFileUid?length-1)/> 
278    </#if> 
279 
280 
281    <#assign dlimageFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
282    <#assign dlimageFileEntryTypeService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService")> 
283    <#assign dlFileVersionService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileVersionLocalService")> 
284    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
285    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(imageFileUid,groupId)> 
286    <#assign imageFileEntry = dlimageFileEntryService.getFileEntryByUuidAndGroupId(Datei.getUuid() , Datei.getGroupId() ) /> 
287 
288    <#assign imageFileEntryTypeId = imageFileEntry.getFileEntryTypeId() /> 
289 
290    <#if imageFileEntryTypeId gt 0 > 
291        <#assign imageFileEntryType = dlimageFileEntryTypeService.getDLFileEntryType(imageFileEntryTypeId) /> 
292        <#assign dlFileVersion = dlFileVersionService.getLatestFileVersion(imageFileEntry.getUserId(), imageFileEntry.getFileEntryId()) /> 
293        <#assign fieldsMap = imageFileEntry.getDDMFormValuesMap(dlFileVersion.getFileVersionId()) /> 
294 
295        <#list fieldsMap?keys as ddmFormKey> 
296 
297            <#assign ddmForm = fieldsMap[ddmFormKey]/> 
298 
299            <#list ddmForm.getDDMFormFieldValues() as formField> 
300            <#--name= ${formField.getName()}  value= ${formField.getValue().getString(locale)}<br/>--> 
301 
302                <#if formField.getName() == 'AltTag'> 
303                    <#assign altTag = formField.getValue().getString(locale) /> 
304                </#if> 
305 
306                <#if formField.getName() == 'Bildnachweis'> 
307                    <#assign bildnachweis = formField.getValue().getString(locale) /> 
308                </#if> 
309 
310            </#list> 
311 
312        </#list> 
313 
314    </#if> 
315 
316<#--<div class="teaser-image-wrapper">--> 
317<img src="${imageUrl}" alt="${altTag}" title="${altTag}"/> 
318<#--<a href="#" class="btn btn-default btn-prev mycarousel-prev"><span class="icon icon-chevron-left"></span></a>--> 
319<#--<a href="#" class="btn btn-default btn-next mycarousel-next"><span class="icon icon-chevron-right"></span></a>--> 
320<#--</div>--> 
321 
322<div class="bildunterschrift">${bildunterschrift}</div> 
323<div class="bildnachweis">Quelle: ${bildnachweis}</div> 
324 
325</#macro>