An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy158.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy158 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl@2bbe4d15"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign dlFileEntry = DLFileEntryServ...  [in template "20116#20152#BKS-JOB-OFFER" in function "getDLFileEntry" at line 131, column 25]
	- Reached through: #assign dlFileEntry = getDLFileEntry(...  [in template "20116#20152#BKS-JOB-OFFER" in function "getDLFileEntryAltText" at line 123, column 25]
	- Reached through: #assign altText = getDLFileEntryAltTe...  [in template "20116#20152#BKS-JOB-OFFER" at line 57, column 73]
----
1<#assign 
2	ait_contentreplacer = taglibLiferayHash["/META-INF/ait-contentreplacer.tld"] 
3	 
4	DLFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') 
5/> 
6 
7<@ait_contentreplacer["replace-content"]> 
8 
9	<#assign 
10		labelOnlineApplication = languageUtil.get(locale, "bks-label-online-application") 
11	/> 
12 
13	<div class="portlet-boundary portlet-borderless portlet-journal-content"> 
14		<div class="portlet"> 
15			<div class="portlet-content"> 
16				<div class=" portlet-content-container"> 
17					<div class="portlet-body"> 
18						<div class="journal-content-article"> 
19							<div class="content-large"> 
20                                <#if HeadingHtml??> 
21	                                <div class="job-headline"> 
22                                        ${HeadingHtml.getData()} 
23	                                </div> 
24                                <#else> 
25	                                <h1 class="job-headline">${Heading.getData()}</h1> 
26                                </#if> 
27								<p> 
28									<span class="job-location">${Region.getData()}</span> 
29									<#if Anstellungsverhaeltnis.getData()?? && Anstellungsverhaeltnis.getData() != ''> 
30										<span>,&nbsp;</span> 
31										<span class="job-contract">${Anstellungsverhaeltnis.getData()}</span> 
32									</#if> 
33									<#if Berufserfahrung.getData()?? && Berufserfahrung.getData() != ''> 
34										<span>,&nbsp;</span> 
35										<span class="job-experience">${Berufserfahrung.getData()}</span> 
36									</#if> 
37								</p> 
38							</div> 
39						</div> 
40					</div> 
41				</div> 
42			</div> 
43		</div> 
44	</div> 
45 
46	<div class="portlet-boundary portlet-bordered portlet-journal-content"> 
47		<div class="portlet"> 
48			<div class="portlet-content panel"> 
49				<div class="portlet-content-container"> 
50					<div class="portlet-body"> 
51						<div class="journal-content-article"> 
52							<#if Image.getData()?? && Image.getData() != ""> 
53								<#assign 
54								altText = Image.getAttribute("alt") 
55								/> 
56								<#if !Image.getAttribute("alt")?? || Image.getAttribute("alt") == ""> 
57									<#assign 
58									altText = getDLFileEntryAltText(Image) 
59									/> 
60								</#if> 
61								<figure class="content-media-element media-element-full-width media-element-header"> 
62									<img class="img-responsive" data-fileentryid="${Image.getAttribute("fileEntryId")}" alt="${altText}" src="${Image.getData()}" /> 
63								</figure> 
64							</#if> 
65							<#if Aufgaben.getData()?? && Aufgaben.getData() != ''> 
66								<div class="job-description"> 
67									${Aufgaben.getData()} 
68								</div> 
69							</#if> 
70							<#if Bewerberprofil.getData()?? && Bewerberprofil.getData() != ''> 
71								<div class="job-profile-candidate"> 
72									${Bewerberprofil.getData()} 
73								</div> 
74							</#if> 
75							<#if Stellenprofil.getData()?? && Stellenprofil.getData() != ''> 
76								<div class="job-profile-company"> 
77									${Stellenprofil.getData()} 
78								</div> 
79							</#if> 
80							<#if Kontakt.getData()?? && Kontakt.getData() != ''> 
81								<div class="job-contact"> 
82									${Kontakt.getData()} 
83								</div> 
84							</#if> 
85							 
86							<#setting url_escaping_charset="UTF-8"> 
87							<#assign  
88								linkTitle = languageUtil.format(locale, "go-to-x", labelOnlineApplication, false) 
89								buttonId = randomNamespace 
90							/> 
91							<a id="${buttonId}" class="btn btn-primary" href="javascript:void(0);" title="${linkTitle}">${labelOnlineApplication}  <svg aria-hidden="true" class="lexicon-icon scale-lexicon-icon icon-btn-right"><use xlink:href="#icn_arrow-right" /></svg></a> 
92							<script> 
93								$('#${buttonId}').on('click', function() { 
94									Liferay.Loader.require(['bks-redesign-application-app-main'], function(appMain) { 
95										// console.log("Starting app after require from apply for job button.", appMain); 
96 
97										appMain.start('${Heading.getData()?url}').then(function(app) { 
98											// console.log("appAPI:", app); 
99											appRef = app; 
100 
101											// without this the initial animation will not play 
102											setTimeout(app.show, 0); 
103										}) 
104										.catch(function(err) { 
105											console.error(err) 
106										}); 
107									}, function(error) { 
108										console.error(error) 
109									}); 
110								}); 
111							</script> 
112						</div> 
113					</div> 
114				</div> 
115			</div> 
116		</div> 
117	</div> 
118 
119	<#function getDLFileEntryAltText Image> 
120		<#if Image.getAttribute("id")?? && Image.getAttribute("id") != ""> 
121			<#return ""> 
122		<#else> 
123			<#assign dlFileEntry = getDLFileEntry(Image) > 
124			<#return dlFileEntry.getDescription()/> 
125		</#if> 
126	</#function> 
127 
128	<#function getDLFileEntry fileEntry> 
129		<#assign dlFileEntry = ''> 
130		<#if fileEntry.getAttribute("fileEntryId")?? && fileEntry.getAttribute("fileEntryId") != ""> 
131			<#assign 
132			dlFileEntry = DLFileEntryService.getFileEntry(fileEntry.getAttribute("fileEntryId")?number) 
133			/> 
134		<#else> 
135			<#assign 
136			dlFileEntry = getDLFileEntryFromUrl(fileEntry.getData()) 
137			/> 
138		</#if> 
139		<#return dlFileEntry> 
140	</#function> 
141 
142	<#function getDLFileEntryFromUrl fileUrl> 
143		<#assign counter = 0 > 
144		<#list "${fileUrl}"?split("/") as pathSegemtent> 
145			<#if counter == 2> 
146				<#assign groupId = pathSegemtent?number > 
147			</#if> 
148			<#if counter == 5> 
149				<#assign subCounter = 0 > 
150				<#list "${pathSegemtent}"?split("?") as subSegemtent> 
151					<#if subCounter == 0> 
152						<#assign uuId = subSegemtent > 
153					</#if> 
154					<#assign subCounter = subCounter+1 > 
155				</#list> 
156			</#if> 
157			<#assign counter = counter+1 > 
158		</#list> 
159 
160		<#assign dlFileEntry = DLFileEntryService.getFileEntryByUuidAndGroupId(uuId,groupId) > 
161 
162		<#return dlFileEntry> 
163	</#function> 
164 
165</@>