An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy474.isLatestVersion(long, String, double)" threw an exception when invoked on com.sun.proxy.$Proxy474 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@3e6e321d"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if JournalArticleLocalService.isLate...  [in template "119930#119964#4510862" at line 42, column 9]
----
1<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] /> 
2<@liferay_theme["defineObjects"] /> 
3<#--if themeDisplay.isSignedIn()></#if--> 
4 
5    <#assign 
6        JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
7        DMStructureLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService") 
8        OrderByComparatorFactoryUtil = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"] 
9        orderby = OrderByComparatorFactoryUtil.create("JournalArticle", "expirationDate", "asc") 
10        structures = DMStructureLocalService.getStructures(groupId) 
11        entryObject = [] 
12        yearArray = [] 
13    /> 
14    <#list structures as s> 
15        <#if htmlUtil.extractText(s.getName()) = "Konzert"> 
16            <#assign structureKey = s.structureKey> 
17        </#if> 
18    </#list> 
19    <#assign entries = JournalArticleLocalService.getStructureArticles(groupId,structureKey,-1,-1,orderby)> 
20     
21    <#-- Create array of years  
22        <#list entries as curEntry> 
23            <#if curEntry.expirationDate??> 
24                ${curEntry.expirationDate?datetime?string['yyyy']} 
25            </#if> 
26            <#if JournalArticleLocalService.isLatestVersion(groupId,curEntry.articleId,curEntry.version)> 
27                <#if curEntry.expirationDate??> 
28                    <#assign year = curEntry.expirationDate?datetime?string['yyyy']> 
29                    <#if !yearArray?seq_contains(year)> 
30                        <#assign yearArray = yearArray + [year]> 
31                    </#if> 
32                </#if> 
33            </#if> 
34        </#list> 
35         
36        <#list yearArray as y> 
37            ${y}<br> 
38        </#list> 
39    --> 
40     
41    <#list entries as curEntry> 
42        <#if JournalArticleLocalService.isLatestVersion(groupId,curEntry.articleId,curEntry.version)> 
43            <#assign  
44                templateKey = curEntry.DDMTemplateKey 
45                articleId = curEntry.articleId 
46                article = JournalArticleLocalService.getArticle(groupId, articleId) 
47                document = saxReaderUtil.read(article.getContentByLocale(locale)) 
48                rootElement = document.getRootElement() 
49
50            <#list rootElement.elements() as dynamicElement> 
51                <#if dynamicElement.attributeValue("name") =="Datum"> 
52                    <#assign Datum = dynamicElement.element( 'dynamic-content').getText()> 
53                </#if> 
54            </#list> 
55             
56            <#assign year = Datum?date['yyyy-mm-dd']?string['yyyy']> 
57            <#if !yearArray?seq_contains(year)> 
58                <#assign yearArray = yearArray + [year]> 
59            </#if> 
60        </#if> 
61    </#list>     
62     
63    <div class="archivArtikelListe"> 
64    <#list yearArray as y> 
65        <div class="archivYear"> 
66            <h3 class="year">${y}</h3> 
67            <#list entries as curEntry> 
68                <#if JournalArticleLocalService.isLatestVersion(groupId,curEntry.articleId,curEntry.version)> 
69                    <#if curEntry.expirationDate??> 
70                        <#assign  
71                            templateKey = curEntry.DDMTemplateKey 
72                            articleId = curEntry.articleId 
73                            article = JournalArticleLocalService.getArticle(groupId, articleId) 
74                            document = saxReaderUtil.read(article.getContentByLocale(locale)) 
75                            rootElement = document.getRootElement() 
76
77                        <#list rootElement.elements() as dynamicElement> 
78                            <#if dynamicElement.attributeValue("name") =="Datum"> 
79                                <#assign Datum = dynamicElement.element( 'dynamic-content').getText()> 
80                            </#if> 
81                            <#if dynamicElement.attributeValue("name") =="Saal"> 
82                                <#assign Saal = dynamicElement.element( 'dynamic-content').getText()> 
83                            </#if> 
84                            <#if dynamicElement.attributeValue("name") =="Ort"> 
85                                <#assign Ort = dynamicElement.element( 'dynamic-content').getText()> 
86                            </#if> 
87                            <#if dynamicElement.attributeValue("name") =="Ort"> 
88                                <#assign Uhrzeit = dynamicElement.element( 'dynamic-content').getText()> 
89                            </#if> 
90                            <#if dynamicElement.attributeValue("name") =="RechteSpalte"> 
91                                <#assign Zusatzinfos = dynamicElement.element( 'dynamic-content').getText()> 
92                            </#if> 
93                        </#list> 
94                        <#if Datum?date['yyyy-mm-dd']?string['yyyy'] == y> 
95                            <div class="concert">  
96                                <header class="meta"> 
97                                    <#if Datum??><span>${Datum?date['yyyy-mm-dd']?string['dd.mm.yyyy']}</span></#if> 
98                                    <#if Saal??><span>${Saal}</span></#if> 
99                                    <#if Ort??><span>${Ort}</span></#if> 
100                                    <#if Uhrzeit??><span>${Uhrzeit}</span> </#if> 
101                                </header>  
102                                <h2 class="title"> 
103                                    ${curEntry.getTitle(locale)} 
104                                </h2>  
105                                <#if Zusatzinfos??> 
106                                    <footer class="meta"> 
107                                        ${Zusatzinfos} 
108                                    </footer> 
109                                </#if> 
110                            </div> 
111                        </#if> 
112                    </#if> 
113                </#if> 
114            </#list> 
115        </div> 
116    </#list> 
117    </div>