Sisältöjulkaisija

Virhe tapahtui prosessoidessa esitysmallia.
The following has evaluated to null or missing:
==> serviceLocator  [in template "364503#364539#370719" at line 23, column 45]

----
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 UserLocalService = serviceLoc...  [in template "364503#364539#370719" at line 23, column 17]
----
1<#if !entries?has_content> 
2	<#if !themeDisplay.isSignedIn()> 
3		${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
4	</#if> 
5 
6	<div class="alert alert-info"> 
7		<@liferay_ui["message"] 
8			key="there-are-no-results" 
9		/> 
10	</div> 
11</#if> 
12<div class="blogsADTContainer"> 
13<#list entries as curentry> 
14    <#assign entry = curentry.getAssetRenderer().getAssetObject() /> 
15	<div class="entry"> 
16		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curentry.getAssetRenderer(), curentry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) /> 
17         
18        <#assign summary = entry.getDescription() /> 
19 
20			<#if validator.isNull(summary)> 
21				<#assign summary = entry.getContent() /> 
22			</#if> 
23		<#assign UserLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")> 
24		<#assign user = UserLocalService.getUser(entry.userId) /> 
25        <div class="blog-info-container clear"> 
26            <div class="blog-writer-info col-lg-2 col-md-2 col-sm-2 col-xs-2"> 
27                <img src="${user.getPortraitURL(themeDisplay)}" alt="<@liferay.language key='avatar' />"> 
28                <div class="blog-writer-name">${htmlUtil.escape(portalUtil.getUserName(entry.getUserId(), entry.getUserName()))}</div> 
29                <div class="blog-writer-title">${htmlUtil.escape(user.getJobTitle())}</div> 
30            </div> 
31            <div class="blog-content-info col-lg-10 col-md-10 col-sm-10 col-xs-10"> 
32                <div class="blog-date">${dateUtil.getDate(entry.getCreateDate(), "dd MMM yyyy - HH:mm:ss", locale)}</div> 
33                <h3 class="blog-title">${htmlUtil.escape(entry.getTitle())}</h3> 
34                <div class="blog-subtitle">${stringUtil.shorten(htmlUtil.stripHtml(summary), 100)}</div> 
35                <a class="blog-link"href="${viewURL}"><@liferay.language key="read-more" /></a> 
36            </div> 
37            <div class="clear"></div> 
38        </div> 
39        <div class="clear"></div> 
40</#list> 
41<div class="clear"></div> 
42</div> 

Ota yhteyttä:

Jere Penttilä kuva

JERE PENTTILÄ

KUNNANJOHTAJA
050 432 7600
jere.penttila@kontiolahti.fi