Report
An error occurred while processing the template.
The following has evaluated to null or missing: ==> serviceLocator.findService('com.liferay.portlet.journal.service.JournalStructureLocalService') [in template "10157#10197#173725" at line 3, column 22] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign jsService = serviceLocator.fi... [in template "10157#10197#173725" at line 3, column 1] ----
1<#assign jarService = serviceLocator.findService('com.liferay.journal.service.JournalArticleResourceLocalService')>
2<#assign jaService = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService')>
3<#assign jsService = serviceLocator.findService('com.liferay.portlet.journal.service.JournalStructureLocalService')>
4"ID","Content Title","URL","Creation Date","Type","Abstract"<br/>
5<#if entries?has_content>
6 <#list entries as entry>
7 <#assign assetRenderer = entry.getAssetRenderer() />
8 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) />
9 <#assign area = docXml.valueOf("//dynamic-element[@name='announcementarea']/dynamic-content/text()") />
10 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
11 <#assign contentType = entry.getClassPK()>
12 <#assign jar = jarService.fetchJournalArticleResource(entry.getClassPK())>
13 <#assign ja = jaService.getArticle(jar.getGroupId(),jar.getArticleId())>
14 <#assign js = jsService.getStructure(ja.getGroupId(),ja.getStructureId(), true)!"null" />
15 <#if js != "null" >
16 <#assign jsType = js.getName()>
17 <#else>
18 <#assign jsType = 'Default Web Content Type'>
19 </#if>
20 <#if assetLinkBehavior != "showFullContent">
21 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
22 </#if>
23 "${ja.getArticleId()}","<a href="${viewURL}">${entry.getTitle(locale)}</a>","${viewURL}","${entry.getCreateDate()?date}","${jsType}","${ja.getDescription(locale)?replace("\"", "\"\"")}" <br/>
24 </#list>
25<#else>
26 No Documents.
27</#if>