Menu de Navegação

Resíduo de Execução e BNDT

Um erro ocorreu enquanto processava o modelo.
Java method "com.sun.proxy.$Proxy80.getFolder(long)" threw an exception when invoked on com.sun.proxy.$Proxy80 object "com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl@27d89f8e"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign f = folderLocalService.getFol...  [in template "20155#20195#1419196" at line 86, column 1]
----
1<!-- --> 
2<style > 
3 
4.bs-example{ 
5    margin: 20px; 
6
7 
8.bs-callout { 
9    padding: 20px; 
10    margin: 20px 0; 
11    border: 1px solid #eee; 
12    border-left-width: 5px; 
13    border-radius: 3px; 
14
15.bs-callout h4 { 
16    margin-top: 0; 
17    margin-bottom: 5px; 
18
19.bs-callout p:last-child { 
20    margin-bottom: 0; 
21
22.bs-callout code { 
23    border-radius: 3px; 
24
25.bs-callout+.bs-callout { 
26    margin-top: -5px; 
27
28.bs-callout-default { 
29    border-left-color: #777; 
30
31.bs-callout-default h4 { 
32    color: #777; 
33
34.bs-callout-primary { 
35    border-left-color: #428bca; 
36
37.bs-callout-primary h4 { 
38    color: #428bca; 
39
40.bs-callout-success { 
41    border-left-color: #5cb85c; 
42
43.bs-callout-success h4 { 
44    color: #5cb85c; 
45
46.bs-callout-danger { 
47    border-left-color: #d9534f; 
48
49.bs-callout-danger h4 { 
50    color: #d9534f; 
51
52.bs-callout-warning { 
53    border-left-color: #f0ad4e; 
54
55.bs-callout-warning h4 { 
56    color: #f0ad4e; 
57
58.bs-callout-info { 
59    border-left-color: #5bc0de; 
60
61.bs-callout-info h4 { 
62    color: #5bc0de; 
63
64 
65.mb-0 button { 
66    color: black; 
67    font-size: 16px; 
68
69 
70.card { 
71    margin-bottom: 0.5rem; 
72
73 
74.card-header { 
75    padding: 0; 
76
77.btn:focus { 
78    box-shadow: none; 
79
80</style> 
81 
82<#assign folderLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFolderLocalService")> 
83<#assign fileLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
84<#assign gid = getterUtil.getLong(groupId)>  
85<#assign fid = getterUtil.getLong(folderID.getData())> 
86<#assign f = folderLocalService.getFolder(fid)> 
87<#assign subFolders = folderLocalService.getFolders(gid,fid)>  
88 
89<#if ordem.getSiblings()?has_content> 
90     <#assign o = ""> 
91     <#list ordem.getSiblings() as cur_ordem> 
92         <#if getterUtil.getBoolean(cur_ordem.getData())> 
93              <#assign o = "${o}desc/"> 
94         <#else> 
95              <#assign o = "${o}asc/">  
96         </#if> 
97     </#list> 
98</#if> 
99 
100<#if (f.description != "")> 
101    ${f.description} 
102</#if> 
103 
104<div class="bs-example"> 
105    <div class="accordion" id="accordion"> 
106        <#list o?split("/") as x> 
107            <#assign ordem = x> 
108            <#if x_index == 0> 
109                <#break> 
110            </#if> 
111        </#list> 
112        <#if ordem == "desc"> 
113            <#assign ordenado = subFolders?sort_by("name")?reverse> 
114        <#elseif ordem == "asc">  
115	        <#assign ordenado = subFolders?sort_by("name")> 
116	    <#else> 
117	        <#assign ordenado = subFolders> 
118        </#if> 
119 
120        <#list ordenado as sub> 
121            <#if !sub.getName()?starts_with("/")>         
122  		<div class="card"> 
123  		     <div class="card-header" id="headind${fid}${sub_index}">	 
124  		         <h2 class="mb-0"> 
125  		            <#if sub.getDescription() != ""> 
126                    	<button type="button" class="btn" data-toggle="collapse" data-target="#collapse${fid}${sub_index}" alt="${sub.getName()}"> 
127                                ${sub.getDescription()} 
128                        </button> 
129                    <#else> 
130                    	<button type="button" class="btn" data-toggle="collapse" data-target="#collapse${fid}${sub_index}" alt="${sub.getName()}"> 
131                                ${sub.getName()} 
132                        </button>                     
133                    </#if> 
134                        </h2> 
135		     </div> 
136                    <div id="collapse${fid}${sub_index}" class="collapse" arial-labelledby="headind${fid}${sub_index}" data-parent="#accordion"> 
137                        <div class="card-body"> 
138                             <ul class="list-group"> 
139                                <li class="list-group-item"> 
140                                   <#assign files = fileLocalService.getFileEntries(gid, sub.getFolderId())> 
141 
142                                   <#list o?split("/") as x> 
143                                      <#assign ordem = x> 
144                                      <#if x_index == 1> 
145                                          <#break> 
146                                      </#if> 
147                                   </#list> 
148                                   <#if ordem == "desc"> 
149                                        <#assign ordenado1 = files?sort_by("name")?reverse> 
150                                   <#elseif ordem == "asc">  
151	                                <#assign ordenado1 = files?sort_by("name")> 
152	                           <#else> 
153	                                <#assign ordenado1 = files> 
154                                   </#if> 
155 
156                                   <#list ordenado1 as doc> 
157                                       <#if !doc.getTitle()?starts_with("/")> 
158                                            <#assign uet = urlCodec.encodeURL(htmlUtil.unescape(doc.getTitle()))> 
159                                            <#if doc.getDescription() != ""> 
160                                            <a href="/documents/${gid}/${sub.getFolderId()}/${uet}" target="_blank" alt="${doc.getDescription()}">${doc.getTitle()}</a> 
161                                            <#else> 
162                                            <a href="/documents/${gid}/${sub.getFolderId()}/${uet}" target="_blank" alt="${doc.getTitle()}">${doc.getTitle()}</a> 
163                                            </#if> 
164                                            <small>(atualizado em ${doc.getModifiedDate()?string["dd/MM/yyyy HH:mm"]}</small> <br/>   
165                                       </#if> 
166                                   </#list> 
167                                   <#assign subFoldersa = folderLocalService.getFolders(gid, sub.getFolderId())> 
168 
169                                   <#list o?split("/") as x> 
170                                       <#assign ordem = x> 
171                                       <#if x_index == 2> 
172                                           <#break> 
173                                       </#if> 
174                                   </#list> 
175                                   <#if ordem == "desc"> 
176                                       <#assign ordenado1 = subFoldersa?sort_by("name")?reverse> 
177                                   <#elseif ordem == "asc">  
178	                               <#assign ordenado1 = subFoldersa?sort_by("name")> 
179	                           <#else> 
180	                               <#assign ordenado1 = subFoldersa> 
181                                   </#if> 
182 
183                                   <#list ordenado1 as suba> 
184                                       <#if !suba.getName()?starts_with("/")> 
185                                           <#if (suba_index == 0)> 
186                                               <b>${suba.getName()}</b> 
187                                            <#else> 
188                                               <br/> 
189                                               <b>${suba.getName()}</b> 
190                                            </#if> 
191                                            <#assign files = fileLocalService.getFileEntries(gid, suba.getFolderId())> 
192 
193                                            <#list o?split("/") as x> 
194                                                <#assign ordem = x> 
195                                                <#if x_index == 2> 
196                                                     <#break> 
197                                                </#if> 
198                                            </#list> 
199                                            <#if ordem == "desc"> 
200                                                <#assign ordenado2 = files?sort_by("name")?reverse> 
201                                            <#elseif ordem == "asc">  
202	                                        <#assign ordenado2 = files?sort_by("name")> 
203	                                    <#else> 
204	                                        <#assign ordenado2 = files> 
205                                           </#if> 
206 
207                                           <#list ordenado2 as doc> 
208                                               <#if !doc.getTitle()?starts_with("/")> 
209                                                   <#assign uet = urlCodec.encodeURL(htmlUtil.unescape(doc.getTitle()))> 
210                                                   <br/> &#160;&#160;&#160;&#160;<a href="/documents/${gid}/${suba.getFolderId()}/${uet}" target="_blank">${doc.getTitle()}</a> 
211                                                   <small>(atualizado em ${doc.getModifiedDate()?string["dd/MM/yyyy HH:mm"]}</small> 
212                                               </#if> 
213                                           </#list> 
214                                       </#if> 
215                                   </#list> 
216                                </li> 
217                             </ul> 
218                        </div>      
219                    </div> 
220                </div> 
221            </#if> 
222        </#list>  
223    </div> 
224</div>