Elnöki cikk listázó

Во время обработки запрошенного шаблона произошла ошибка...
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@c1c0cef"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign date_DateObj = dateUtil.parse...  [in template "10154#10194#5353343" at line 27, column 17]
----
1<#assign  
2    currentUrlPath = themeDisplay.getURLCurrent()?keepBefore("?"), 
3    layoutFriendlyUrl = themeDisplay.getLayoutFriendlyURL( themeDisplay.getLayout() )> 
4<#if currentUrlPath == "/"> 
5    <#assign currentUrlPath = layoutFriendlyUrl > 
6<#elseIf !currentUrlPath?endsWith(layoutFriendlyUrl)> 
7    <#assign currentUrlPath = (currentUrlPath + layoutFriendlyUrl)?replace("//","/")> 
8</#if> 
9<#assign articleViewUrl = currentUrlPath + "/-/cikk/" + .vars['reserved-article-id'].data> 
10 
11<div> 
12    <#if (image.getData())?? && image.getData() != ""> 
13        <a href="${articleViewUrl}" target="_blank"> 
14            <img alt="${image.getAttribute("alt")}" data-fileentryid="${image.getAttribute("fileEntryId")}" src="${image.getData()}"/> 
15        </a> 
16    </#if> 
17    <div> 
18        <h3> 
19            <a href="${articleViewUrl}" target="_blank">${title.getData()}</a> 
20            <@editIcon /> 
21        </h3> 
22        <p class="summary">${summary.getData()}</p> 
23        <p class="source">${source.getData()}</p> 
24        <div class="date"> 
25            <#assign date_Data = .vars['reserved-article-display-date'].data> 
26            <#if validator.isNotNull(date_Data)> 
27                <#assign date_DateObj = dateUtil.parseDate("EEE, d MMM yyyy HH:mm:ss Z", date_Data, locale)> 
28                ${dateUtil.getDate(date_DateObj, "yyyy. MMMM dd.", locale)} 
29            </#if> 
30        </div> 
31    </div> 
32</div> 
33 
34<#macro editIcon> 
35    <#assign  
36        assetRendererFactoryRegistryUtil = staticUtil["com.liferay.asset.kernel.AssetRendererFactoryRegistryUtil"], 
37        journalArticleAssetRendererFactory = assetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName( "com.liferay.journal.model.JournalArticle" ), 
38        journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService"), 
39        journalArticle = journalArticleLocalService.getArticle(themeDisplay.getScopeGroupId(),.vars['reserved-article-id'].data), 
40        assetRenderer = journalArticleAssetRendererFactory.getAssetRenderer( journalArticle.id ), 
41        url = assetRenderer.getURLEdit( themeDisplay.getRequest() ), 
42        void = url.setParameter( "redirect", themeDisplay.getURLCurrent() ) 
43
44    <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
45    	<@liferay_ui["icon"] 
46    		cssClass="visible-interaction" 
47    		icon='pencil' 
48    		linkCssClass="text-primary" 
49    		markupView="lexicon" 
50    		method="get" 
51    		url='${url.toString()}' 
52    		useDialog=false 
53    	/> 
54    </#if> 
55</#macro> 
Во время обработки запрошенного шаблона произошла ошибка...
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@c1c0cef"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign date_DateObj = dateUtil.parse...  [in template "10154#10194#5353343" at line 27, column 17]
----
1<#assign  
2    currentUrlPath = themeDisplay.getURLCurrent()?keepBefore("?"), 
3    layoutFriendlyUrl = themeDisplay.getLayoutFriendlyURL( themeDisplay.getLayout() )> 
4<#if currentUrlPath == "/"> 
5    <#assign currentUrlPath = layoutFriendlyUrl > 
6<#elseIf !currentUrlPath?endsWith(layoutFriendlyUrl)> 
7    <#assign currentUrlPath = (currentUrlPath + layoutFriendlyUrl)?replace("//","/")> 
8</#if> 
9<#assign articleViewUrl = currentUrlPath + "/-/cikk/" + .vars['reserved-article-id'].data> 
10 
11<div> 
12    <#if (image.getData())?? && image.getData() != ""> 
13        <a href="${articleViewUrl}" target="_blank"> 
14            <img alt="${image.getAttribute("alt")}" data-fileentryid="${image.getAttribute("fileEntryId")}" src="${image.getData()}"/> 
15        </a> 
16    </#if> 
17    <div> 
18        <h3> 
19            <a href="${articleViewUrl}" target="_blank">${title.getData()}</a> 
20            <@editIcon /> 
21        </h3> 
22        <p class="summary">${summary.getData()}</p> 
23        <p class="source">${source.getData()}</p> 
24        <div class="date"> 
25            <#assign date_Data = .vars['reserved-article-display-date'].data> 
26            <#if validator.isNotNull(date_Data)> 
27                <#assign date_DateObj = dateUtil.parseDate("EEE, d MMM yyyy HH:mm:ss Z", date_Data, locale)> 
28                ${dateUtil.getDate(date_DateObj, "yyyy. MMMM dd.", locale)} 
29            </#if> 
30        </div> 
31    </div> 
32</div> 
33 
34<#macro editIcon> 
35    <#assign  
36        assetRendererFactoryRegistryUtil = staticUtil["com.liferay.asset.kernel.AssetRendererFactoryRegistryUtil"], 
37        journalArticleAssetRendererFactory = assetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName( "com.liferay.journal.model.JournalArticle" ), 
38        journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService"), 
39        journalArticle = journalArticleLocalService.getArticle(themeDisplay.getScopeGroupId(),.vars['reserved-article-id'].data), 
40        assetRenderer = journalArticleAssetRendererFactory.getAssetRenderer( journalArticle.id ), 
41        url = assetRenderer.getURLEdit( themeDisplay.getRequest() ), 
42        void = url.setParameter( "redirect", themeDisplay.getURLCurrent() ) 
43
44    <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
45    	<@liferay_ui["icon"] 
46    		cssClass="visible-interaction" 
47    		icon='pencil' 
48    		linkCssClass="text-primary" 
49    		markupView="lexicon" 
50    		method="get" 
51    		url='${url.toString()}' 
52    		useDialog=false 
53    	/> 
54    </#if> 
55</#macro> 
Во время обработки запрошенного шаблона произошла ошибка...
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@c1c0cef"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign date_DateObj = dateUtil.parse...  [in template "10154#10194#5353343" at line 27, column 17]
----
1<#assign  
2    currentUrlPath = themeDisplay.getURLCurrent()?keepBefore("?"), 
3    layoutFriendlyUrl = themeDisplay.getLayoutFriendlyURL( themeDisplay.getLayout() )> 
4<#if currentUrlPath == "/"> 
5    <#assign currentUrlPath = layoutFriendlyUrl > 
6<#elseIf !currentUrlPath?endsWith(layoutFriendlyUrl)> 
7    <#assign currentUrlPath = (currentUrlPath + layoutFriendlyUrl)?replace("//","/")> 
8</#if> 
9<#assign articleViewUrl = currentUrlPath + "/-/cikk/" + .vars['reserved-article-id'].data> 
10 
11<div> 
12    <#if (image.getData())?? && image.getData() != ""> 
13        <a href="${articleViewUrl}" target="_blank"> 
14            <img alt="${image.getAttribute("alt")}" data-fileentryid="${image.getAttribute("fileEntryId")}" src="${image.getData()}"/> 
15        </a> 
16    </#if> 
17    <div> 
18        <h3> 
19            <a href="${articleViewUrl}" target="_blank">${title.getData()}</a> 
20            <@editIcon /> 
21        </h3> 
22        <p class="summary">${summary.getData()}</p> 
23        <p class="source">${source.getData()}</p> 
24        <div class="date"> 
25            <#assign date_Data = .vars['reserved-article-display-date'].data> 
26            <#if validator.isNotNull(date_Data)> 
27                <#assign date_DateObj = dateUtil.parseDate("EEE, d MMM yyyy HH:mm:ss Z", date_Data, locale)> 
28                ${dateUtil.getDate(date_DateObj, "yyyy. MMMM dd.", locale)} 
29            </#if> 
30        </div> 
31    </div> 
32</div> 
33 
34<#macro editIcon> 
35    <#assign  
36        assetRendererFactoryRegistryUtil = staticUtil["com.liferay.asset.kernel.AssetRendererFactoryRegistryUtil"], 
37        journalArticleAssetRendererFactory = assetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName( "com.liferay.journal.model.JournalArticle" ), 
38        journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService"), 
39        journalArticle = journalArticleLocalService.getArticle(themeDisplay.getScopeGroupId(),.vars['reserved-article-id'].data), 
40        assetRenderer = journalArticleAssetRendererFactory.getAssetRenderer( journalArticle.id ), 
41        url = assetRenderer.getURLEdit( themeDisplay.getRequest() ), 
42        void = url.setParameter( "redirect", themeDisplay.getURLCurrent() ) 
43
44    <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
45    	<@liferay_ui["icon"] 
46    		cssClass="visible-interaction" 
47    		icon='pencil' 
48    		linkCssClass="text-primary" 
49    		markupView="lexicon" 
50    		method="get" 
51    		url='${url.toString()}' 
52    		useDialog=false 
53    	/> 
54    </#if> 
55</#macro>