Фурмановское городское поселение

Во время обработки запрошенного шаблона произошла ошибка...
Java method "com.liferay.portlet.documentlibrary.asset.DLFileEntryDDMFormValuesReader.getDDMFormValues()" threw an exception when invoked on com.liferay.portlet.documentlibrary.asset.DLFileEntryDDMFormValuesReader object "com.liferay.portlet.documentlibrary.asset.DLFileEntryDDMFormValuesReader@32ee3889"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign ddmFormValues = valuesReader...  [in template "429355#429390#1874772" at line 25, column 9]
----
1<#assign DocumentConversionUtil = staticUtil["com.liferay.document.library.kernel.document.conversion.DocumentConversionUtil"]> 
2<#assign AssetVocabularyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"]> 
3<#if entries?has_content> 
4    <#assign layoutId = themeDisplay.getLayout().getPlid()/> 
5    <#assign portletId = htmlUtil.escapeAttribute(portletDisplay.getId())/> 
6    <#assign addToPagePermission = portletPermission.contains(permissionChecker, layoutId, portletId, 'ADD_TO_PAGE')/> 
7 
8    <table class="table table-bordered table-hover"> 
9    <thead> 
10		<tr> 
11			<th>Дата принятия</th> 
12			<th>Номер</th> 
13			<th>Вид документа</th> 
14			<th>Название</th> 
15			<#if addToPagePermission> 
16    			<th>Изменить</th> 
17    			<th>Оригинал</th> 
18			</#if> 
19		</tr> 
20	</thead> 
21	<tbody> 
22    <#list entries as entry> 
23        <#assign renderer = entry.getAssetRenderer()/> 
24        <#assign valuesReader = renderer.getDDMFormValuesReader()/> 
25        <#assign ddmFormValues = valuesReader.getDDMFormValues()/> 
26        <#assign ddmFormValuesMap = ddmFormValues.getDDMFormFieldValuesMap()/> 
27        <#assign categories = entry.getCategories()/> 
28 
29        <#assign fileEntry = renderer.getAssetObject()/> 
30        <#assign extension = fileEntry.getExtension()/> 
31 
32        <#assign description = entry.getDescription(locale)/> 
33 
34        <#assign date = ddmFormValuesMap['date'][0].getValue().getString(locale)/> 
35        <#assign number = ddmFormValuesMap['number'][0].getValue().getString(locale)/> 
36        <#if ddmFormValuesMap['publishDate']?has_content> 
37            <#assign publishDate = ddmFormValuesMap['publishDate'][0].getValue().getString(locale)/> 
38        <#else> 
39            <!--error--> 
40        </#if> 
41        <#assign downloadUrl = renderer.getURLDownload(themeDisplay)/> 
42        <#assign downloadSourceUrl = downloadUrl/> 
43         
44        <#if date?has_content> 
45            <#assign formatedDate = dateUtil.getDate(date?datetime("yyyy-MM-dd"), "dd.MM.yy", locale)/> 
46        </#if> 
47 
48        <#if publishDate?has_content> 
49            <#assign formatedPublishDate = dateUtil.getDate(publishDate?datetime("yyyy-MM-dd"), "dd.MM.yy", locale)/> 
50        <#elseif date?has_content> 
51            <#assign formatedPublishDate = dateUtil.getDate(entry.getPublishDate(), "dd.MM.yy", locale)/> 
52        </#if> 
53         
54        <#assign documentTypeVocabulary = AssetVocabularyLocalServiceUtil.getVocabulary(446641)/> 
55        <#assign documentTypeCategories = documentTypeVocabulary.getCategories()/> 
56         
57        <#assign documentType = 'Документ'/> 
58        <#list categories as category> 
59            <#list documentTypeCategories as documentTypeCategory> 
60                <#if category.getCategoryId() == documentTypeCategory.getCategoryId()> 
61                    <#assign documentType = category.getName()/> 
62                </#if> 
63            </#list> 
64        </#list> 
65        
66        <#assign target = ''/> 
67        <#assign isConvertible = DocumentConversionUtil.getConversions(extension)?seq_contains('pdf')/> 
68        <#if isConvertible> 
69    		<#assign downloadUrl = downloadUrl?replace('&download=true', '')/> 
70    		<#assign downloadUrl = downloadUrl + '&targetExtension=pdf'/> 
71    		<#assign target = 'target="_blank"'/> 
72    	</#if> 
73    	<#if extension == 'pdf'> 
74    		<#assign downloadUrl = downloadUrl?replace('&download=true', '')/> 
75    		<#assign target = 'target="_blank"'/> 
76    	</#if> 
77    	<#assign editPermission = layoutPermission.contains(permissionChecker, layoutId, 'EDIT')/> 
78    	<#assign editUrl = renderer.getURLEdit(renderRequest,renderResponse,windowStateFactory.getWindowState("NORMAL"),portletURLFactory.create(renderRequest, themeDisplay.getPortletDisplay().getId(),themeDisplay.getPlid(), "RENDER_PHASE"))/> 
79 
80        <tr> 
81            <td>${formatedDate}</td> 
82            <td>${number}</td> 
83            <td>${documentType}</td> 
84            <td> 
85                <a href="${downloadUrl}" target="${target}" class="d-block">${description}</a> 
86                <span class="reference-mark">Дата публикации: ${formatedPublishDate}</span> 
87            </td> 
88             <#if editPermission> 
89            <td> 
90    			<a href="${editUrl}" class="text-secondary"> 
91    				<@liferay.language key="edit" /> 
92    			</a> 
93            </td> 
94            <td> 
95    			<a href="${downloadSourceUrl}" class="text-secondary"> 
96    				<@liferay.language key="download" /> 
97    			</a> 
98            </td> 
99            </#if> 
100		</tr> 
101	</#list> 
102	</tbody> 
103	</table> 
104</#if> 
— 20 Предметов на странице
Показывается результатов: 1 - 20 из 86.