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@5499a2b"; 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                    	     <button type="button" class="btn" data-toggle="collapse" data-target="#collapse${fid}${sub_index}"> 
126                                ${sub.getName()} 
127                            </button> 
128                        </h2> 
129		     </div> 
130                    <div id="collapse${fid}${sub_index}" class="collapse" arial-labelledby="headind${fid}${sub_index}" data-parent="#accordion"> 
131                        <div class="card-body"> 
132                             <ul class="list-group"> 
133                                <li class="list-group-item"> 
134                                   <#assign files = fileLocalService.getFileEntries(gid, sub.getFolderId())> 
135 
136                                   <#list o?split("/") as x> 
137                                      <#assign ordem = x> 
138                                      <#if x_index == 1> 
139                                          <#break> 
140                                      </#if> 
141                                   </#list> 
142                                   <#if ordem == "desc"> 
143                                        <#assign ordenado1 = files?sort_by("name")?reverse> 
144                                   <#elseif ordem == "asc">  
145	                                <#assign ordenado1 = files?sort_by("name")> 
146	                           <#else> 
147	                                <#assign ordenado1 = files> 
148                                   </#if> 
149 
150                                   <#list ordenado1 as doc> 
151                                       <#if !doc.getTitle()?starts_with("/")> 
152                                            <#assign uet = urlCodec.encodeURL(htmlUtil.unescape(doc.getTitle()))> 
153                                            <a href="/documents/${gid}/${sub.getFolderId()}/${uet}" target="_blank">${doc.getTitle()}</a>  
154                                            <small>(atualizado em ${doc.getModifiedDate()?string["dd/MM/yyyy HH:mm"]}</small> <br/>   
155                                       </#if> 
156                                   </#list> 
157                                   <#assign subFoldersa = folderLocalService.getFolders(gid, sub.getFolderId())> 
158 
159                                   <#list o?split("/") as x> 
160                                       <#assign ordem = x> 
161                                       <#if x_index == 2> 
162                                           <#break> 
163                                       </#if> 
164                                   </#list> 
165                                   <#if ordem == "desc"> 
166                                       <#assign ordenado1 = subFoldersa?sort_by("name")?reverse> 
167                                   <#elseif ordem == "asc">  
168	                               <#assign ordenado1 = subFoldersa?sort_by("name")> 
169	                           <#else> 
170	                               <#assign ordenado1 = subFoldersa> 
171                                   </#if> 
172 
173                                   <#list ordenado1 as suba> 
174                                       <#if !suba.getName()?starts_with("/")> 
175                                           <#if (suba_index == 0)> 
176                                               <b>${suba.getName()}</b> 
177                                            <#else> 
178                                               <br/> 
179                                               <b>${suba.getName()}</b> 
180                                            </#if> 
181                                            <#assign files = fileLocalService.getFileEntries(gid, suba.getFolderId())> 
182 
183                                            <#list o?split("/") as x> 
184                                                <#assign ordem = x> 
185                                                <#if x_index == 2> 
186                                                     <#break> 
187                                                </#if> 
188                                            </#list> 
189                                            <#if ordem == "desc"> 
190                                                <#assign ordenado2 = files?sort_by("name")?reverse> 
191                                            <#elseif ordem == "asc">  
192	                                        <#assign ordenado2 = files?sort_by("name")> 
193	                                    <#else> 
194	                                        <#assign ordenado2 = files> 
195                                           </#if> 
196 
197                                           <#list ordenado2 as doc> 
198                                               <#if !doc.getTitle()?starts_with("/")> 
199                                                   <#assign uet = urlCodec.encodeURL(htmlUtil.unescape(doc.getTitle()))> 
200                                                   <br/> &#160;&#160;&#160;&#160;<a href="/documents/${gid}/${suba.getFolderId()}/${uet}" target="_blank">${doc.getTitle()}</a> 
201                                                   <small>(atualizado em ${doc.getModifiedDate()?string["dd/MM/yyyy HH:mm"]}</small> 
202                                               </#if> 
203                                           </#list> 
204                                       </#if> 
205                                   </#list> 
206                                </li> 
207                             </ul> 
208                        </div>      
209                    </div> 
210                </div> 
211            </#if> 
212        </#list>  
213    </div> 
214</div>