Navigation Menu

Transparent administration

Asset Publisher

An error occurred while processing the template.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@64e8e90f"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign DataDiPubbl_DateObj = dateUti...  [in template "20099#20135#286756" at line 46, column 9]
----
1<div class="content"> 
2    <#assign centroTitle = languageUtil.get(locale, "centers") /> 
3    <#assign publishTitle = languageUtil.get(locale, "publish-date") /> 
4    <#assign expirationTitle = languageUtil.get(locale, "expiration-date") /> 
5    <#assign documentTitle = languageUtil.get(locale, "document-type") /> 
6    <#assign objTitle = languageUtil.get(locale, "object") /> 
7    <#assign importoTitle = languageUtil.get(locale, "amount-iva") /> 
8    <#assign docTitle = languageUtil.get(locale, "attached-documents") /> 
9     
10     
11    <#assign journalArticle = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') /> 
12    <#assign article = journalArticle.getArticle(groupId, .vars['reserved-article-id'].data)/> 
13    <#assign assetEntry = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService') /> 
14 
15    <#assign entry = assetEntry.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) /> 
16    <#assign category =	entry.getCategories() /> 
17    <#assign centro = "" /> 
18    <#assign pagina = "" /> 
19     
20     
21    <h3> 
22        <#list category as c> 
23            <#if c.getVocabularyId() == 37391 > 
24                ${c.name} | 
25                <#assign centro = c.name /> 
26            <#elseif c.getVocabularyId() == 286767 > 
27                <#assign pagina = c.name /> 
28            </#if> 
29        </#list> 
30     
31        <#if Oggetto.getData()?has_content> 
32            ${Oggetto.getData()} 
33        </#if> 
34    </h3> 
35     
36    <#if centro?has_content && centro != "" > 
37        <div class="row pt-3 pb-2"> 
38          <div class="col-4">${centroTitle}&nbsp;:</div> 
39          <div class="col-8 font-weight-bold">${centro}</div> 
40        </div> 
41    </#if> 
42 
43    <div class="row pt-3 pb-2"> 
44        <div class="col-4">${publishTitle}&nbsp;:</div> 
45        <#assign DataDiPubbl_Data = getterUtil.getString(.vars['reserved-article-create-date'].data)> 
46        <#assign DataDiPubbl_DateObj = dateUtil.parseDate("EEE, dd MMM yyyy hh:mm:ss", DataDiPubbl_Data, locale)>             
47        <div class="col-8 font-weight-bold">${dateUtil.getDate(DataDiPubbl_DateObj, "dd MMMM yyyy", locale)}</div> 
48    </div> 
49     
50    <#assign DataDiScadenza_Data = getterUtil.getString(DataDiScadenza.getData()) />  
51    <#if validator.isNotNull(DataDiScadenza_Data)>  
52        <#assign DataDiScadenza_DateObj = dateUtil.parseDate("yyyy-MM-dd", DataDiScadenza_Data, locale)>  
53        <#assign expirationDate = dateUtil.getDate(DataDiScadenza_DateObj, "dd MMM yyyy", locale) /> 
54    </#if> 
55     
56    <#assign oraScadenza = DataDiScadenza.OrarioDiScadenza.getData() /> 
57     
58    <#if expirationDate?has_content && expirationDate?length gt 0> 
59        <div class="row py-2"> 
60            <div class="col-4">${expirationTitle}&nbsp;:</div> 
61            <div class="col-8 font-weight-bold">${expirationDate}  
62            <#if oraScadenza?has_content && oraScadenza?length gt 0> - ${oraScadenza}</#if> </div> 
63        </div> 
64    </#if> 
65     
66    <#if pagina?has_content && pagina != "" > 
67        <div class="row py-2"> 
68            <div class="col-4">${documentTitle}&nbsp;:</div> 
69            <div class="col-8 font-weight-bold">${pagina}</div> 
70        </div> 
71    </#if> 
72     
73    <#if Oggetto.getData()?has_content> 
74        <div class="row py-2"> 
75            <div class="col-4">${objTitle}&nbsp;:</div> 
76            <div class="col-8 font-weight-bold">${Oggetto.getData()}</div> 
77        </div> 
78    </#if> 
79     
80    <#if CodiceCIG.getData()?has_content> 
81        <div class="row py-2"> 
82            <div class="col-4">CIG&nbsp;:</div> 
83            <div class="col-8 font-weight-bold">${CodiceCIG.getData()}</div> 
84        </div> 
85    </#if> 
86     
87    <#if CodiceCUP.getData()?has_content> 
88        <div class="row py-2"> 
89            <div class="col-4">CUP&nbsp;:</div> 
90            <div class="col-8 font-weight-bold">${CodiceCUP.getData()}</div> 
91        </div> 
92    </#if> 
93     
94    <#if RUP.getData()?has_content> 
95        <div class="row py-2"> 
96            <div class="col-4">RUP&nbsp;:</div> 
97            <div class="col-8 font-weight-bold">${RUP.getData()}</div> 
98        </div> 
99    </#if> 
100     
101    <#if ImportoAlNettoDellIVA.getData()?has_content> 
102        <div class="row py-2"> 
103            <div class="col-4">${importoTitle}&nbsp;:</div> 
104            <div class="col-8 font-weight-bold">${ImportoAlNettoDellIVA.getData()}</div> 
105        </div> 
106    </#if> 
107     
108    <#assign count = 0 /> 
109    <#if FileAllegato.getSiblings()?has_content>  
110        <#list FileAllegato.getSiblings() as cur_FileAllegato>  
111            <#if cur_FileAllegato.getData()?has_content && cur_FileAllegato.getData()?length gt 0> 
112                <#assign count = count + 1 /> 
113            </#if> 
114        </#list>  
115    </#if> 
116     
117    <#if count gt 0> 
118        <div class="row pt-5 pb-3"> 
119          <div class="card shadow w-100"> 
120            <div class="card-body"> 
121              <h2>${docTitle}</h2> 
122              <#list FileAllegato.getSiblings() as cur_FileAllegato> 
123                <div class="pt-3 pb-3 content-header mb-0"> 
124                    <#assign docVal = cur_FileAllegato.getData()?split('/') /> 
125                    <#assign groupId = docVal[2]?number /> 
126                    <#assign uuid = docVal[5]?split('?')[0] /> 
127                     
128				    <#assign dlFileEntryService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') /> 
129		            <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId) /> 
130		             
131                  <a download href="${cur_FileAllegato.getData()}"> 
132                    <div class="d-flex justify-content-between align-items-center pl-5 pr-5"> 
133                      <span> 
134                      <#assign title = "" /> 
135                        <#if cur_FileAllegato.TitoloFile.getData()?has_content && cur_FileAllegato.TitoloFile.getData()?length gt 0> 
136                           <#assign title = cur_FileAllegato.TitoloFile.getData() /> 
137                        <#else> 
138                            <#assign title = file.fileName /> 
139                        </#if> 
140                        ${title} 
141                      </span> 
142                      <button class="btn btn-outline-primary">${file.extension?upper_case}</button> 
143                    </div> 
144                  </a> 
145                </div> 
146              </#list> 
147            </div> 
148          </div> 
149        </div> 
150    </#if> 
151     
152</div>