Comprehensive Economic Statistics

Category
An error occurred while processing the template.
Java method "jdk.proxy148.$Proxy935.getLatestArticle(long)" threw an exception when invoked on jdk.proxy148.$Proxy935 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@153ffc54"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign article = journalArticleLocal...  [in template "11099719610328#20119#436507" at line 65, column 33]
----
1<#assign categories = [] /> 
2<#assign hasChildCategoriesWithContent = false /> 
3 
4    <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5    <#assign StructureLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService") /> 
6 
7 
8<#if (request.getParameter("category")?has_content)> 
9    <#assign category = request.getParameter("category")?number /> 
10    <#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
11    <#assign curCategory = assetCategoryLocalService.fetchAssetCategory(category) /> 
12    <#assign assetCategoryPropService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") /> 
13    <#assign categories = assetCategoryLocalService.getChildCategories(curCategory.categoryId) /> 
14</#if> 
15 
16<#if (request.getParameter("tab")?has_content)> 
17    <#assign tab = request.getParameter("tab")?number /> 
18 
19    <#list categories as cat> 
20        <#assign filterCounter = articleService.getContentCountByCategoriesIds(tab, cat.categoryId) /> 
21        <#if filterCounter?number gt 0> 
22            <#assign hasChildCategoriesWithContent = true /> 
23        </#if> 
24    </#list> 
25 
26    <#if !hasChildCategoriesWithContent> 
27        <!-- Display list of search results --> 
28        <div class="mt-4 search-results-container" id="search-results-display-list"> 
29             
30            <!-- Check if entries have content --> 
31            <#if entries?has_content> 
32                 
33                <#if tab == 436312> 
34                    <div id="publications-list-accordion" class="accordion dl-accordion transparent-accordion publications-accordion d-block d-md-none"> 
35                        <#list entries as entry> 
36                            ${articleService.getContentByClassPK(entry.classPK?number, "223283")} 
37                        </#list> 
38                    </div> 
39                </#if> 
40 
41                <div class="dl-box publications-box mt-6 ${(tab == 436312) ? then('d-none d-md-block', '')}"> 
42                    <div class="box ps-8 pe-6 pb-8"> 
43                         
44                        <div class="box-header"> 
45                            <span></span> 
46                            <#if tab == 436312> 
47                                <span class="th"><@liferay.language key="publication-year-label" /></span> 
48                                <span class="th"><@liferay.language key="publication-periodicity-label" /></span> 
49                                <span class="th"><@liferay.language key="publication-month-label" /></span> 
50                            </#if> 
51 
52                            <#if tab == 436318> 
53                                <span class="th"><@liferay.language key="publication-periodicity-label" /></span> 
54                            </#if> 
55                            <span class="th"><@liferay.language key="explore-label" /></span> 
56                        </div> 
57 
58                        <!-- Iterate over each entry --> 
59                        <#list entries as entry> 
60                         
61                            <!-- Check if entry has a valid classPK --> 
62                            <#if (entry.classPK)??> 
63                                 
64                                <!-- Assign article and structure related variables --> 
65                                <#assign article = journalArticleLocalService.getLatestArticle(entry.classPK?number) /> 
66                                <#assign structure = StructureLocalService.getStructure(article.getDDMStructure().getPrimaryKey()) /> 
67                                <#assign structureName = structure.getName() /> 
68                                <#assign structureID = structure.getStructureId() /> 
69 
70                                <!-- Check for publications structure --> 
71                                <#if structureID == 118514> 
72                                    ${articleService.getContentByClassPK(entry.classPK?number, "239120")} 
73                                </#if> 
74 
75                                <!-- Check for methodologies structure --> 
76                                <#if structureID == 118796> 
77                                    ${articleService.getContentByClassPK(entry.classPK?number, "121855")} 
78                                </#if> 
79 
80                                <!-- Check for dashboards structure --> 
81                                <#if structureID == 118529> 
82                                    ${articleService.getContentByClassPK(entry.classPK?number, "180745")} 
83                                </#if> 
84 
85                                <!-- Check for data tables structure --> 
86                                <#if structureID == 118522> 
87                                    ${articleService.getContentByClassPK(entry.classPK?number, "180770")} 
88                                </#if> 
89 
90                                <!-- Check for GIS structure --> 
91                                <#if structureID == 163734> 
92                                    ${articleService.getContentByClassPK(entry.classPK?number, "163745")} 
93                                </#if> 
94 
95                                <!-- Check for APIs structure --> 
96                                <#if structureID == 180726> 
97                                    ${articleService.getContentByClassPK(entry.classPK?number, "181078")} 
98                                </#if> 
99 
100                            </#if> 
101                        </#list> 
102                    </div> 
103                </div> 
104            <#else> 
105							  <h5> 
106                        <@liferay.language key="no-results-found" /> 
107							</h5> 
108							 
109							 
110							</#if> 
111        </div> 
112			<#else> 
113				 
114				<@liferay_aui.script use="aui-base"> 
115 
116 
117        $('.pagination-bar').remove(); 
118 
119 
120       </@liferay_aui.script> 
121				 
122    </#if> 
123</#if> <!-- close if tab param -->