Symposium Zorgpad Alcohol
Une erreur s'est produite lors du traitement du gabarit.
Java method "com.sun.proxy.$Proxy477.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy477 object "be.uzbrussel.website.categorisation.JournalArticleCategorisationService@1efcef06"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign article = journalArticleLocal...  [in template "20116#20152#EVENT TEMPLATE" at line 22, 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 langId = themeDisplay.getLocale() /> 
6 
7<#assign assetTagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
8<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
9<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
10<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")> 
11<#assign fileService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
12<#assign fileUtil = serviceLocator.findService("com.liferay.document.library.kernel.util.DLUtil") > 
13<#assign appUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") > 
14<#assign assetTag = staticUtil["com.liferay.asset.kernel.model.AssetTag"] /> 
15<#assign listUtil = staticUtil["com.liferay.portal.kernel.util.ListUtil"] /> 
16<#assign dateFormat = "dd MMM" /> 
17 
18 
19<#assign articleId = .vars['reserved-article-id'].data /> 
20<#assign articleTitle = .vars['reserved-article-title'].data /> 
21 
22<#assign article = journalArticleLocalService.getArticle(groupId, articleId)> 
23<#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) /> 
24<#assign group = groupLocalService.getGroup(groupId?number) /> 
25 
26<#assign tmpArticles = journalArticleLocalService.getArticlesByStructureId(groupId, "EVENT", -1, -1, null) /> 
27<#assign articles = [] /> 
28 
29<#assign portletName = portletDisplay.portletName /> 
30<#assign assetPublisherPortletName = "com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet" /> 
31<#assign baseURL = themeDisplay.getSiteGroup().getDisplayURL(themeDisplay) + themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout()) /> 
32 
33<#-- Do this only when in the AssetPublisher Portlet --> 
34<#if portletName == assetPublisherPortletName > 
35    <#list tmpArticles as item > 
36        <#if item.getArticleId() != articleId > 
37            <#assign _date = "" /> 
38            <#assign _location = "" /> 
39            <#assign _title = item.getTitle(locale) /> 
40            <#assign _urlTitle = item.getUrlTitle() /> 
41 
42            <#assign elements = item.getDocument().getRootElement().elements("dynamic-element") /> 
43            <#list elements as element > 
44                <#if element.attribute("name").getValue() == "date" > 
45                    <#assign _date = element.getStringValue() /> 
46                <#elseif element.attribute("name").getValue() == "location" > 
47                    <#assign nameElements = element.elements("dynamic-content") /> 
48                    <#if nameElements?? > 
49                        <#list nameElements as nameElement > 
50                            <#if nameElement.attribute("language-id").getValue() == locale> 
51                                <#assign _location = nameElement.getStringValue() > 
52                            </#if> 
53 
54                        </#list> 
55                    </#if> 
56 
57 
58 
59                </#if> 
60            </#list> 
61 
62            <#assign assetTagList2 = [] /> 
63            <#assign asset2 = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', item.resourcePrimKey) /> 
64            <#if asset2.getTags()?has_content> 
65                <#assign assetTagList2 = asset2.getTags() /> 
66            </#if> 
67 
68 
69            <#assign date_Data = getterUtil.getString(_date) + " 23:59:59"> 
70            <#if validator.isNotNull(date_Data)> 
71                <#assign _date = dateUtil.parseDate("yyyy-MM-dd hh:mm:ss", date_Data, locale)> 
72 
73                <#if (.now <= _date?datetime) > 
74                    <#assign articles = articles + [ {"date": _date, "title": _title, "location": _location, "urlTitle": _urlTitle, "tags": assetTagList2} ] /> 
75                </#if> 
76            </#if> 
77 
78        </#if> 
79    </#list> 
80</#if> 
81<#-- Do this only when in the AssetPublisher Portlet --> 
82 
83<#assign hiddenClass = "" /> 
84<#if asset.getTags()?has_content> 
85    <#list asset.getTags() as tag> 
86        <#if ( 
87        (tag.name?starts_with("positie_nl") == true && langId?starts_with("fr")) 
88        || (tag.name?starts_with("positie_fr") == true && langId?starts_with("nl")) )> 
89            <#assign hiddenClass = "hidden" /> 
90        </#if> 
91    </#list> 
92</#if> 
93 
94<section class="news-events uzb-event-detail" data-date="${modifiedDate}"> 
95    <article> 
96        <div class="row"> 
97            <div class="col-sm-12 col-md-8"> 
98                <#if hiddenClass !='hidden'> 
99                    <h1 style="margin-bottom: 10px">${articleTitle}</h1> 
100                    <label class="event"><@liferay.language key="event-label" /></label> 
101 
102                    <#if asset.getTags()?has_content> 
103                        <#list asset.getTags() as tag> 
104                            <!-- tags: ${tag} --> 
105                            <#if tag.name?starts_with("positie_") != true > 
106                                <span class="tag"> 
107                                        <i class="fa fa-tag" aria-hidden="true"></i> 
108                                        <#if tag?index == 0 > 
109                                            ${tag.name} 
110                                        <#else> 
111                                            - ${tag.name} 
112                                        </#if> 
113                                        </span> 
114                            </#if> 
115                        </#list> 
116 
117                    </#if> 
118 
119                    <div style="margin: 10px 0 20xp 0" class="event-info"> 
120                        <#if textDate?? && textDate.getData()?? && textDate.getData() != ""> 
121                            <div> 
122                                <i class="fa fa-calendar" aria-hidden="true"></i> 
123                                ${textDate.getData()} 
124                            </div> 
125                        </#if> 
126 
127                        <#if textTime?? && textTime.getData()?? && textTime.getData() != ""> 
128                            <div> 
129                                <i class="fa fa-clock-o" aria-hidden="true"></i> 
130                                ${textTime.getData()} 
131                            </div> 
132                        </#if> 
133 
134                        <#if location?? && location.getData()?? && location.getData() != ""> 
135                            <div> 
136                                <i class="fa fa-map-marker" aria-hidden="true"></i> 
137                                ${location.getData()} 
138                            </div> 
139                        </#if> 
140                    </div> 
141                    <div class="content-text"> 
142                        <p> 
143                            ${content.getData()} 
144                        </p> 
145                    </div> 
146 
147                    <#if langId?starts_with("nl") && extra?? && extra.block?? && extra.block.getSiblings()?has_content> 
148                        <#list extra.block.getSiblings() as entry> 
149                            <#if entry.getType() == "ddm-journal-article" && entry.getData() != "" && entry.getData() != "{}"> 
150                                <#assign article = entry.getData()?eval /> 
151 
152                                <@liferay_ui["asset-display"] className=article.className classPK=getterUtil.getLong(article.classPK, 0) template="full_content" /> 
153                            </#if> 
154                        </#list> 
155                    </#if> 
156 
157                    <#if langId?starts_with("fr") && extra_fr?? && extra_fr.block_fr?? && extra_fr.block_fr.getSiblings()?has_content> 
158                        <#list extra_fr.block_fr.getSiblings() as entry> 
159                            <#if entry.getType() == "ddm-journal-article" && entry.getData() != "" && entry.getData() != "{}"> 
160                                <#assign article = entry.getData()?eval /> 
161 
162                                <@liferay_ui["asset-display"] className=article.className classPK=getterUtil.getLong(article.classPK, 0) template="full_content" /> 
163                            </#if> 
164                        </#list> 
165                    </#if> 
166 
167                    <div class="actions"> 
168                        <div class="uzb-share gray" data-value="${articleTitle}"></div> 
169                        <#if (langId?starts_with("nl")) > 
170                            <a href="<@liferay.language key="newsletter-dialog-link-url" />" target="_blank" 
171                               class="uzb-button green subscribe-link"> 
172                                <span> 
173                                    <@liferay.language key="subscribe-newsletter" /> 
174                                </span> 
175                                <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor" 
176                                     stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24" 
177                                     xmlns="http://www.w3.org/2000/svg"> 
178                                    <path d="M0 0h24v24H0z" fill="none" stroke="none"></path> 
179                                    <line x1="5" x2="19" y1="12" y2="12"></line> 
180                                    <line x1="13" x2="19" y1="18" y2="12"></line> 
181                                    <line x1="13" x2="19" y1="6" y2="12"></line> 
182                                </svg> 
183                            </a> 
184                        </#if> 
185 
186 
187                    </div> 
188                <#else> 
189                    <@liferay.language key="event-not-available" /> 
190                    <div> 
191                        <a href="/web${group.getFriendlyURL()}/events" class="uzb-button green text-center" 
192                           style="display: inline-block; margin-top: 20px;"> 
193                            <span> 
194                                <@liferay.language key="event-other" /> 
195                            </span> 
196                            <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor" 
197                                 stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24" 
198                                 xmlns="http://www.w3.org/2000/svg"> 
199                                <path d="M0 0h24v24H0z" fill="none" stroke="none"></path> 
200                                <line x1="5" x2="19" y1="12" y2="12"></line> 
201                                <line x1="13" x2="19" y1="18" y2="12"></line> 
202                                <line x1="13" x2="19" y1="6" y2="12"></line> 
203                            </svg> 
204                        </a> 
205                    </div> 
206                </#if> 
207 
208            </div> 
209            <div class="col-sm-12 col-md-4"> 
210                <div class="more-panel"> 
211                    <#-- Do this only when in the AssetPublisher Portlet --> 
212                    <#if portletName == assetPublisherPortletName> 
213                        <ul> 
214                            <#list articles?sort_by("date") as item > 
215                                <#if item?index < 5 > 
216 
217                                    <#assign hiddenclassSub = ""> 
218                                    <#assign numberOfTags = item.tags?size> 
219                                    <#if (numberOfTags > 0) > 
220                                        <#list item.tags as tag> 
221                                            <#if ( (tag.name?starts_with("positie_nl") == true && langId?starts_with("fr")) 
222                                            || (tag.name?starts_with("positie_fr") == true && langId?starts_with("nl")) ) 
223
224                                                <!-- tag: ${tag.name} --> 
225                                                <#assign hiddenclassSub = "hidden"> 
226                                            </#if> 
227                                        </#list> 
228                                    </#if> 
229 
230                                    <li class="${hiddenclassSub}"> 
231                                        <#assign viewURL = baseURL + "/-/asset_publisher/" + portletDisplay.instanceId + "/content/" + item.urlTitle + "/maximized" /> 
232                                        <a class="noline" href="${viewURL}"> 
233                                            <div class="main"> 
234                                                <div class="date"> 
235                                                    <div class="day">${dateUtil.getDate(item.date, "dd", locale)}</div> 
236                                                    <div class="month">${dateUtil.getDate(item.date, "MMM", locale)}</div> 
237                                                </div> 
238                                                <div class="title"> 
239                                                    ${item.title} 
240                                                    <div class="location"> 
241                                                        ${item.location} 
242                                                    </div> 
243                                                </div> 
244                                            </div> 
245                                        </a> 
246                                    </li> 
247                                </#if> 
248                            </#list> 
249                            <#--<li class="more">--> 
250                            <#--<a href="/web${group.getFriendlyURL()}/events" class="uzb-button green">--> 
251                            <#--<i class="fa fa-angle-left" aria-hidden="true"></i>--> 
252                            <#--<@liferay.language key="more-events" />--> 
253                            <#--</a>--> 
254                            <#--</li>--> 
255                        </ul> 
256                    </#if> 
257                    <#-- Do this only when in the AssetPublisher Portlet --> 
258                    <a href="/web${group.getFriendlyURL()}/events" class="uzb-button green text-center uzb-button--max"> 
259                        <span> 
260                            <@liferay.language key="more-events" /> 
261                        </span> 
262                        <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor" 
263                             stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24" 
264                             xmlns="http://www.w3.org/2000/svg"> 
265                            <path d="M0 0h24v24H0z" fill="none" stroke="none"></path> 
266                            <line x1="5" x2="19" y1="12" y2="12"></line> 
267                            <line x1="13" x2="19" y1="18" y2="12"></line> 
268                            <line x1="13" x2="19" y1="6" y2="12"></line> 
269                        </svg> 
270                    </a> 
271                </div> 
272 
273 
274            </div> 
275        </div> 
276 
277        <div class="newsletter-dialog"> 
278            <div class="newsletter-dialog__container"> 
279                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mail-opened" width="80" 
280                     height="80" viewBox="0 0 40 40" stroke-width="1.5" stroke="currentColor" fill="none" 
281                     stroke-linecap="round" stroke-linejoin="round"> 
282                    <g stroke="none" stroke-width="1.5" fill="none" fill-rule="evenodd"> 
283                        <g id="Group"> 
284                            <polygon id="Path" points="0 0 40 0 40 40 0 40"></polygon> 
285                            <path d="M20,30 L8.33333333,30 C6.49238417,30 5,28.5076158 5,26.6666667 L5,10 C5,8.15905083 6.49238417,6.66666667 8.33333333,6.66666667 L31.6666667,6.66666667 C33.5076158,6.66666667 35,8.15905083 35,10 L35,22.5" 
286                                  id="Path" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"></path> 
287                            <polyline id="Path" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" 
288                                      points="5 10 20 20 35 10"></polyline> 
289                        </g> 
290                        <g id="Group" transform="translate(22.000000, 22.000000)"> 
291                            <polygon id="Path" points="0 0 14 0 14 14 0 14"></polygon> 
292                            <circle id="Oval" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" cx="7" 
293                                    cy="7" r="2.33333333"></circle> 
294                            <path d="M9.33333333,7 L9.33333333,7.875 C9.33333333,8.68041526 9.98625141,9.33333333 10.7916667,9.33333333 C11.5970819,9.33333333 12.2500044,8.68041526 12.2500044,7.875 L12.2500044,7 C12.2529766,4.68362667 10.7375084,2.63904217 8.52039354,1.96822466 C6.30327872,1.29740716 3.90853655,2.15890562 2.62687112,4.08839467 C1.34520569,6.01788371 1.47954104,8.55932497 2.95747389,10.3429473 C4.43540674,12.1265697 6.90762487,12.7308107 9.04166667,11.83" 
295                                  id="Path" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"></path> 
296                        </g> 
297                    </g> 
298                </svg> 
299                <button class="newsletter-dialog__close"> 
300                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"> 
301                        <path fill="none" d="M0 0h24v24H0z"/> 
302                        <path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"/> 
303                    </svg> 
304                </button> 
305                <h2><@liferay.language key="newsletter-dialog-title" /></h2> 
306                <p><@liferay.language key="newsletter-dialog-description" /></p> 
307                <a href="<@liferay.language key="newsletter-dialog-link-url" />" target="_blank" 
308                   class="uzb-button green-full"> 
309                    <span> 
310                        <@liferay.language key="newsletter-dialog-link-label" /> 
311                    </span> 
312                    <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor" 
313                         stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24" 
314                         xmlns="http://www.w3.org/2000/svg"> 
315                        <path d="M0 0h24v24H0z" fill="none" stroke="none"></path> 
316                        <line x1="5" x2="19" y1="12" y2="12"></line> 
317                        <line x1="13" x2="19" y1="18" y2="12"></line> 
318                        <line x1="13" x2="19" y1="6" y2="12"></line> 
319                    </svg> 
320                </a> 
321            </div> 
322        </div> 
323    </article> 
324</section> 
325<script> 
326    hideCookieContent(); 
327</script>