For helpful resources about this topic click here.

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy183.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy183 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl@50046a56"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign file = fileEntry.getFileEntry...  [in template "20116#20152#FEATURED-LINKS-7-COL" at line 29, column 25]
----
1<#import "aqha-theme_SERVLET_CONTEXT_/templates/base22/freemarker-utils.ftl" as utils> 
2 
3<div class="b-box__7-col"> 
4    <div class="row"> 
5        <div class="col-xs-offset-1 col-xs-10 col-md-offset-2 col-md-8"> 
6            <h2 class="b-box__title">${displayTitle.getData()!''}</h2> 
7        </div> 
8    </div> 
9    <div class="row"> 
10        <div class="col-xs-12 col-md-offset-2 col-md-8"> 
11            <div class="b-box__subtitle">${subtitle.getData()!''}</div> 
12        </div> 
13    </div> 
14    <div class="row">         
15        <#if link.getSiblings()?has_content> 
16            <#list link.getSiblings() as cur_item> 
17                <#assign entryTitle = (cur_item.getChild("linkTitle")?? && cur_item.getChild("linkTitle").getData() != "")?then(cur_item.getChild("linkTitle").getData(), "") /> 
18                <#assign entryImage = (cur_item.getChild("image")?? && cur_item.getChild("image").getData() != "")?then(cur_item.getChild("image").getData(), utils.defaultImageURL?trim) /> 
19                <#assign entryLinkText = (cur_item.getChild("linkDescription")?? && cur_item.getChild("linkDescription").getData() != "")?then(cur_item.getChild("linkDescription").getData(), "") /> 
20                <#assign entryInternalLink = (cur_item.getChild("internalLink")?? && cur_item.getChild("internalLink").getFriendlyUrl() != "")?then(cur_item.getChild("internalLink").getFriendlyUrl(), "") /> 
21                <#assign entryExternalLink = (cur_item.getChild("externalLink")?? && cur_item.getChild("externalLink").getData() != "")?then(cur_item.getChild("externalLink").getData(), "") />                     
22                <#assign linkURL = (entryInternalLink != "")?then(entryInternalLink, entryExternalLink) /> 
23				<#assign entryImage2 = (cur_item.getChild("image")?? && cur_item.getChild("image").getData() != "")?then(cur_item.getChild("image").getData(), "") /> 
24				<#assign alttext = "" /> 
25				<#if entryImage2 != ""> 
26				    <#if cur_item.getChild("image").getData()?string?split("/")[5]??> 
27      				    <#assign imgID = cur_item.getChild("image").getData()?string?split("/")[5]?split("?")[0]> 
28                        <#assign fileEntry = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService')> 
29                        <#assign file=fileEntry.getFileEntryByUuidAndGroupId(imgID, groupId) > 
30                        <#assign alttext = file.getDescription() /> 
31					</#if> 
32				</#if> 
33                <@buildQuickFeaturedLinksWidget cur_item?index /> 
34            </#list> 
35        </#if> 
36    </div> 
37</div> 
38<#macro buildQuickFeaturedLinksWidget idx> 
39    <div class="col-xs-12 col-md-6"> 
40        <div class="b-box"> 
41            <div class="col-xs-7 col-md-7 b-box__image"> 
42                <a href="${linkURL}">  
43                    <#-- Temporal fix to remove versioning issues when use export/import lar files --> 
44                    <#-- TODO: Remove this temporal fix once the problem has been resolved --> 
45                    <img class="lazy-load" datasrc="${utils.cleanPath(entryImage)}" alt="${alttext}" src="">  
46                </a> 
47            </div> 
48            <div class="col-xs-5 col-md-5 b-box__text"> 
49                <a href="${linkURL}" class="b-box__text-title">${entryTitle}</a> 
50                <a href="${linkURL}" class="b-box__text-link"> 
51                    ${entryLinkText?upper_case} 
52                    <i class="fa fa-arrow-circle-right" aria-hidden="true"></i> 
53                </a> 
54            </div> 
55        </div> 
56    </div> 
57</#macro>