Häiriölistaus - 07.01. alkaen

Virhe tapahtui prosessoidessa esitysmallia.
Java method "com.liferay.portal.kernel.util.Http.URLtoString(String)" threw an exception when invoked on com.liferay.portal.template.TemplateContextHelper$HttpWrapper object "com.liferay.portal.template.TemplateContextHelper$HttpWrapper@35bdb445"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign response = httpUtil.URLtoStri...  [in template "144156#144190#11976779" at line 4, column 5]
----
1<#assign url = request.attributes['CURRENT_URL']> 
2<#assign id = httpUtil.getParameter(url, "id", false) /> 
3<#if id?has_content && id?? > 
4    <#assign response = httpUtil.URLtoString(Teksti85zu.getData()+id)> 
5<#else> 
6    <#assign response = httpUtil.URLtoString(Tekstifgtw.getData())> 
7</#if> 
8    <#if id?has_content> 
9        <#assign listData = jsonFactoryUtil.looseDeserialize(response) > 
10 
11        <div class="singleElementWdr"> 
12            <h1 class="headerTitle">${listData.otsikko}</h1> 
13            <span class="timeStamp">${listData.paivays}</span> 
14            <#if listData.kuva?? > 
15            <img src="${listData.kuva}" alt="" /> 
16            </#if> 
17            <h4>Kuvaus</h4> 
18            <p class="description">${listData.kuvaus}</p> 
19            <h4>Toimintaohjeet</h4> 
20            <p class="howTo">${listData.toimintaohjeet}</p> 
21            <h4>Vedenjakelu</h4> 
22            <p class="distribution">${listData.vedenjakelu}</p> 
23            <h4>Lisätietoja</h4> 
24            <p class="additionalInformation">${listData.lisatietoja}</p> 
25            <#if listData.muokattu??> 
26                <h4>Muokattu ${listData.muokattu_aika}</h4> 
27                <p class="modified">${listData.muokattu}</p> 
28            </#if> 
29        </div> 
30    <#else> 
31        <#assign listData = jsonFactoryUtil.looseDeserialize(response) > 
32        <#if listData?size != 0> 
33        <div class="wdrContainer"> 
34            <div class="container-fluid"> 
35                <div class="listTitleContainer"> 
36                    <h2 class="title">Häiriötiedotteet</h2> 
37                </div> 
38                <#list listData as row> 
39                    <div class="row"> 
40                        <a class="" href="${Tekstieunk.getData()}?id=${row.id}"> 
41                            <h3 class="rowTitle">${row.otsikko}<i class="icon-chevron-right"></i></h3> 
42                            <p class="rowTimestamp">${row.paivays} 
43                            <#if row.muokattu??> 
44                                <span class="modified">, muokattu ${row.muokattu_aika}</span> 
45                            </#if> 
46                            </p> 
47                             
48                        </a> 
49                    </div> 
50                </#list> 
51            </div> 
52        </div> 
53        </#if> 
54</#if> 
55<style> 
56.wdrContainer .listTitleContainer .title { 
57    background-color: #027EAC; 
58    text-align: center; 
59    font-size: 1.4em; 
60    font-weight: 100; 
61    color: #fff; 
62    padding: 10px; 
63    margin-bottom: 0; 
64    margin-left: -15px; 
65    margin-right: -15px; 
66
67.wdrContainer .row { 
68    background-color: #E6F5FB; 
69    margin-bottom: 5px; 
70    padding: 10px 23px 10px 10px; 
71    margin-bottom: 0; 
72    border-bottom: 1px solid lightgrey; 
73
74.wdrContainer .row a h3.rowTitle { 
75    color: #000; 
76    font-size: 16px; 
77    text-decoration: none; 
78    font-family: Roboto-Regular; 
79    font-weight: 700; 
80    -webkit-font-smoothing: auto; 
81    margin-bottom: 0; 
82    margin-top: 0; 
83
84.wdrContainer .row a p.rowTimestamp { 
85    font-size: 12px; 
86    padding-right: 12px; 
87    color: #9b9b9b; 
88
89.wdrContainer .row a i.icon-chevron-right:before { 
90    color: black; 
91    position: absolute; 
92    right:15px; 
93    font-size:20px; 
94    margin-top: 15px; 
95
96.singleElementWdr .headerTitle { 
97    margin-bottom: 0; 
98
99.singleElementWdr p { 
100    margin-left: 15px; 
101    color: black !important; 
102
103.singleElementWdr .timeStamp { 
104    margin-bottom: 30px; 
105    display: block; 
106
107 
108</style>