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