Si è verificato un errore nell'elaborarazione del modello.
Error while invoking the "journal-article" JSP custom tag; see cause exception

----
FTL stack trace ("~" means nesting-related):
	- Failed at: @liferay_journal["journal-article"] a...  [in template "20101#20127#2783930" at line 145, column 33]
----
1<#-- Asset Cards WRelated People Design RANDOM --> 
2 
3<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
4<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
5<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
6<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") /> 
7<#assign rnd = staticUtil["com.liferay.portal.kernel.security.RandomUtil"] > 
8 
9<#assign filteredArticles = [] /> 
10 
11<#if entries?has_content> 
12 
13    <div> 
14        <#list entries as curEntry> 
15 
16            <#assign renderer = curEntry.getAssetRenderer() > 
17            <#assign className = renderer.getClassName() > 
18 
19            <#if className == "com.liferay.journal.model.JournalArticle"> 
20                <#assign article = renderer.getArticle() > 
21 
22                <#assign currentArticleAssetEntryId = curEntry.getEntryId() /> 
23                <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
24 
25                <#assign relatedArticles = []> 
26                <#assign relatedVideo = "" /> 
27 
28                <#list currentArticleRelatedLinks as related_entry> 
29 
30                    <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
31 
32                    <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
33 
34                    <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
35 
36                    <#assign relatedArticle = journalArticleLocalService.fetchLatestArticle(relatedAssetEntryPrimKey)!'' /> 
37 
38                    <#if relatedArticle?has_content> 
39 
40                        <#assign relatedGroup = groupLocalService.getGroup(relatedArticle.groupId) /> 
41 
42                        <#assign relatedArticleStructureKey = relatedArticle.getDDMStructure().getStructureKey() /> 
43 
44                        <#if relatedGroup.friendlyURL == "/designonweb" > 
45 
46                            <#if relatedArticleStructureKey = "ARTICLE-CONTENT"> 
47 
48                                <#assign relatedArticles = relatedArticles + [ relatedArticle ]> 
49 
50                            </#if> 
51 
52                        </#if> 
53 
54                    </#if> 
55 
56                </#list> 
57 
58            </#if> 
59 
60            <#if relatedArticles?has_content> 
61 
62                <#assign filteredArticles = filteredArticles + [ curEntry ] /> 
63 
64            </#if> 
65 
66        </#list> 
67 
68        <#assign indexes = rnd.nextInts(filteredArticles?size, 40) /> 
69 
70        <#list indexes as index> 
71 
72            <#assign curEntry = filteredArticles[index] /> 
73            <#assign renderer = curEntry.getAssetRenderer() > 
74            <#assign article = renderer.getArticle() > 
75 
76            <div class="grid-card-content d-flex flex-nowrap"> 
77 
78                <div class="card-element main-card" style="color: inherit; position: relative;"> 
79                    <@liferay_journal["journal-article"] 
80                    articleId="${article.getArticleId()}" 
81                    ddmTemplateKey="BOX_DESIGNER_PROFILE_MINIMAL" 
82                    groupId=article.getGroupId() 
83                    /> 
84                    <a class="profile" target="_blank" href="${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true)}">${languageUtil.get(locale, "profile")}</a> 
85 
86                    <#assign fields =  renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() /> 
87                    <#list fields as field> 
88                        <#if field.getName() == "Email"> 
89                            <#assign email = field.getValue().getString(locale) > 
90                            <span class="border-custom request-info" data-email=${email}> 
91                                <button class="message last">${languageUtil.get(locale, "message")}</button> 
92                            </span> 
93                        </#if> 
94                    </#list> 
95                </div> 
96 
97                <#assign currentArticleAssetEntryId = curEntry.getEntryId() /> 
98                <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
99 
100                <#assign relatedArticles = []> 
101                <#assign relatedVideo = "" /> 
102 
103                <#list currentArticleRelatedLinks as related_entry> 
104 
105                    <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
106 
107                    <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
108 
109                    <#assign relatedGroup = groupLocalService.getGroup(relatedAssetEntry.groupId) /> 
110 
111                    <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
112 
113                    <#assign relatedArticle = journalArticleLocalService.fetchLatestArticle(relatedAssetEntryPrimKey)!'' /> 
114 
115                    <#if relatedArticle?has_content> 
116 
117                        <#assign relatedArticleStructureKey = relatedArticle.getDDMStructure().getStructureKey() /> 
118 
119                        <#if relatedGroup.friendlyURL == "/designonweb" > 
120 
121                            <#if relatedArticleStructureKey = "ARTICLE-CONTENT"> 
122 
123                                <#assign relatedArticles = relatedArticles + [ relatedArticle ]> 
124 
125                            </#if> 
126 
127                        </#if> 
128 
129                    </#if> 
130 
131                </#list> 
132 
133                <#list [0, 1, 2, 3] as index> 
134 
135                    <div class="card-element related-card"> 
136 
137                        <#if relatedArticles[index]??> 
138 
139                            <#assign relatedArticle = relatedArticles[index] /> 
140                            <#assign relatedArticleId = relatedArticle.getArticleId() /> 
141                            <#assign articleGroupId = relatedArticle.getGroupId() > 
142                            <#assign thisEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", relatedArticle.getResourcePrimKey())> 
143                            <a href="${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, thisEntry, true)}"> 
144 
145                                <@liferay_journal["journal-article"] 
146                                articleId="${relatedArticleId}" 
147                                ddmTemplateKey="ARTICLE_CONTENT_LIST_MINIMAL" 
148                                groupId=articleGroupId /> 
149                            </a> 
150 
151                        </#if> 
152 
153                    </div> 
154 
155                </#list> 
156 
157            </div> 
158        </#list> 
159    </div> 
160</#if>