Bezoekerstoelating vanaf dag 5 van de opname
Er trad een fout op tijdens de verwerking van de sjabloon.
Java method "com.sun.proxy.$Proxy469.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy469 object "be.uzbrussel.website.categorisation.JournalArticleCategorisationService@7d28eef4"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign article = journalArticleLocal...  [in template "20116#20152#NEWS TEMPLATE" at line 23, column 1]
----
1<#setting time_zone = timeZone.ID> 
2<#setting locale = "nl_BE"> 
3<#setting datetime_format = "EEE, d MMM yyyy HH:mm:ss Z"> 
4<#assign modifiedDate = .vars['reserved-article-modified-date'].data?datetime?string["yyyy-MM-dd"] /> 
5<#assign assetTagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
6<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
7<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
8<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")> 
9<#assign fileService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
10<#assign fileUtil = serviceLocator.findService("com.liferay.document.library.kernel.util.DLUtil") > 
11<#assign appUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") > 
12<#assign assetTag = staticUtil["com.liferay.asset.kernel.model.AssetTag"] /> 
13<#assign listUtil = staticUtil["com.liferay.portal.kernel.util.ListUtil"] /> 
14<#assign orderByComparatorFactory = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"] /> 
15<#assign langId = request['theme-display']['language-id'] /> 
16 
17<#assign dateFormat = "dd MMMM yyyy" /> 
18 
19 
20<#assign articleId = .vars['reserved-article-id'].data /> 
21<#assign articleTitle = .vars['reserved-article-title'].data /> 
22 
23<#assign article = journalArticleLocalService.getArticle(groupId, articleId)> 
24<#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) /> 
25<#assign group = groupLocalService.getGroup(groupId?number) /> 
26 
27<#assign articles = journalArticleLocalService.getArticlesByStructureId(groupId, "NEWS", -1, 6, orderByComparatorFactory.create("JournalArticle", "createDate", false)) /> 
28 
29<#assign baseURL = themeDisplay.getSiteGroup().getDisplayURL(themeDisplay) + themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout()) /> 
30 
31<#assign hiddenclass = "" /> 
32<#if asset.getTags()?has_content> 
33    <#list asset.getTags() as tag> 
34        <#if ( 
35        (tag.name?starts_with("positie_nl") == true && langId?starts_with("fr")) 
36        || (tag.name?starts_with("positie_fr") == true && langId?starts_with("nl")) )> 
37            <#assign hiddenclass = "hidden" /> 
38        </#if> 
39    </#list> 
40</#if> 
41 
42<section class="news-events uzb-news-detail " data-date="${modifiedDate}" > 
43    <article> 
44        <div class="row "> 
45            <div class="col-sm-12 col-md-8"> 
46                <#if hiddenclass !='hidden'> 
47 
48                        <h1 style="margin-bottom: 10px">${articleTitle}</h1> 
49                        <label class="news"><@liferay.language key="news-label" /></label> 
50                        <span class="date"> 
51                            <i class="fa fa-clock-o" aria-hidden="true"></i> 
52                            ${dateUtil.getDate(article.getDisplayDate(), dateFormat, locale)} 
53                        </span> 
54 
55 
56                        <#if asset.getTags()?has_content> 
57                            <#assign assetTagNamesList = [] /> 
58                            <#list asset.getTags() as tag> 
59                                <#if (tag.name?starts_with("positie_") == false)> 
60                                    <#assign assetTagNamesList = assetTagNamesList + [ tag.name ] /> 
61                                </#if> 
62                            </#list> 
63                            <#if assetTagNamesList?has_content> 
64                                    <span class="tag"> 
65                                    <i class="fa fa-tag" aria-hidden="true"></i> 
66                                        <#list assetTagNamesList as assetTagName> 
67                                            <#if assetTagName?index == 0 > 
68                                                ${assetTagName} 
69                                            <#else> 
70                                                - ${assetTagName} 
71                                            </#if> 
72                                        </#list> 
73                                    </span> 
74                            </#if> 
75                        </#if> 
76 
77 
78                        <div class="content-text"> 
79                            <#if abstract??> 
80                                <p> 
81                                    <strong> 
82                                        ${abstract.getData()} 
83                                    </strong> 
84                                </p> 
85                            </#if> 
86                            <p> 
87                                ${content.getData()} 
88                            </p> 
89                        </div> 
90 
91                    <#if langId?starts_with("nl") && extra?? && extra.block?? && extra.block.getSiblings?? && extra.block.getSiblings()?has_content> 
92                        <#list extra.block.getSiblings() as entry> 
93                            <#if entry.getType() == "ddm-journal-article" && entry.getData() != ""> 
94                                <#assign article = entry.getData()?eval /> 
95 
96                                <@liferay_ui["asset-display"] className=article.className classPK=getterUtil.getLong(article.classPK, 0) template="full_content" /> 
97                            </#if> 
98                        </#list> 
99                    </#if> 
100 
101                    <#if langId?starts_with("fr") && extra_fr?? && extra_fr.block_fr?? && extra_fr.block_fr.getSiblings?? && extra_fr.block_fr.getSiblings()?has_content> 
102                        <#list extra_fr.block_fr.getSiblings() as entry> 
103                            <#if entry.getType() == "ddm-journal-article" && entry.getData() != ""> 
104                                <#assign article = entry.getData()?eval /> 
105 
106                                <@liferay_ui["asset-display"] className=article.className classPK=getterUtil.getLong(article.classPK, 0) template="full_content" /> 
107                            </#if> 
108                        </#list> 
109                    </#if> 
110 
111 
112 
113 
114                        <div class="actions"> 
115                            <div class="uzb-share gray" data-value="${articleTitle}"></div> 
116 
117                            <button type="button" class="btn btn-default" data-toggle="modal" 
118                                    data-target="#newsletterModal${randomNamespace}"> 
119                                    <@liferay.language key="subscribe-newsletter" /> 
120                            </button> 
121 
122 
123 
124 
125                            <div class="modal fade" id="newsletterModal${randomNamespace}" tabindex="-1" role="dialog" 
126                                 aria-labelledby="newsletterModalLabel${randomNamespace}"> 
127                                <div class="modal-dialog" role="document"> 
128                                    <div class="modal-content"> 
129                                        <form action="//uzbrussel.us15.list-manage.com/subscribe/post?u=1e7287d4cebd4f5d498079359&amp;id=d96e7201a4" 
130                                              method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" 
131                                              class="validate" target="_blank" novalidate> 
132 
133 
134 
135                                            <div class="modal-header"> 
136                                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 
137                                                    <span aria-hidden="true">&times;</span></button> 
138                                                <h4 class="modal-title" id="newsletterModalLabel${randomNamespace}"> 
139                                                        <@liferay.language key="subscribe-newsletter" /> 
140                                                </h4> 
141                                            </div> 
142                                            <div class="modal-body"> 
143                                                <div id="mc_embed_signup"> 
144 
145 
146 
147                                                    <div id="mc_embed_signup_scroll"> 
148                                                        <div class="indicates-required"><span 
149                                                                class="asterisk">*</span> <@liferay.language key="required" /> 
150                                                        </div> 
151                                                        <div class="mc-field-group"> 
152                                                            <label for="mce-EMAIL"><@liferay.language key="email-address" /> 
153                                                                <span class="asterisk">*</span> 
154                                                            </label> 
155                                                            <input type="email" value="" name="EMAIL" class="required email" 
156                                                                   id="mce-EMAIL"> 
157                                                        </div> 
158                                                        <div class="mc-field-group"> 
159                                                            <label for="mce-FNAME"><@liferay.language key="first-name" /> </label> 
160                                                            <input type="text" value="" name="FNAME" class="" id="mce-FNAME"> 
161                                                        </div> 
162                                                        <div class="mc-field-group"> 
163                                                            <label for="mce-LNAME"><@liferay.language key="last-name" /> </label> 
164                                                            <input type="text" value="" name="LNAME" class="" id="mce-LNAME"> 
165                                                        </div> 
166 
167                                                        <div id="mce-responses" class="clear"> 
168                                                            <div class="response" id="mce-error-response" 
169                                                                 style="display:none"></div> 
170                                                            <div class="response" id="mce-success-response" 
171                                                                 style="display:none"></div> 
172                                                        </div> 
173                                                        <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> 
174                                                        <div style="position: absolute; left: -5000px;" aria-hidden="true"> 
175                                                            <input type="text" name="b_1e7287d4cebd4f5d498079359_d96e7201a4" 
176                                                                   tabindex="-1" value=""></div> 
177                                                    <#--<div class="clear">--> 
178                                                    <#--&lt;#&ndash;<input type="submit" value="Subscribe" name="<@liferay.language key="subscribe" />" id="mc-embedded-subscribe" class="button">&ndash;&gt;--> 
179                                                    <#--</div>--> 
180                                                    </div> 
181                                                </div> 
182                                            </div> 
183                                            <div class="modal-footer"> 
184                                                <button type="submit" name="subscribe" id="mc-embedded-subscribe" 
185                                                        class="btn btn-primary"><@liferay.language key="subscription" /></button> 
186                                                <button type="button" class="btn btn-default" 
187                                                        data-dismiss="modal"><@liferay.language key="close" /></button> 
188                                            </div> 
189                                        </form> 
190                                    </div> 
191                                </div> 
192                            </div> 
193 
194 
195                            <script type='text/javascript' 
196                                    src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script> 
197                            <script type='text/javascript'>(function ($) { 
198                                window.fnames = new Array(); 
199                                window.ftypes = new Array(); 
200                                fnames[0] = 'EMAIL'; 
201                                ftypes[0] = 'email'; 
202                                fnames[1] = 'FNAME'; 
203                                ftypes[1] = 'text'; 
204                                fnames[2] = 'LNAME'; 
205                                ftypes[2] = 'text'; 
206                            }(jQuery)); 
207                            var $mcj = jQuery.noConflict(true);</script> 
208 
209 
210 
211 
212 
213                        </div> 
214                <#else> 
215 
216                        <@liferay.language key="news-not-available" /> 
217                            <div> 
218                            <a href="/web${group.getFriendlyURL()}/news" class="uzb-button green text-center" 
219                                style="display: inline-block; margin-top: 20px;"> 
220                                <@liferay.language key="news-other" /> 
221                            </a> 
222                            </div> 
223                </#if> 
224 
225 
226            </div> 
227 
228            <div class="col-sm-12 col-md-4"> 
229 
230                <div class="more-panel"> 
231                    <#if portletDisplay?? && portletDisplay.instanceId?? > 
232                        <ul> 
233                            <#assign isFound = false /> 
234                            <#list articles as item > 
235                                <#if item.getArticleId() == articleId > 
236                                    <#assign isFound = true /> 
237                                <#elseif item?is_last == false || isFound > 
238 
239                                    <#assign asset2 = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', item.resourcePrimKey) /> 
240                                    <#assign hiddenclassSub = ""> 
241                                    <#if asset2.getTags()?has_content> 
242                                        <#list asset2.getTags() as tag> 
243                                            <#if ( (tag.name?starts_with("positie_nl") == true && langId?starts_with("fr")) 
244                                            || (tag.name?starts_with("positie_fr") == true && langId?starts_with("nl")) ) 
245
246                                                <#assign hiddenclassSub = "hidden"> 
247                                            </#if> 
248                                        </#list> 
249                                    </#if> 
250 
251                                    <li ${hiddenclassSub}> 
252                                        <div class="main"> 
253                                                    <#assign viewURL = baseURL + "/-/asset_publisher/" + portletDisplay.instanceId + "/content/" + item.urlTitle + "/maximized" /> 
254                                            <a href="${viewURL}"> 
255                                                <div class="title"> 
256                                                    ${item.getTitle(locale)} </br> 
257                                                </div> 
258                                            </a> 
259                                        </div> 
260                                        <div class="date-min"> 
261                                            <i class="fa fa-clock-o" aria-hidden="true"></i> 
262                                            ${dateUtil.getDate(item.getDisplayDate(), "dd/MM/yyyy", locale)} 
263                                        </div> 
264                                    </li> 
265 
266 
267                                </#if> 
268                            </#list> 
269 
270 
271 
272                        <#--<li class="more">--> 
273                        <#--<a href="/web${group.getFriendlyURL()}/news" class="uzb-button green">--> 
274                        <#--<i class="fa fa-angle-left" aria-hidden="true"></i>--> 
275                        <#--<@liferay.language key="more-news" />--> 
276                        <#--</a>--> 
277                        <#--</li>--> 
278                        </ul> 
279                    </#if> 
280 
281                    <a href="/web${group.getFriendlyURL()}/news" class="uzb-button green text-center" 
282                       style="display: block"> 
283                        <@liferay.language key="more-news" /> 
284                    </a> 
285 
286                </div> 
287 
288 
289            </div> 
290 
291        </div> 
292    </article> 
293</section>