Priopćenja

Došlo je do pogreške prilikom obrade predloška.
Java method "com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer.getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, String)" threw an exception when invoked on com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer object "com.liferay.journal.web.internal.asset.model.JournalArticleAssetRenderer@78316f92"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign viewURL = assetRenderer.getUR...  [in template "20155#20195#120488" at line 13, column 13]
----
1<#include "${templatesPath}/ADT-FUNCTIONS" /> 
2 
3<style> 
4    .hnb-body .article-module.lucene .article-linebanner, .hnb-body .article-module.lucene .entry-container {min-height:70px;} 
5</style> 
6 
7<div class="article-module article white lucene"> 
8    <#if entries?has_content> 
9        <#list entries as curEntry> 
10 
11            <#assign assetRenderer = curEntry.getAssetRenderer() /> 
12            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
13            <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
14 
15            <#if assetRenderer.getClassName() == "com.liferay.journal.model.JournalArticle"> 
16 
17                <#assign article = assetRenderer.getArticle() /> 
18 
19                <#assign naslov = curEntry.getTitle(locale)/> 
20                <#assign podnaslov = getField(article, 'podnaslov')/> 
21 
22                <#if podnaslov?has_content > 
23                    <#assign naslov = podnaslov + "<br>" + naslov /> 
24                </#if> 
25 
26                <#assign godina = getField(article, 'godina')/> 
27                <#assign datum_objave = getField(article, 'datum_objave')/> 
28 
29                <div class="entry-container"> 
30                        <div class="article-linebanner"> 
31                                <h4 class="title"> 
32                                    <a href="${viewURL}">${naslov}</a> 
33                                </h4> 
34                                <h5> 
35                                    <table> 
36                                        <tbody> 
37                                            <#if datum_objave?has_content> 
38                                                <tr> 
39                                                    <th>${languageUtil.get(locale,"templates.publications.table.date")}</th> 
40                                                    <td>${formatDateString(datum_objave)}</td> 
41                                                </tr> 
42                                            </#if> 
43                                        </tbody> 
44                                    </table> 
45                                </h5> 
46                        </div> 
47                </div> 
48            </#if> 
49        </#list> 
50    </#if> 
51</div> 

Pretraživanje priopćenja