Filters

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy109.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy109 object "com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl@26a051b8"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign assetCategory = assetCategory...  [in template "161555#161602#366880" at line 5, column 5]
----
1<#assign assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")> 
2 
3<#if renderRequest.getParameter("categoryId")??> 
4    <#assign currentCategoryId = renderRequest.getParameter("categoryId")?number/> 
5    <#assign assetCategory = assetCategoryService.getCategory(currentCategoryId)> 
6</#if> 
7 
8<#assign currentDate = dateUtil.getCurrentDate("yyyy-MM-dd", locale) > 
9 
10<div class="container jmevent--adt-temp"> 
11    <#if entries?has_content> 
12        <#list entries as curEntry> 
13            <div class="row"> 
14                <#assign  
15                    assetRenderer = curEntry.getAssetRenderer() 
16                    journalArticle = assetRenderer.getAssetObject() 
17                    document = saxReaderUtil.read(journalArticle.getContent()) 
18                    rootElement = document.getRootElement() 
19                    xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Date']") 
20                    dateArticle = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
21                    eventDate = dateArticle?date("yyyy-MM-dd") 
22                    curDate = currentDate?date("yyyy-MM-dd") 
23                /> 
24                <#if assetCategory??> 
25            		<#if assetCategory.getName() == "Upcoming Events" && curDate < eventDate> 
26            			<@liferay_journal["journal-article"] 
27            				articleId=journalArticle.getArticleId() 
28            				ddmTemplateKey=journalArticle.getDDMTemplateKey() 
29            				groupId=journalArticle.getGroupId() 
30            			/> 
31            			<#elseif assetCategory.getName() == "Past Events" && eventDate < curDate> 
32            			<@liferay_journal["journal-article"] 
33            				articleId=journalArticle.getArticleId() 
34            				ddmTemplateKey=journalArticle.getDDMTemplateKey() 
35            				groupId=journalArticle.getGroupId() 
36            			/> 
37            			<#elseif assetCategory.getName() != "Upcoming Events" && assetCategory.getName() != "Past Events"> 
38            			<@liferay_journal["journal-article"] 
39            				articleId=journalArticle.getArticleId() 
40            				ddmTemplateKey=journalArticle.getDDMTemplateKey() 
41            				groupId=journalArticle.getGroupId() 
42            			/> 
43            		</#if> 
44            	<#else> 
45            	    <@liferay_journal["journal-article"] 
46            				articleId=journalArticle.getArticleId() 
47            				ddmTemplateKey=journalArticle.getDDMTemplateKey() 
48            				groupId=journalArticle.getGroupId() 
49            			/> 
50	            </#if> 
51            </div> 
52        </#list> 
53    </#if> 
54</div> 
55<style> 
56    .entry-title { 
57        display:none; 
58
59     
60</style>