Navigaatiovalikko

Sisältöjulkaisija

angle-left Nuorisotoimen tanssiryhmien kevätshow 18.5.
Virhe tapahtui prosessoidessa esitysmallia.
Java method "static com.liferay.journal.service.JournalArticleLocalServiceUtil.getArticle(long, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign reservedArticle = journalArti...  [in template "89394#89428#UUTINEN_TMPL-1.0.0" at line 10, column 1]
----
1<#assign displaydate = .vars['reserved-article-display-date'].data> 
2<#assign originalLocale = .locale> 
3<#setting locale = localeUtil.getDefault()> 
4<#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
5<#assign locale = originalLocale> 
6 
7<#assign journalArticleId = .vars['reserved-article-id'].data /> 
8<#assign journalArticleLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleLocalServiceUtil"] /> 
9<#assign layoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] /> 
10<#assign reservedArticle = journalArticleLocalServiceUtil.getArticle(groupId, journalArticleId) /> 
11<#--assign articleLayout = layoutLocalServiceUtil.getLayoutByUuidAndGroupId(reservedArticle.getLayoutUuid(), groupId, false) />--> 
12<#attempt> 
13    <#assign articleLayout = reservedArticle.getLayout() /> 
14    <#assign contentUrl = articleLayout.getFriendlyURL(localeUtil.getDefault()) /> 
15<#recover> 
16    <!-- Error while fetching article display page url --> 
17    <#assign contentUrl = "#" /> 
18</#attempt> 
19<div class="article-container clear"> 
20 
21    <!-- article header --> 
22 
23    <div class="article-header-container"> 
24        <div class="article-header"> 
25            <div class="article-date"> 
26                ${displaydate?string["dd.MM.yyyy"]} 
27            </div> 
28            <h1>${articleTitle.getData()}</h1> 
29            <div class="article-ingress"> 
30            ${articleTitle.articleIngress.getData()} 
31            </div> 
32        </div> 
33    </div> 
34 
35    <!-- article content --> 
36 
37    <div class="article-content"> 
38    ${articleContent.getData()} 
39    </div> 
40	<div style="display: none;"> 
41	<#if articleThumbnail.getData()?? && articleThumbnail.getData() != ""> 
42	    <img style="display:none;" data-fileentryid="${articleThumbnail.getAttribute("fileEntryId")}" alt="${articleThumbnail.getAttribute("alt")}" src="${articleThumbnail.getData()}" /> 
43    </#if> 
44    </div> 
45    <!-- repeatable link list --> 
46 
47<#if articleLinkList.getSiblings()?has_content> 
48    <#list articleLinkList.getSiblings() as cur_linklist> 
49        <#if cur_linklist.articleLinkText.getSiblings()[0].getData()?has_content> 
50            <div class="article-linklist"> 
51                <#if cur_linklist.getData()?has_content> 
52                    <div class ="article-linklist-title"> 
53                        <h3>${cur_linklist.getData()}</h3> 
54                    </div> 
55                </#if> 
56                <ul class="link-list container"> 
57                    <#if cur_linklist.articleLinkText.getSiblings()?has_content> 
58                        <#list cur_linklist.articleLinkText.getSiblings() as cur_link> 
59                            <li class="article-link col-md-6 col-xs-12"> 
60                                <i class="icon-chevron-right"></i><a href="${cur_link.articleLinkAdress.getData()}">${cur_link.getData()}</a> 
61                            </li> 
62                        </#list> 
63                    </#if> 
64                </ul> 
65            </div> 
66        </#if> 
67    </#list> 
68</#if> 
69 
70<#if articleContactList.getSiblings()?has_content> 
71    <#list articleContactList.getSiblings() as cur_contactlist> 
72        <#if cur_contactlist.articleContactText.getSiblings()[0].getData()?has_content> 
73        <div class="article-linklist contact-linklist"> 
74            <#if cur_contactlist.getData()?has_content> 
75                <div class ="article-linklist-title contact-title"> 
76                    <h3>${cur_contactlist.getData()}</h3> 
77                </div> 
78            </#if> 
79            <ul class="link-list contact-link container"> 
80                <#if cur_contactlist.articleContactText.getSiblings()?has_content> 
81                    <#list cur_contactlist.articleContactText.getSiblings() as cur_contact> 
82                        <li class="article-contact col-md-6 col-xs-12"> 
83                            <div class="contact-name-container"> 
84                                <i class="icon-chevron-right"></i>${cur_contact.getData()} 
85                            </div> 
86                            <div class="article-contact-info"> 
87                                <p>${cur_contact.articleContactTitle.getData()}</p> 
88                                <p>${cur_contact.articleContactAdress.getData()}</p> 
89                                <p>${cur_contact.articleContactNumber.getData()}</p> 
90                                <p>${cur_contact.articleContactEmail.getData()}</p> 
91                            </div> 
92                        </li> 
93                    </#list> 
94                </#if> 
95            </ul> 
96        </div> 
97        </#if> 
98    </#list> 
99</#if> 
100    <div class="return-links"> 
101    	<div class="return-to-previous"> 
102    	    <a class="return-link" href="javascript:history.back()"> 
103    	        <i class="icon-chevron-left"></i> 
104    	        <@liferay.language key="back-to-previous" /> 
105    	    </a> 
106    	</div> 
107        <div style="display: none;" id="return-to-news-listing" class="return-to-news-listing"> 
108            <a id="return-to-news-list-link" class="return-link" href="${contentUrl}"> 
109                <i class="icon-chevron-left"></i> 
110                <@liferay.language key="back-to-news-list" /> 
111            </a> 
112        </div> 
113    </div> 
114</div> 
115 
116     
117 
118<style> 
119    div.h2 { 
120        display:none !important;    
121
122</style> 
123<script type="text/javascript"> 
124window.onload = function () {  
125    var currentLocation = window.location.toString(); 
126    if(currentLocation.includes("/-/")) { 
127        var returnLinkContainer = document.getElementById("return-to-news-listing"); 
128        var returnLinkElement = document.getElementById("return-to-news-list-link"); 
129        // if reserved journalarticle layout isn't set, this will do the trick at least when user is opening this article from /uutiset page 
130        if (returnLinkElement.href.includes("/-/")) { 
131            var newsLocation = currentLocation.split("/-/")[0]; 
132            //console.log("changing url to newlocation: "+newsLocation); 
133            returnLinkElement.href=newsLocation; 
134            returnLinkContainer.style.display = "block"; 
135
136        returnLinkContainer.style.display = "block"; 
137
138
139</script>