RBapp Riyad Bank App
Support Locate us

Language Selector

العربية

Audit Committee

Navigation Menu

Asset Publisher

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy81.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy81 object "com.liferay.document.library.opener.google.drive.web.internal.service.DLOpenerGoogleDriveDLAppServiceWrapper@21fdf015"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: documentFileEntry = dlAppService.getF...  [in template "20097#20123#103471" at line 40, column 41]
----
1<#if entries?has_content> 
2    <div class="sections_board_of_directors"> 
3        <div class="cards-content padded-mobile"> 
4    	<div class="row"> 
5    		<#list entries as curEntry> 
6    		    <#assign 
7    				dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") 
8    				dlUtil = serviceLocator.findService("com.liferay.document.library.kernel.util.DLUtil") 
9    			/> 
10                <#assign 
11                    <#--  Get access to the journal article context and content  --> 
12                    renderer = curEntry.getAssetRenderer() 
13                    journalArticle = renderer.getArticle() 
14                    document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) 
15    				rootElement = document.getRootElement() 
16    				 
17    				<#--  Get custom web content structure fields   --> 
18    				 
19    				xPathSelectorlist = saxReaderUtil.createXPath("dynamic-element[@name='Position']") 
20    				 
21    				xPathSelectorDocument = saxReaderUtil.createXPath("dynamic-element[@name='ProfilePicture']") 
22    				documentSrc = xPathSelectorDocument.selectSingleNode(rootElement) 
23    				jsonDataDocument = jsonFactoryUtil.createJSONObject(documentSrc.getStringValue()) 
24    				 
25    				<#-- Get groupId and uuid  --> 
26    			 
27    				documentGroupId =  getterUtil.getInteger(jsonDataDocument.get('groupId')) 
28    				documentUuid =  getterUtil.getString(jsonDataDocument.get('uuid')) 
29    				 
30    					<#--  Get fileEntryId from the document  --> 
31    				dlFileEntryUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") 
32    				documentFileEntry = dlFileEntryUtil.getDLFileEntryByUuidAndGroupId(documentUuid,documentGroupId) 
33    				documentFileEntryId = documentFileEntry.getFileEntryId() 
34    				viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) 
35    				viewURL = renderer.getURLViewInContext(renderRequest, renderResponse, viewURL) 
36                /> 
37                <#--  Create urlDocument  --> 
38    			<#if documentFileEntryId?? && documentFileEntryId!=0> 
39    				<#assign 
40    					documentFileEntry = dlAppService.getFileEntry(documentFileEntryId) 
41 
42    					<#--  Download url  --> 
43    					urlDocument = dlUtil.getDownloadURL(documentFileEntry, documentFileEntry.getFileVersion(), themeDisplay, null) 
44    					<#--  Preview url  --> 
45    					urlDocumentPreview = dlUtil.getPreviewURL(documentFileEntry, documentFileEntry.getFileVersion(), themeDisplay, "") 
46    				/> 
47    			<#else> 
48    				<#assign urlDocument = "#"> 
49    				<#assign urlDocumentPreview = "#"> 
50    			</#if> 
51    			<!-- ${documentFileEntry.getSize()}--> 
52    			<div class="col-md-6"> 
53					<div class="cards_card_image_with_info row no-gutters"> 
54						<div class="image-box"> 
55							<img src="${urlDocument}"> 
56							<span class="arrow-left"></span> 
57						</div> 
58						<div class="content"> 
59							<h5 class="card-title mb-2">${curEntry.getTitle(locale)}</h5> 
60							<div> 
61								<ul class="p-0"> 
62								    <#list xPathSelectorlist.selectNodes(rootElement) as LeaderPosition> 
63    							        <li>${LeaderPosition.getStringValue()}</li> 
64									</#list> 
65								</ul> 
66							</div> 
67							<div class="content-bottom"> 
68								<a href="${viewURL}" class="button_link"><@liferay.language key="see-bio" /><i class="icon-chevron-right"></i></a> 
69							</div> 
70						</div> 
71					</div> 
72				</div> 
73    		</#list> 
74    	</div> 
75    	</div> 
76    </div> 
77</#if> 
78<style> 
79    .cards_card_image_with_info .content li { 
80        list-style:none; 
81
82</style> 

RbPageFeedbackWeb

Thank you for your response
Did you find this information useful?

privacy-cookies