multimedia-frontend Portlet

S'ha produït un error mentre es processava la plantilla.
Java method "com.sun.proxy.$Proxy531.getLatestArticle(long)" threw an exception when invoked on com.sun.proxy.$Proxy531 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@5314141f"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign currentAutorArticle = journal...  [in template "220531#220577#226401" at line 93, column 65]
----
1<#assign dayFormat = "d" /> 
2<#assign monthFormat = "MMMM" /> 
3<#assign yearFormat = "yyyy" /> 
4<#assign dayMonthFormat = "d MMMM" /> 
5<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
6<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
7<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
8<#assign dLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
9<#assign dLFileEntryMetadataLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService") /> 
10<#assign dLFileEntryTypeLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService") /> 
11<#assign dLUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"]> 
12<#assign dLAppServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppServiceUtil"]> 
13<#assign mimeTypesUtil = staticUtil["com.liferay.portal.kernel.util.MimeTypesUtil"]> 
14<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
15<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
16 
17<#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
18<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
19<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
20<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
21<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
22<#assign currentArticleRelatedPictures = []> 
23 
24<#list currentArticleRelatedLinks as related_entry> 
25	<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
26	<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
27	<#if relatedAssetEntry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry"> 
28		<#assign dLFileEntry = dLFileEntryLocalService.getDLFileEntry(relatedAssetEntry.getClassPK()) /> 
29		<#assign idiomaText = "" /> 
30 
31		<#assign fieldsMap = dLFileEntry.getDDMFormValuesMap(dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()).getFileVersionId()) /> 
32 
33		<#list fieldsMap?keys as structureKey> 
34			<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
35				<#if fieldValue.getName() == "Idioma"> 
36					<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
37				</#if> 
38			</#list> 
39		</#list> 
40		<#if !(idiomaText?has_content && idiomaText != ("[\""+locale.toString()+"\"]")) && mimeTypesUtil.isWebImage(dLFileEntry.getMimeType())> 
41			<#assign currentArticleRelatedPictures = currentArticleRelatedPictures + [related_entry] /> 
42		</#if> 
43	</#if> 
44</#list> 
45 
46<div class="page"> 
47	<div class="page_layout page_margin_top_section clearfix"> 
48		<div class="post single"> 
49			<div class="row no-margin-row post_header"> 
50				<#if Data.getData()!='' && Data.getData()!='null'> 
51					<#assign Data_Data = getterUtil.getString(Data.getData())> 
52					<#assign outDateFormat = "d MMMM yyyy" /> 
53					<#if validator.isNotNull(Data_Data)> 
54						<#assign Data_DateFromObj = dateUtil.parseDate("yyyy-MM-dd", Data_Data, locale) /> 
55						<#if DataFinal.getData()!='' && DataFinal.getData()!='null'> 
56							<#assign Data_Data = getterUtil.getString(DataFinal.getData())> 
57							<#assign outDateFormat = "d MMMM yyyy" /> 
58							<#if validator.isNotNull(Data_Data)> 
59								<#assign Data_DateToObj = dateUtil.parseDate("yyyy-MM-dd", Data_Data, locale) /> 
60								<#assign sameYear = dateUtil.getDate(Data_DateFromObj, yearFormat, locale)==dateUtil.getDate(Data_DateToObj, yearFormat, locale) /> 
61								<#assign sameMonth = dateUtil.getDate(Data_DateFromObj, monthFormat, locale)==dateUtil.getDate(Data_DateToObj, monthFormat, locale) /> 
62 
63								<p class="center_align date_top_post"> 
64									<#if sameYear && !sameMonth> 
65									 	${dateUtil.getDate(Data_DateFromObj, dayMonthFormat, locale)?replace(" de ", " ")} - ${dateUtil.getDate(Data_DateToObj, outDateFormat, locale)?replace(" de ", " ")} 
66									<#elseif sameYear && sameMonth> 
67									 	${dateUtil.getDate(Data_DateFromObj, dayFormat, locale)?replace(" de ", " ")} - ${dateUtil.getDate(Data_DateToObj, outDateFormat, locale)?replace(" de ", " ")} 
68									<#else> 
69									 	${dateUtil.getDate(Data_DateFromObj, outDateFormat, locale)?replace(" de ", " ")} - ${dateUtil.getDate(Data_DateToObj, outDateFormat, locale)?replace(" de ", " ")} 
70									</#if> 
71								</p> 
72 
73							<#else> 
74								<p class="center_align date_top_post">${dateUtil.getDate(Data_DateFromObj, outDateFormat, locale)?replace(" de ", " ")}</p> 
75							</#if> 
76						<#else> 
77							<p class="center_align date_top_post">${dateUtil.getDate(Data_DateFromObj, outDateFormat, locale)?replace(" de ", " ")}</p> 
78						</#if> 
79					</#if> 
80				</#if> 
81				<h1 class="post_title center_align">${.vars['reserved-article-title'].data}</h1> 
82				<div class="column_2_3 center_block center_align"> 
83					<#if Subtitol.getData()!='' && Subtitol.getData()!='null'> 
84						<h2 class="excerpt" style="font-weight: bold">${Subtitol.getData()}</h2> 
85					</#if> 
86				</div> 
87				<#if Autor??> 
88					<#if Autor.getSiblings()?has_content> 
89						<#list Autor.getSiblings() as cur_Autor> 
90							<#if cur_Autor?? && validator.isNotNull(cur_Autor.getData())> 
91								<#assign currentAutor = jsonFactoryUtil.looseDeserialize(cur_Autor.getData())/> 
92								<#assign currentAutorClassPK = currentAutor.classPK?number/>						 
93								<#assign currentAutorArticle = journalArticleLocalService.getLatestArticle(currentAutorClassPK?long)/> 
94								<#if currentAutorArticle?? && validator.isNotNull(currentAutorArticle.getTitle(locale))> 
95									<#assign nomAutor = currentAutorArticle.getTitle(locale) /> 
96									<div class="column_2_3 center_block center_align"> 
97										<h2 class="excerpt">${nomAutor}</h2> 
98									</div> 
99								</#if> 
100							</#if> 
101						</#list> 
102					</#if> 
103				</#if> 
104			</div> 
105			<#if currentArticleRelatedPictures?? && validator.isNotNull(currentArticleRelatedPictures) && (currentArticleRelatedPictures?size > 1) > 
106 
107				<div class="post single fitxa-projecte"> 
108					<div class="row no-margin-row margin_top_50 column_1_1"> 
109 
110						<div id="control-by-post-gallery" class="horizontal_carousel_container big margin_top_10"> 
111							<ul id="post-gallery" class="horizontal_carousel visible-1 autoplay-0 scroll-1 navigation-1 easing-easeInOutQuint duration-750"> 
112								<#list currentArticleRelatedPictures as related_entry> 
113									<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
114									<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
115									<#assign dLFileEntry = dLFileEntryLocalService.getDLFileEntry(relatedAssetEntry.getClassPK()) /> 
116									<#assign url = dLUtil.getPreviewURL(dLAppServiceUtil.getFileEntry(dLFileEntry.getFileEntryId()), dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()), themeDisplay, "") /> 
117									<#assign idiomaText = "" /> 
118 
119									<#assign fieldsMap = dLFileEntry.getDDMFormValuesMap(dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()).getFileVersionId()) /> 
120 
121									<#list fieldsMap?keys as structureKey> 
122										<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
123											<#if fieldValue.getName() == "Idioma"> 
124												<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
125											</#if> 
126										</#list> 
127									</#list> 
128									<#if !(idiomaText?has_content && idiomaText != ("[\""+locale.toString()+"\"]"))> 
129										<li> 
130											<a href="#" data-rel="gallery" title="+info"> 
131												<span class="icon fullscreen animated"></span> 
132												<img src='${url}' alt='+info'> 
133											</a> 
134										</li> 
135									</#if> 
136								</#list> 
137							</ul> 
138						</div> 
139 
140						<div class="horizontal_carousel_container thin page_margin_top gallery_control"> 
141							<ul class="horizontal_carousel control-for-post-gallery visible-4 autoplay-0 scroll-1 navigation-1 easing-easeInOutQuint duration-750"> 
142								<#list currentArticleRelatedPictures as related_entry> 
143									<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
144									<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
145									<#assign dLFileEntry = dLFileEntryLocalService.getDLFileEntry(relatedAssetEntry.getClassPK()) /> 
146									<#assign url = dLUtil.getPreviewURL(dLAppServiceUtil.getFileEntry(dLFileEntry.getFileEntryId()), dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()), themeDisplay, "") /> 
147									<#assign idiomaText = "" /> 
148 
149									<#assign fieldsMap = dLFileEntry.getDDMFormValuesMap(dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()).getFileVersionId()) /> 
150 
151									<#list fieldsMap?keys as structureKey> 
152										<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
153											<#if fieldValue.getName() == "Idioma"> 
154												<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
155											</#if> 
156										</#list> 
157									</#list> 
158									<#if !(idiomaText?has_content && idiomaText != ("[\""+locale.toString()+"\"]"))> 
159										<li> 
160											<a href="#"> 
161												<img src='${url}' alt='img'> 
162											</a> 
163										</li> 
164									</#if> 
165								</#list> 
166							</ul> 
167						</div> 
168						<div id="gallery-popup" class="gallery_popup"> 
169							<div class="header_container padding_top_bottom_15"> 
170								<div class="header clearfix"> 
171									<a href="#" class="gallery_close close_popup"></a> 
172								</div> 
173							</div> 
174							<div class="header_container"> 
175								<div class="horizontal_carousel_container thin gallery_control"> 
176									<ul class="horizontal_carousel control-for-post-gallery-popup visible-8 autoplay-0 scroll-1 navigation-1 easing-easeInOutQuint duration-750"> 
177										<#list currentArticleRelatedPictures as related_entry> 
178											<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
179											<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
180											<#assign dLFileEntry = dLFileEntryLocalService.getDLFileEntry(relatedAssetEntry.getClassPK()) /> 
181											<#assign url = dLUtil.getPreviewURL(dLAppServiceUtil.getFileEntry(dLFileEntry.getFileEntryId()), dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()), themeDisplay, "") /> 
182											<#assign idiomaText = "" /> 
183 
184											<#assign fieldsMap = dLFileEntry.getDDMFormValuesMap(dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()).getFileVersionId()) /> 
185 
186											<#list fieldsMap?keys as structureKey> 
187												<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
188													<#if fieldValue.getName() == "Idioma"> 
189														<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
190													</#if> 
191												</#list> 
192											</#list> 
193											<#if !(idiomaText?has_content && idiomaText != ("[\""+locale.toString()+"\"]"))> 
194												<li> 
195													<a href="#"><img src='${url}' alt='img'></a> 
196												</li> 
197											</#if> 
198										</#list> 
199									</ul> 
200								</div> 
201							</div> 
202							<div class="page"> 
203								<div class="row no-margin-row page_margin_top"> 
204 
205									<div id="control-by-post-gallery-popup" class="horizontal_carousel_container big margin_top_10"> 
206										<ul id="post-gallery-popup" class="horizontal_carousel visible-1 autoplay-0 scroll-1 navigation-0 easing-easeInOutQuint duration-750"> 
207											<#list currentArticleRelatedPictures as related_entry> 
208												<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
209												<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
210												<#assign dLFileEntry = dLFileEntryLocalService.getDLFileEntry(relatedAssetEntry.getClassPK()) /> 
211												<#assign url = dLUtil.getPreviewURL(dLAppServiceUtil.getFileEntry(dLFileEntry.getFileEntryId()), dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()), themeDisplay, "") /> 
212 
213												<#assign fileEntryTypeId = dLFileEntry.getFileEntryTypeId() /> 
214												<#assign dlFileEntryType = dLFileEntryTypeLocalService.getFileEntryType(fileEntryTypeId) /> 
215												<#assign ddmStructures = dlFileEntryType.getDDMStructures() /> 
216 
217												<#assign descriptionText = "" /> 
218												<#assign idiomaText = "" /> 
219 
220												<#assign fieldsMap = dLFileEntry.getDDMFormValuesMap(dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()).getFileVersionId()) /> 
221 
222												<#list fieldsMap?keys as structureKey> 
223													<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
224														<#if fieldValue.getName() == "Idioma"> 
225															<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
226														<#elseif fieldValue.getName() == "Descripcio"> 
227															<#assign descriptionText = fieldValue.getValue().getString(locale) /> 
228														</#if> 
229													</#list> 
230												</#list> 
231 
232												<#if !(idiomaText?has_content && idiomaText != ("[\""+locale.toString()+"\"]"))> 
233													<li> 
234														<div class="column column_2_3"> 
235															<img src='${url}' alt='img'> 
236														</div> 
237														<div class="column column_1_3"> 
238															<p> 
239																<#list fieldsMap?keys as structureKey> 
240																	<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
241																		<#if fieldValue.getName() == "Idioma"> 
242																			<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
243																		<#elseif fieldValue.getName() == "Descripcio"> 
244																			<#assign descriptionText = fieldValue.getValue().getString(locale) /> 
245																		</#if> 
246																	</#list> 
247																</#list> 
248															</p> 
249															<#if descriptionText?has_content> 
250																<p> 
251																	${descriptionText} 
252																</p> 
253															</#if> 
254															<div class="clearfix"> 
255																<a class="read_more close_popup page_margin_top_section" href="#" title='<@liferay.language key="return-to-post" />'><span class="arrow"></span><span class="uppercase"><@liferay.language key="return-to-post" /></span></a> 
256															</div> 
257															<div class="share_box page_margin_top_section clearfix"> 
258																<label><@liferay.language key="share" />:</label> 
259																<ul class="social_icons dark clearfix"> 
260																	<li> 
261																		<a target="_blank" title="" href="http://www.facebook.com/sharer.php?u=${htmlUtil.escapeURL(url)}" class="social_icon facebook"></a> 
262																	</li> 
263																	<li> 
264																		<a target="_blank" title="" href="https://twitter.com/intent/tweet?hashtags=CCCB&url=${htmlUtil.escapeURL(url)}&text=&original_referer=" class="social_icon twitter"></a> 
265																	</li> 
266																/ul> 
267															</div> 
268														</div> 
269													</li> 
270												</#if> 
271											</#list> 
272										</ul> 
273									</div> 
274								</div> 
275							</div> 
276						</div> 
277					</div> 
278				</div> 
279			<#elseif currentArticleRelatedPictures?size == 1 > 
280				<#list currentArticleRelatedPictures as related_entry> 
281					<#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
282					<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
283					<#assign dLFileEntry = dLFileEntryLocalService.getDLFileEntry(relatedAssetEntry.getClassPK()) /> 
284					<#assign url = dLUtil.getPreviewURL(dLAppServiceUtil.getFileEntry(dLFileEntry.getFileEntryId()), dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()), themeDisplay, "") /> 
285					<#assign idiomaText = "" /> 
286 
287					<#assign fieldsMap = dLFileEntry.getDDMFormValuesMap(dLAppServiceUtil.getFileVersion(dLFileEntry.getFileVersion().getFileVersionId()).getFileVersionId()) /> 
288 
289					<#list fieldsMap?keys as structureKey> 
290						<#list fieldsMap[structureKey].getDDMFormFieldValues() as fieldValue> 
291							<#if fieldValue.getName() == "Idioma"> 
292								<#assign idiomaText = fieldValue.getValue().getString(locale) /> 
293							</#if> 
294						</#list> 
295					</#list> 
296					<#if !(idiomaText?has_content && idiomaText != ("[\""+locale.toString()+"\"]"))> 
297						<div class="row no-margin-row page_margin_top_section"> 
298							<img src="${url}" alt='img' /> 
299			            </div> 
300					</#if> 
301				</#list> 
302			<#else> 
303				<#if FotoPost?? && FotoPost.getData()?? && FotoPost.getData() != ""> 
304					<div class="row no-margin-row page_margin_top_section"> 
305						<#if FotoPost.getAttribute("fileEntryId")?? && FotoPost.getAttribute("fileEntryId") != ""> 
306							<img data-fileentryid="${FotoPost.getAttribute("fileEntryId")}" alt="${FotoPost.getAttribute("alt")}" src="${FotoPost.getData()}" /> 
307						<#else> 
308							<img alt="${FotoPost.getAttribute("alt")}" src="${FotoPost.getData()}" /> 
309						</#if> 
310		            </div> 
311				</#if> 
312			</#if> 
313			<#if Video.getData()!='' && Video.getData()!='null'> 
314				<div class="row no-margin-row page_margin_top_section"> 
315					<div class="video-container"> 
316						${Video.getData()} 
317					</div> 
318					<#if PeuDeVideo.getData()!='' && PeuDeVideo.getData()!='null'> 
319						<div class="sentence"> 
320							<span class="text">${PeuDeVideo.getData()}</span> 
321						</div> 
322					</#if> 
323				</div> 
324			</#if> 
325			<div class="row page_margin_top_section post_content"> 
326				<div class="row no-margin-row column_2_3 center_block"> 
327					<div class="text"> 
328						<#if Resum.getData()!='' && Resum.getData()!='null'> 
329							<h2 class="excerpt">${Resum.getData()}</h2> 
330						</#if> 
331						${Cos.getData()} 
332					</div> 
333				</div> 
334			</div> 
335		</div> 
336	</div> 
337</div> 

També et pot interessar