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@37679c6b"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: dataObj = dateUtil.parseDate("yyyy-MM...  [in template "170938#170973#223605" in macro "htmloutput" at line 64, column 17]
	- Reached through: #assign-container  [in template "170938#170973#223605" in macro "htmloutput" at line 60, column 13]
	- Reached through: @htmloutput  [in template "170938#170973#223605" at line 47, 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    <style> 
11        div#bs-carousel { 
12            display: none; 
13
14        #body-content #strip_header.half_h { 
15            height: 100px !important; 
16
17    </style> 
18     
19    <#setting url_escaping_charset = "UTF-8"> 
20 
21    <#assign 
22        mkspAPI = serviceLocator.findService("eu.suggesto.suggestogui.service.SuggestoGuiLocalService") 
23        SuggestoRecommenderServiceAPI = serviceLocator.findService("eu.suggesto.servicecs.service.SuggestoRecommenderLocalService") 
24        SuggestoCSServiceAPI = serviceLocator.findService("eu.suggesto.servicecs.service.SuggestoCSLocalService") 
25        serviceName = "federbandeMongo" 
26        collection = "Eventi" 
27        sort = "" 
28        numItems = 1 
29        itemsInPage = 0 
30        numFound = 0 
31        skipRows = 0 
32        numberOfItems = 3 
33        wcfgParamOk = false 
34        baseUrl = themeDisplay.getPortalURL() 
35        eventoId = httpUtil.getParameter(themeDisplay.getURLCurrent(), 'id') 
36        queryString = "{'_id': {'$oid': '${eventoId}'}}" 
37        items = SuggestoRecommenderServiceAPI.search("0", serviceName, collection, queryString, sort, skipRows, numItems) 
38    /> 
39 
40    <#-- DEBUG: @paramjsonoutput / -->  
41 
42    <#if items.getJSONObject("data")?has_content > 
43        <#-- DEBUG: items.getJSONObject("data").toString() --> 
44         
45        <#if items.getJSONObject("data").getJSONArray("items")?has_content> 
46            <#assign docs = items.getJSONObject("data").getJSONArray("items")> 
47            <@htmloutput />  
48        <#else> 
49            <div class="container"> 
50                <h4 class="my-5">Errore interno</h4> 
51            </div> 
52        </#if> 
53    </#if> 
54         
55     
56    <#macro htmloutput> 
57        <#if docs.getJSONObject(0)?has_content> 
58            <#-- DEBUG <p class="small text-muted mb-4">${htmlUtil.stripHtml(doc.toString())}</p> --> 
59             
60            <#assign 
61                doc = docs.getJSONObject(0) 
62                localita = doc.getString("localita") 
63                titolo = doc.getString("titolo") 
64                dataObj = dateUtil.parseDate("yyyy-MM-dd", doc.getString("data"), locale) 
65                data = dateUtil.getDate(dataObj, "dd MMMM yyyy", locale) 
66                banda = doc.getString("banda") 
67                ora = doc.getString("ora") 
68                descrizione = doc.getString("descrizione") 
69                foto = doc.getString("foto") 
70                 
71                baseUrl = themeDisplay.getPortalURL()?replace("://", ".") 
72                prefix = "https://d28r45jypu6nt9.cloudfront.net/o/d40/img/w_720/" + baseUrl 
73            /> 
74                 
75            <div class="container"> 
76                <div class="row my-4"> 
77                    <div class="col-12 col-md-6"> 
78                        <#if foto?has_content> 
79                            <img src="${prefix}${foto}" class="w-100 h-100" alt="${banda}"> 
80                        </#if> 
81                    </div> 
82                    <div class="col-12 col-md-6"> 
83                        <h1 class="mb-4">${titolo}</h1> 
84                        <p>${banda}</p> 
85                        <p>${localita}</p> 
86                        <p>${data} - ${ora}</p> 
87                        <p>${descrizione}</p> 
88                    </div> 
89                </div> 
90            </div> 
91        </#if> 
92    </#macro>  
93     
94    <#macro paramjsonoutput> 
95
96            "serviceName": "${serviceName}", 
97            "collection": "${collection}", 
98            "queryString": "${queryString}", 
99            "sort": "${sort}", 
100            "skipRows": ${skipRows}, 
101            "numItems": ${numItems} 
102
103    </#macro> 
104</#compress>