Navigation Menu

Latest Tweets

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> entry.getAssetRenderer()  [in template "44029#44070#1744715" at line 7, column 20]

----
Tip: If the failing expression is known to 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 articleId = entry.getAssetRen...  [in template "44029#44070#1744715" at line 7, column 1]
----
1<#assign assetEntryLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil'] /> 
2<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 
3<#--<#assign assetEntryQuery =  objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") />--> 
4<#--${paramUtil.getString(request, "assetEntry", "defaultValue")}--> 
5<#assign assetEntryQuery = paramUtil.getLong(request, "assetEntry") /> 
6<#assign entry=assetEntryLocalServiceUtil.fetchAssetEntry(assetEntryQuery) /> 
7<#assign articleId=entry.getAssetRenderer().getArticle().getArticleId() /> 
8<#assign groupId=entry.getAssetRenderer().getArticle().getGroupId() /> 
9<#assign journalArticle = journalArticleLocalService.getLatestArticle(groupId, articleId, 0)/> 
10<@liferay_journal["journal-article"] articleId=journalArticle.getArticleId() groupId=groupId/> 
11 
12<#-- 
13Widget templates can be used to modify the look of a 
14specific application. 
15 
16Please use the left panel to quickly add commonly used variables. 
17Autocomplete is also available and can be invoked by typing "${". 
18-->