Asset Publisher

An error occurred while processing the template.
Java method "static com.liferay.document.library.kernel.service.DLAppLocalServiceUtil.getFileEntryByUuidAndGroupId(String, long)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: dlFile = dlAppLocalServiceUtil.getFil...  [in template "34901#34928#128741" at line 36, column 10]
----
1<section class="news-block news-page"> 
2            <div class="container"> 
3               
4                <div class="row justify-content-between"> 
5   
6 <#assign dlAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"] /> 
7<#assign dlUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"] /> 
8<!-- slide 1--> 
9      <#if entries?has_content> 
10                <#list entries as curEntry> 
11                   <#assign renderer = curEntry.getAssetRenderer() /> 
12                   <#assign pubDate = curEntry.getPublishDate()?date />  
13                
14                        <#assign  
15                        article=renderer.getArticle() 
16                        docXml=saxReaderUtil.read(article.getContent()) 
17                          heading=docXml.valueOf("//dynamic-element[@name='Title' ]/dynamic-content/text()") 
18                           
19                             LinkName=docXml.valueOf("//dynamic-element[@name='LinkName' ]/dynamic-content/text()") 
20                              
21                             
22                               
23                               Color = docXml.valueOf("//dynamic-element[@name='TriangleColor' ]/dynamic-content/text()") 
24                          
25                       
26                          
27                            viewUrl='' 
28                            imageJson=docXml.valueOf("//dynamic-element[@name='Image' 
29                            ]/dynamic-content/text()") /> 
30                   
31 
32 <#if imageJson?has_content> 
33         <#assign imageJson = imageJson?eval 
34         uuid = imageJson.uuid 
35         groupId = imageJson.groupId  
36         dlFile = dlAppLocalServiceUtil.getFileEntryByUuidAndGroupId(uuid,groupId?number) 
37         Image =  dlUtil.getPreviewURL(dlFile, dlFile.getFileVersion(),themeDisplay,'') 
38
39         <#else> 
40          <#assign Image = "/documents/127540/0/news-placeholder.jpg/4d3a614e-ab3d-3edc-f95d-87d639b45bfe?t=1628504081548"> 
41         </#if> 
42           <#assign contentViewUrl=assetPublisherHelper.getAssetViewURL(renderRequest,renderResponse, 
43                            curEntry) contentViewUrl=renderer.getURLViewInContext(renderRequest, renderResponse, 
44                            contentViewUrl) /> 
45                    
46                     
47                    <!-- Start box --> 
48                     
49                    <div class="col-12 col-sm-6 col-md-4 col-lg-auto"> 
50                        <div class="news-card"> 
51                            <div class="news-img triangle-shape news-${Color} position-relative"> 
52                               <img src="${Image}"  class="card-img-top" alt="..." /> 
53                            </div> 
54                            <div class="news-content triangle-shape position-relative"> 
55                                <span class="news-date">${pubDate?string["dd MMM yyyy"]}</span> 
56                                <h6 class="news-heading">${heading}</h6> 
57                                <a href="${contentViewUrl}" title="Learn More" class="read-more-link">${LinkName}</a> 
58                            </div> 
59                        </div> 
60                    </div> 
61                     
62                   
63                </#list> 
64            </#if> 
65    <!-- Slide 1--> 
66     
67     
68     
69</div> 
70</div> 
71</section> 
72<style> 
73   .news-page{ 
74       background-color:#fff !important; 
75       padding-top: 0!important; 
76
77   .news-page .news-card{ 
78       background-color:#D8D8D8; 
79
80    
81.news-page .news-card .news-content { 
82    background: none  
83
84 .news-page .news-card .news-content:after { 
85    border-width: 0 0 54px 54px; 
86    border-color: transparent transparent #fff transparent !important; 
87
88</style>