Breadcrumbnavigation

Breadcrumbnavigation

Asset Publisher

Fehler bei der Verarbeitung der Vorlage.
Java method "com.sun.proxy.$Proxy473.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy473 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@2b147abc"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign article = journalArticleLocal...  [in template "20116#20152#79539" at line 18, column 5]
----
1<@liferay_theme["defineObjects"] /> 
2<#assign liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"] /> 
3<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
4<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
5<#assign OrderByComparatorFactoryUtil = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"] /> 
6<#assign categoriesOrderBy = OrderByComparatorFactoryUtil.create("assetentry", ["modifiedDate", false]) /> 
7<#assign assetTagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
8 
9<#assign articleId = request.getParameter("updates_news")!'0' /> 
10 
11<#if articleId == "0"> 
12    <#assign assetTag= assetTagLocalService.fetchTag(scopeGroupId,'updates')!''> 
13    <#assign defaultTagFirstArticle = assetEntryLocalService.getAssetTagAssetEntries(assetTag.getTagId(),1,2,categoriesOrderBy)> 
14    <#assign article = journalArticleLocalService.getLatestArticle(defaultTagFirstArticle[0].classPK)> 
15</#if> 
16 
17<#if articleId != "0"> 
18    <#assign article = journalArticleLocalService.getArticle(groupId, articleId) /> 
19</#if> 
20 
21<div class="updates-news-detail"> 
22    <@liferay_ui["asset-display"] 
23        className="com.liferay.journal.model.JournalArticle" 
24        classPK=getterUtil.getLong(article.getResourcePrimKey(), 0) 
25        template="full_content" 
26    /> 
27</div> 

Asset Publisher

