Decreto Dipartimentale n.71 del 20 ottobre 2020
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy455.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy455 object "it.miur.portale.hook.listener.CustomJournalArticleServiceWrapper@b7febfc"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign currentArticle = JALS.getArti...  [in template "20155#20195#30308" at line 5, column 1]
----
1<#assign JALS = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService" ) /> 
2<#assign ALLS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService" ) /> 
3<#assign AELS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService" ) /> 
4<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] /> 
5<#assign currentArticle = JALS.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data) /> 
6<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
7<#assign currentArticleAssetEntry = AELS.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
8<#assign currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() /> 
9<#assign currentArticleRelatedLinks = ALLS.getDirectLinks(currentArticleAssetEntryEntryId) /> 
10<#if numero_protocollo?has_content && numero_protocollo.getData()!=""> 
11    <#assign np = "Nota Prot. n. <strong>"+numero_protocollo.getData()+"</strong>"> 
12<#else> 
13    <#assign np = ""> 
14</#if> 
15<#if Ufficio?has_content && Ufficio.getData()!=""> 
16    <#assign u = "Ufficio: "+Ufficio.getData()> 
17<#else> 
18    <#assign u = ""> 
19</#if> 
20<#setting locale=locale.toString()/> 
21<#if data_riferimento.getData()?has_content> 
22    <#assign aDate = data_riferimento.getData()?date("yyyy-MM-dd")> 
23    <#assign checkDate = "2019-03-18"?date("yyyy-MM-dd")> 
24    <#if aDate < checkDate> 
25       <#assign aDate = (aDate?long + 86400000)?number_to_date /> 
26    </#if> 
27    <#assign d = aDate?string["EEEE, dd MMMM yyyy"]?cap_first> 
28<#else> 
29    <#assign d = currentArticle.getCreateDate()?string["EEEE, dd MMMM yyyy"]?cap_first> 
30</#if> 
31<#if luogo?has_content && luogo.getData()!=""> 
32    <#assign l = luogo.getData()+", "+d> 
33<#else> 
34    <#assign l = d> 
35</#if> 
36 
37<div class="post-title page-title"> 
38<span class='post-title-date'>${l}</span><h2>${currentArticleAssetEntry.getTitle(locale)}</h2> 
39</div> 
40<div id="share"></div> 
41<div class="post-details-print"> 
42    <p class="pull-left"> 
43        ${np} 
44    </p> 
45    <p class="post-details-print-right">Ufficio: ${Ufficio.getData()}</p> 
46    <div class="post-print"> 
47        <a href="#"> 
48            <img src="${themeDisplay.getPathThemeRoot()}/icons/icon-stampa.svg" /> 
49        </a> 
50    </div> 
51</div> 
52<div class="post-sub-title"> 
53    ${sottotitolo.getData()} 
54</div> 
55<div class="post-content"> 
56    ${testo.getData()} 
57</div> 
58 
59<#assign checkDownload = 0 /> 
60<#list currentArticleRelatedLinks as link> 
61    <#assign linkedAssetEntryId = link.getEntryId2() /> 
62    <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) /> 
63    <#if linkedAssetEntry.getAssetRendererFactory().getType()=="document" > 
64        <#assign aAR = linkedAssetEntry.getAssetRenderer() /> 
65        <#if !linkedAssetEntry.getMimeType()?starts_with("image")  > 
66            <#assign checkDownload = 1 /> 
67        </#if> 
68    </#if> 
69</#list> 
70<#if checkDownload == 1> 
71    <div class="post-tools"> 
72        <#assign fileEntry = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />     
73        <div class="post-tools-title"> 
74            <img src="${themeDisplay.getPathThemeRoot()}/icons/download.svg" /> 
75            Documenti Allegati 
76        </div> 
77         
78        <ul> 
79            <#list currentArticleRelatedLinks as link> 
80                <#assign linkedAssetEntryId = link.getEntryId2() /> 
81                <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) /> 
82                <#if linkedAssetEntry.getAssetRendererFactory().getType()=="document" > 
83                    <#assign aAR = linkedAssetEntry.getAssetRenderer() /> 
84                    <#if !linkedAssetEntry.getMimeType()?starts_with("image")  > 
85                        <#assign file = fileEntry.getFileEntryByUuidAndGroupId(linkedAssetEntry.getClassUuid(),linkedAssetEntry.getGroupId()) > 
86                        <li> 
87                            <p>${linkedAssetEntry.getTitle(locale)}</p> 
88                            <div class="files"> 
89                                <a href="${ aAR.getURLDownload(themeDisplay) }"> 
90                                    <img src="${themeDisplay.getPathThemeRoot()}/icons/file-${file.getIcon()}.svg"> 
91                                </a> 
92                            </div> 
93                        </li> 
94                    </#if> 
95                </#if> 
96            </#list> 
97        </ul> 
98    </div> 
99</#if> 
100<#if destinatari.getData()?has_content && destinatari.getData() != ""> 
101    <div class="post-tools post-tools-simple"> 
102        <div class="post-tools-title"> 
103            <img src="${themeDisplay.getPathThemeRoot()}/icons/destinatari.svg" /> 
104            Destinatari 
105        </div> 
106        ${destinatari.getData()} 
107    </div> 
108</#if>