News e comunicazioni per essere aggiornato

Si è verificato un errore nell'elaborarazione del modello.
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@5025a456"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: dataEvento = dateUtil.parseDate("yyyy...  [in template "170938#170973#172793" in macro "htmloutput" at line 88, column 33]
	- Reached through: #assign-container  [in template "170938#170973#172793" in macro "htmloutput" at line 86, column 29]
	- Reached through: @htmloutput  [in template "170938#170973#172793" at line 35, column 13]
----
1<#-- 
2    Suggesto - Erogatore HTML da MongoDB 
3    Federbande 
4    ver: 1.5  
5    data: 30/05/2019 
6    Freemarker online: http://freemarker-online.kenshoo.com/ 
7--> 
8 
9<#compress> 
10    <#setting url_escaping_charset = "UTF-8"> 
11 
12    <#assign 
13        mkspAPI = serviceLocator.findService("eu.suggesto.suggestogui.service.SuggestoGuiLocalService") 
14        SuggestoRecommenderServiceAPI = serviceLocator.findService("eu.suggesto.servicecs.service.SuggestoRecommenderLocalService") 
15        SuggestoCSServiceAPI = serviceLocator.findService("eu.suggesto.servicecs.service.SuggestoCSLocalService") 
16        serviceName = "federbandeMongo" 
17        collection = "Eventi" 
18        queryString = "{'vall': true}" 
19        sort = "{'data': 1}" 
20        numItems = 100 
21        itemsInPage = 0 
22        numFound = 0 
23        skipRows = 0 
24        wcfgParamOk = false 
25        items = SuggestoRecommenderServiceAPI.search("0", serviceName, collection, queryString, sort, skipRows, numItems) 
26    /> 
27 
28    <#--  DEBUG @paramjsonoutput / -->  
29 
30    <#if items.getJSONObject("data")?has_content > 
31        <#-- DEBUG items.getJSONObject("data").toString() --> 
32         
33        <#if items.getJSONObject("data").getJSONArray("items")?has_content> 
34            <#assign docs = items.getJSONObject("data").getJSONArray("items")> 
35            <@htmloutput />  
36        </#if> 
37    </#if> 
38         
39     
40    <#macro htmloutput> 
41        <#-- DEBUG <p class="small text-muted mb-4">${htmlUtil.stripHtml(docs.toString())}</p> --> 
42         
43        <section id="strip_event"> 
44            <div class="deco_event"> 
45                <img src="/o/federbande-theme/images/deco_event.png" alt="eventi"> 
46            </div> 
47            <div class="container"> 
48                <div class="row"> 
49                    <div class="title_section padding-element col-md-9"> 
50                        <h3><span>Eventi</span> delle nostre bande</h3> 
51                    </div> 
52                    <div class="bottom_full col-md-3"> 
53                        <a href="/eventi" class="btn border-gradient-white desktop">Vedi tutti <i class="fa fa-arrow-right"></i></a> 
54                    </div> 
55                </div> 
56                <div class="row"> 
57                    <#list 0..docs.length()-1 as i> 
58                        <#if docs.getJSONObject(i)?has_content> 
59                            <#setting locale = themeDisplay.getLocale()> 
60                            <#assign 
61                                doc = docs.getJSONObject(i) 
62                                localita = doc.getString("localita") 
63                                titolo = doc.getString("titolo") 
64                                dataStr = doc.getString("data") 
65                                banda = doc.getString("banda") 
66                                ora = doc.getString("ora") 
67                                oid = doc.getJSONObject("_id").getString("$oid") 
68                                viewUrl = "/dettaglio-evento?id=" + oid 
69                            /> 
70                             
71                            <#if dataStr?has_content> 
72                                <#assign 
73                                    dataObj = dateUtil.parseDate("yyyy-MM-dd", dataStr, locale) 
74                                    giorno = dateUtil.getDate(dataObj, "dd", locale) 
75                                    mese = dateUtil.getDate(dataObj, "MMM", locale) 
76                                    anno = dateUtil.getDate(dataObj, "yyyy", locale) 
77                                /> 
78                            <#else> 
79                                <#assign 
80                                    giorno = "N/A" 
81                                    mese = "N/A" 
82                                    anno = "N/A" 
83                                /> 
84                            </#if> 
85                             
86                            <#assign 
87                                dataAttuale = .now?date 
88                                dataEvento = dateUtil.parseDate("yyyy-MM-dd", dataStr, locale)?date 
89                            /> 
90                             
91                            <#if (dataEvento > dataAttuale)> 
92                                <div class="col-12 col-md-6 col-xl-4 mb-4 mb-md-5 block_abstract"> 
93                                 
94                                    <!-- ${htmlUtil.stripHtml(doc.toString())} --> 
95                                 
96                                    <a href="${viewUrl}"> 
97                                        <div class="description h-100"> 
98                                            <div class="date_event"><span>${giorno}</span>${mese}<small class="d-block">${anno}</small></div> 
99                                            <div class="content_desc_event"> 
100                                                <div class="title_event">${titolo}</div> 
101                                                <div class="location_event"> 
102                                                    <i class="fa fa-map-marker-alt"></i> ${localita} 
103                                                </div> 
104                                                <div class="hour_event"> 
105                                                    <i class="fa fa-clock"></i> ${ora} 
106                                                </div> 
107                                                <div class="name_event_band"> 
108                                                    <i class="fa fa-music"></i> ${banda} 
109                                                </div> 
110                                            </div> 
111                                        </div> 
112                                    </a> 
113                                </div> 
114                            </#if> 
115                        </#if> 
116                    </#list> 
117                </div> 
118            </div> 
119        </section> 
120    </#macro>  
121     
122    <#macro paramjsonoutput> 
123
124            "serviceName": "${serviceName}", 
125            "collection": "${collection}", 
126            "queryString": "${queryString}", 
127            "sort": "${sort}", 
128            "skipRows": ${skipRows}, 
129            "numItems": ${numItems} 
130
131    </#macro> 
132</#compress>