Новость подробно

В г. Москве (Российская Федерация) состоялось совещание специалистов национальных статистических служб стран СНГ: обсуждение цен на потребительские товары-представители и результатов пробного ППС
Во время обработки запрошенного шаблона произошла ошибка...
Java method "com.sun.proxy.$Proxy134.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy134 object "com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl@18801787"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign pdfFileEntry = DLAppLocalServ...  [in template "20116#20152#39855" at line 114, column 5]
----
1<div id="entrynews"> 
2    <div class="title-text"> 
3       <h3> 
4    	${.vars['reserved-article-title'].data} 
5    	</h3> 
6    </div> 
7<#assign DLUtil =serviceLocator.findService("com.liferay.document.library.kernel.util.DLUtil")> 
8 
9<#assign DLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService")> 
10 
11<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"] /> 
12 
13<#if ddmimg.getData()?? && ddmimg.getData() != ""> 
14	<img alt="${ddmimg.getAttribute("alt")}" src="${ddmimg.getData()}" style="width: 200px; float:left; margin: 0 7px 7px 0;" /> 
15</#if> 
16 
17<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleService")> 
18 
19<#assign dateFormat = dateFormatFactory.getSimpleDateFormat("dd.MM.yyyy") /> 
20<#assign date = .vars['reserved-article-display-date'].data /> 
21 
22<#setting locale = 'ru_RU'> 
23<#assign date = date?date("E, dd MMM yyyy HH:mm:ss Z")> 
24<#--  
25 
2622 мар 2018 15:15:06 +0000 
27 
28 --> 
29<#--  
30${dateUtil.getDate(modifieDate, "dd MMM yyyy - HH:mm:ss", locale)} 
31 <#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] /> 
32   
33    
34--> 
35 
36<div class="date color_red"> 
37 
38<#assign url = request.attributes['CURRENT_URL']> 
39 
40<#assign redirecturl = httpUtil.getParameter(url, "redirect", false)> 
41 
42<#if redirecturl == ""> 
43	<#assign redirecturl = "news"> 
44</#if> 
45 
46<@liferay_ui["icon"] 
47	cssClass="header-back-to" 
48	icon="angle-left" 
49	markupView="lexicon" 
50	method="get" 
51	url="/"+redirecturl?string 
52/> 
53&nbsp;&nbsp; 
54${date}<br> 
55<#-- ${"2014-05-31 12:03:34"?datetime("yyyy-MM-dd HH:mm:ss")}  -->  
56 
57</div> 
58${newshtml.getData()} 
59 
60<#assign journalArticleId = .vars['reserved-article-id'].data> 
61<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
62 
63<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
64 
65<#assign article = JournalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data)> 
66 
67<#assign asset = AssetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) > 
68 
69 
70 
71</div> 
72 
73 
74<div class="hide" id="topNewsImage"> 
75	 <#if featuredImage ?? && featuredImage?has_content > 
76        <#if featuredImage.getSiblings()?? && featuredImage.getSiblings()?has_content > 
77        	<#list featuredImage.getSiblings() as cur_FeaturedImage> 
78        	  <#if cur_FeaturedImage.getData() != ""> 
79                <div class="news_items">  
80        	       <div> 
81        	       <a style="color:white" href="${themeDisplay.getURLPortal()}${themeDisplay.getPathFriendlyURLPublic()}${themeDisplay.getLayout().getGroup().friendlyURL}/foto-video-materialy"> 
82        	       </center> 
83        	         <img src="${cur_FeaturedImage.getData()}" class="featuredImage" /> 
84        	        </center> 
85        	        </a> 
86        	      </div> 
87            	</div>  
88            </#if>	 
89        	</#list> 
90        </#if>	 
91    </#if> 
92</div> 
93 
94 
95<div class="hide" id="topNewsDocument"> 
96<#assign pdfIconFileEntry =DLAppLocalService.getFileEntry(themeDisplay.getScopeGroupId(), 0, "pdf-download") /> 
97<#assign themeDisplay = serviceContext.getServiceContext().getThemeDisplay()/> 
98<#assign pdfDownloadImageURL= DLUtil.getPreviewURL(pdfIconFileEntry, pdfIconFileEntry.getFileVersion(), themeDisplay, "") > 
99        <#if featuredDocument ??> 
100            <#if featuredDocument.getSiblings()?has_content> 
101               <#list featuredDocument.getSiblings() as cur_FeatureDocument> 
102                <#if cur_FeatureDocument.getData() != ""> 
103                        <div class="document-list"> 
104                            <div class="imageDiv"> 
105            <a href="<#if cur_FeatureDocument.getData()??>${cur_FeatureDocument.getData()}?download=true</#if>" > 
106                               <img src="<#if pdfDownloadImageURL ??>${pdfDownloadImageURL}</#if>" /> 
107                               </a> 
108                            </div>  
109                       <div class="title"> 
110                           <#list cur_FeatureDocument.getData()?split("/") as fileEntryUrl> 
111                             <#assign uuid=fileEntryUrl> 
112                           </#list> 
113                            <#if uuid ?? && uuid != ""> 
114    <#assign pdfFileEntry =DLAppLocalService.getFileEntryByUuidAndGroupId(uuid,themeDisplay.getScopeGroupId()) /> 
115                        
116                          <a href="${cur_FeatureDocument.getData()}?download=true"> 
117                              <#if pdfFileEntry.description ?? & pdfFileEntry.description != ""> 
118                                ${pdfFileEntry.description} 
119                             </#if> 
120                          </a> 
121    					 </#if>  
122                        </div>  
123                   </div> 
124                </#if>    
125        	</#list> 
126        </#if>	 
127  </#if>     
128</div> 
129 
130 
131<style> 
132 
133.document-list .imageDiv { 
134    display: inline; 
135    float: left; 
136    padding: 5px; 
137
138 
139.document-list .title { 
140    display: inline; 
141    padding-top: 5px; 
142
143</style> 

Файлы для скачивания