TEST

angle-left null Lettera al Presidente del Consiglio Prof. Giuseppe Conte
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy693.getLatestArticle(long)" threw an exception when invoked on com.sun.proxy.$Proxy693 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@146ec609"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign relatedArticle = journalArtic...  [in template "20115#20151#216468" at line 98, column 25]
----
1<#assign journalArticleId = .vars['reserved-article-id'].data> 
2<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") /> 
3 
4<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
5<#assign articleResourcePK = journalArticleLocalService.getArticleResourcePrimKey(groupId, journalArticleId)/> 
6<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",articleResourcePK) > 
7 
8<#assign assetTagLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetTagLocalServiceUtil"]> 
9<#assign articleResourcePK = journalArticleLocalService.getArticleResourcePrimKey(groupId, journalArticleId)/> 
10<#assign tagList=assetTagLocalServiceUtil.getTags("com.liferay.journal.model.JournalArticle",articleResourcePK) > 
11 
12 
13<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
14<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
15<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
16 
17<#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
18<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
19<#assign currentArticleAssetEntry =  
20    assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
21<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
22<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
23 
24 
25 
26 
27<div class="container-detail-page"> 
28 
29    <div class="detail-page"> 
30        <div class="content"> 
31            <div class="detail-header"> 
32                <div class="left"> 
33                    <#list categoryList as categoryList> 
34                        <div class="category">${categoryList.getName()}</div> 
35                    </#list> 
36                    <div class="title">${title.getData()}</div> 
37                </div> 
38                <div class="right"> 
39                    <div class="taglib-social-bookmarks" id="ykmt_column1_0_socialBookmarks">  
40                        <div class="dropdown" id="ykmt_column1_0_socialBookmarksDropdownMenu"> 
41                            <button aria-expanded="false" aria-haspopup="true" aria-label="toggle" class="dropdown-toggle btn btn-outline-borderless btn-outline-secondary btn-sm btn-secondary" data-onclick="toggle" ref="triggerButton" type="button"> 
42                                <i class="fas fa-share"></i> 
43                                <div class="share">Condividi</div> 
44                            </button> 
45                         
46                        </div>  
47                    </div> 
48                </div> 
49            </div> 
50             
51            <div class="sub-title"> 
52                ${subTitle.getData()} 
53            </div> 
54             
55             
56             
57            <div class="container-tags"> 
58                <#list tagList as tagList> 
59                    <div class="tag">#${tagList.getName()}</div> 
60                </#list> 
61            </div> 
62             
63             
64             
65            <div class="image"> 
66                <#if coverImage.getData()?? && coverImage.getData() != ""> <img alt="${coverImage.getAttribute("alt")}" data-fileentryid="${coverImage.getAttribute("fileEntryId")}" src="${coverImage.getData()}" /> </#if> 
67            </div> 
68             
69            <div class="text"> 
70                ${content.getData()} 
71            </div> 
72             
73             
74            <div class="date"> 
75            <#assign data_Data = getterUtil.getString(data.getData())> <#if validator.isNotNull(data_Data)> <#assign data_DateObj = dateUtil.parseDate("yyyy-MM-dd", data_Data, locale)> ${dateUtil.getDate(data_DateObj, "dd MMMM yyyy", locale)} </#if> 
76            </div> 
77        </div> 
78    </div> 
79     
80     
81     
82     
83    <#if currentArticleRelatedLinks?has_content> 
84        <div class="potrebbero-interessare"> 
85            <div class="title"> 
86                Ti potrebbero interessare 
87            </div> 
88             
89             
90            <div class="list-potrebbero-interessare"> 
91         
92         
93                <#list currentArticleRelatedLinks as related_entry> 
94                    <div class="single-potrebbero-interessare"> 
95                        <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
96                        <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
97                        <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
98                        <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
99                        <#assign relatedArticleId = relatedArticle.getArticleId() /> 
100                         
101                        <#assign document = saxReaderUtil.read(relatedArticle.getContentByLocale(locale))> 
102                        <#assign rootElement = document.getRootElement()> 
103                        <#assign imageJson = document.valueOf("//dynamic-element[@name='coverImage']/dynamic-content/text()")> 
104             
105                        <#if imageJson?has_content> 
106                            <#assign color_scheme = themeDisplay.getColorScheme().getCssClass()> 
107                            <#assign dlAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") />                                            
108                            <#assign dlUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"]> 
109                            <#assign 
110                            imageJson = imageJson?eval 
111                            uuid = imageJson.uuid 
112                            groupId = imageJson.groupId 
113                            dlFile = dlAppLocalService.getFileEntryByUuidAndGroupId(uuid,groupId?number) 
114                            Image = dlUtil.getPreviewURL(dlFile, dlFile.getFileVersion(),themeDisplay,'')> 
115                             
116                            <img src="${Image}"/> 
117                        </#if> 
118                         
119                        <div class="title"> 
120                            <a href="${relatedArticle.getUrlTitle()}">${relatedArticle.getContent()}</a> 
121                        </div> 
122                    </div> 
123                </#list> 
124            </div> 
125        </div> 
126     </#if> 
127</div> 

Aggregatore Risorse