Fehler bei der Verarbeitung der Vorlage.
Java method "com.sun.proxy.$Proxy473.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy473 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@2b147abc"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign article = journalArticleLocal...  [in template "20116#20152#79567" at line 21, column 5]
----
1<#setting url_escaping_charset='ISO-8859-1' /> 
2<@liferay_theme["defineObjects"] /> 
3<#assign page_group = layout.getGroup() /> 
4<#assign site_url = htmlUtil.escape(page_group.getDisplayURL(themeDisplay, false)) /> 
5<#assign pgsUtil = serviceLocator.findService("com.pgs.tags.constants.TagConstantsService") /> 
6 
7<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
8<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
9<#assign OrderByComparatorFactoryUtil = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"] /> 
10<#assign categoriesOrderBy = OrderByComparatorFactoryUtil.create("assetentry", ["modifiedDate", false]) /> 
11<#assign assetTagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
12<#assign articleId = request.getParameter("updates_news")!'0' /> 
13<#assign tag_type = request.getParameter("type")!'updates' /> 
14<#assign articleId_long = articleId?number /> 
15 
16<#if articleId_long <= 0> 
17    <#assign assetTag= assetTagLocalService.fetchTag(scopeGroupId,tag_type)!'' /> 
18    <#assign defaultTagFirstArticle = assetEntryLocalService.getAssetTagAssetEntries(assetTag.getTagId(),0,1,categoriesOrderBy) /> 
19    <#assign article = journalArticleLocalService.getLatestArticle(defaultTagFirstArticle[0].classPK) /> 
20<#else> 
21    <#assign article = journalArticleLocalService.getArticle(scopeGroupId, articleId) /> 
22</#if> 
23 
24<#assign seq = ['news-local', 'news-global', 'press-release-local', 'press-release-global', 'pm-post-local', 'pm-post-global', 'pm-event-local', 'pm-event-global'] /> 
25 
26<#assign articleTag = "" /> 
27 
28<#assign curSiteLocale = themeDisplay.getLocale() /> 
29 
30<#list entries as entry> 
31    <#if article.getResourcePrimKey() == entry.getClassPK()> 
32        <#list entry.getTags() as tag> 
33            <#if seq?seq_contains(tag.name)> 
34                <#assign articleTag = tag.name> 
35                <#break> 
36            </#if> 
37        </#list> 
38    </#if> 
39</#list> 
40 
41<div class="updates-news-related"> 
42    <#if articleTag == "news-local"> 
43        <div class="heading-wrap yellow-bg"> 
44            <h2> 
45                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-news" /> 
46            </h2> 
47        </div> 
48 
49    <#elseif articleTag == "news-global"> 
50        <div class="heading-wrap yellow-bg"> 
51            <h2> 
52                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-news" /> 
53            </h2> 
54        </div> 
55 
56    <#elseif articleTag == ""> 
57        <div class="heading-wrap yellow-bg"> 
58            <h2> 
59                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-news" /> 
60            </h2> 
61        </div> 
62 
63    <#elseif articleTag == "press-release-local"> 
64        <div class="heading-wrap yellow-bg"> 
65            <h2> 
66                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-press-releases" /> 
67            </h2> 
68        </div> 
69 
70    <#elseif articleTag == "press-release-global"> 
71        <div class="heading-wrap yellow-bg"> 
72            <h2> 
73                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-press-releases" /> 
74            </h2> 
75        </div> 
76 
77    <#elseif articleTag == "pm-post-local"> 
78        <div class="heading-wrap yellow-bg"> 
79            <h2> 
80                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-pm-post" /> 
81            </h2> 
82        </div> 
83 
84    <#elseif articleTag == "pm-post-global"> 
85        <div class="heading-wrap yellow-bg"> 
86            <h2> 
87                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-pm-post" /> 
88            </h2> 
89        </div> 
90 
91    <#elseif articleTag == "pm-event-local"> 
92        <div class="heading-wrap yellow-bg"> 
93            <h2> 
94                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-events" /> 
95            </h2> 
96        </div> 
97 
98    <#elseif articleTag == "pm-event-global"> 
99        <div class="heading-wrap yellow-bg"> 
100            <h2> 
101                <span class="font-icn icon-globe" aria-hidden="true"></span><@liferay.language key="related-events" /> 
102            </h2> 
103        </div> 
104    </#if> 
105 
106    <#if entries?has_content> 
107        <div class="related-content-wrapper"> 
108            <#list entries as curEntry> 
109				 
110				<#if article.getResourcePrimKey() != curEntry.getClassPK()> 
111			 
112                <#assign renderer = curEntry.getAssetRenderer() /> 
113                <#assign className = renderer.getClassName() /> 
114                <#if className == "com.liferay.journal.model.JournalArticle"> 
115                    <#assign journalArticle = renderer.getArticle() /> 
116                    <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
117                    <#assign rootElement = document.getRootElement() /> 
118                    <#assign cur_heading="" cur_image="" cur_intro="" cur_date="" cur_linklabel="" /> 
119                    <#list rootElement.elements() as dynamicElement> 
120                        <#if "Heading" == dynamicElement.attributeValue("name")> 
121                            <#if dynamicElement.elements("dynamic-content")?size gt 1> 
122                                <#list dynamicElement.elements("dynamic-content") as localeElem> 
123                                    <#if curSiteLocale == localeElem.attributeValue("language-id")> 
124                                        <#assign cur_heading = (localeElem.getData()?has_content && localeElem.getData() != '')?then(localeElem.getData()[0..*70], dynamicElement.element("dynamic-content").getData()[0..*70]) /> 
125                                        <#break> 
126                                    <#else> 
127                                        <#assign cur_heading = dynamicElement.element("dynamic-content").getData()[0..*70] /> 
128                                    </#if> 
129                                </#list> 
130                            <#else> 
131                                <#assign cur_heading = dynamicElement.element("dynamic-content").getData()[0..*70] /> 
132                            </#if> 
133                        <#elseif "Image" == dynamicElement.attributeValue("name")> 
134                            <#if dynamicElement.elements("dynamic-content")?size gt 1> 
135                                <#list dynamicElement.elements("dynamic-content") as localeElem> 
136                                    <#if curSiteLocale == localeElem.attributeValue("language-id")> 
137                                        <#assign cur_image = (localeElem.getData()?has_content && localeElem.getData() != '')?then(localeElem.getData(), dynamicElement.element("dynamic-content").getData()) /> 
138                                        <#break> 
139                                    <#else> 
140                                        <#assign cur_image = dynamicElement.element("dynamic-content").getData() /> 
141                                    </#if> 
142                                </#list> 
143                            <#else> 
144                                <#assign cur_image = dynamicElement.element("dynamic-content").getData() /> 
145                            </#if> 
146                        <#elseif "Introduction" == dynamicElement.attributeValue("name")> 
147                            <#if dynamicElement.elements("dynamic-content")?size gt 1> 
148                                <#list dynamicElement.elements("dynamic-content") as localeElem> 
149                                    <#if curSiteLocale == localeElem.attributeValue("language-id")> 
150                                        <#assign cur_intro = (localeElem.getData()?has_content && localeElem.getData() != '')?then(localeElem.getData(), dynamicElement.element("dynamic-content").getData()) /> 
151                                        <#break> 
152                                    <#else> 
153                                        <#assign cur_intro = dynamicElement.element("dynamic-content").getData() />                                  
154									</#if> 
155                                </#list> 
156                            <#else> 
157                                <#assign cur_intro = dynamicElement.element("dynamic-content").getData() /> 
158                            </#if> 
159                        <#elseif "Date" == dynamicElement.attributeValue("name")> 
160                            <#if dynamicElement.elements("dynamic-content")?size gt 1> 
161                                <#list dynamicElement.elements("dynamic-content") as localeElem> 
162                                    <#if curSiteLocale == localeElem.attributeValue("language-id")> 
163                                        <#assign cur_date = (localeElem.getData()?has_content && localeElem.getData() != '')?then(localeElem.getData(), dynamicElement.element("dynamic-content").getData()) /> 
164                                        <#break> 
165                                    <#else> 
166                                        <#assign cur_date = dynamicElement.element("dynamic-content").getData() /> 
167                                    </#if> 
168                                </#list> 
169                            <#else> 
170                                <#assign cur_date = dynamicElement.element("dynamic-content").getData() /> 
171                            </#if> 
172                        <#elseif "LinkLabel" == dynamicElement.attributeValue("name")> 
173                            <#if dynamicElement.elements("dynamic-content")?size gt 1> 
174                                <#list dynamicElement.elements("dynamic-content") as localeElem> 
175                                    <#if curSiteLocale == localeElem.attributeValue("language-id")> 
176                                        <#assign cur_linklabel = (localeElem.getData()?has_content && localeElem.getData() != '')?then(localeElem.getData(), dynamicElement.element("dynamic-content").getData()) /> 
177                                        <#break> 
178                                    <#else> 
179                                        <#assign cur_linklabel = dynamicElement.element("dynamic-content").getData() /> 
180                                    </#if> 
181                                </#list> 
182                            <#else> 
183                                <#assign cur_linklabel = dynamicElement.element("dynamic-content").getData() /> 
184                            </#if> 
185                        </#if> 
186                    </#list> 
187                 
188					<div class="updates-news-wrapper hide-in-head"> 
189						<div class="updates-news-container"> 
190							<div class="row"> 
191								<div class="puff col-xs-12 col-md-12"> 
192									<#assign redirectURL = pgsUtil.getReadMoreLink(site_url,journalArticle.getArticleId(),tag_type,cur_heading) /> 
193 
194									<#if cur_image?has_content> 
195										<#if cur_heading?has_content> 
196											<a class="puff-image-link" href="${redirectURL}"> 
197												<div class="puff-image" style="background-image: url(${cur_image});"></div> 
198											</a> 
199										<#else> 
200											<a class="puff-image-link" href="${redirectURL}"> 
201												<div class="puff-image" style="background-image: url(${cur_image});"></div> 
202											</a> 
203										</#if> 
204									</#if> 
205 
206									<div class="puff-content"> 
207										<h3> 
208											<#if cur_heading?has_content> 
209												<a href="${redirectURL}">${cur_heading}</a> 
210											</#if> 
211										</h3> 
212										<#if cur_date?has_content><div class="content-meta">${cur_date}</div></#if> 
213										<p> 
214											<#if cur_intro?has_content> 
215												${cur_intro[0..*103]}... 
216											</#if> 
217 
218											<#if cur_linklabel?has_content> 
219												<#if cur_heading?has_content> 
220													<a href="${redirectURL}">${cur_linklabel}</a> 
221												<#else> 
222													<a href="${redirectURL}">${cur_linklabel}</a> 
223												</#if> 
224											</#if> 
225										</p> 
226										<#if cur_image?has_content> 
227											<div class="arrow-up"></div> 
228										</#if> 
229									</div> 
230								</div> 
231							</div> 
232						</div> 
233					</div> 
234				</#if> 
235				 
236				</#if> 
237				 
238            </#list> 
239        </div> 
240    </#if> 
241</div>