Ocorreu um erro ao processar o template.
Java method "com.sun.proxy.$Proxy71.getEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy71 object "com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl@6882caf3"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign entry = assetEntryLocalServic...  [in template "20116#20152#203629" at line 52, column 9]
----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
2<#assign httpServletRequest = serviceContext.getRequest()> 
3 
4<#if !httpServletRequest.getParameter('articleId')??> 
5 
6	<div class="row" style="margin-top:20px;"> 
7 
8	    <div class="col-md-10 col-md-offset-1" style="padding-top:20px;"> 
9	     
10		    <#if entries?has_content> 
11		    	<#list entries as curEntry> 
12 
13		    		<#assign renderer = curEntry.getAssetRenderer() /> 
14					<#assign className = renderer.getClassName() /> 
15 
16					<#if className == "com.liferay.journal.model.JournalArticle"> 
17						<#assign journalArticle = renderer.getArticle() /> 
18						<#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
19						<#assign rootElement = document.getRootElement() /> 
20				 
21						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titulo']") /> 
22						<#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
23						 
24						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resumo']") /> 
25						<#assign resumo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
26 
27						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Icon']") /> 
28						<#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
29						 
30			    		<div class="col-md-12" style="padding-top:30px;"> 
31			    			<div class="col-md-1"> 
32								<img style="width: 90px; height: 90px;" src="${icon}"/> 
33			    			</div> 
34			    			<div class="col-md-11"> 
35			    				<a href="/licenca_autorizacao_pesca_transformacao?articleId=${curEntry.getEntryId()}"><h4 style="margin:0;">${titulo}</h4></a> 
36			    				<p style="margin-top:10px;;">${resumo}</p> 
37			    			</div> 
38			    		</div> 
39			    	</#if> 
40		    		 
41		    	</#list> 
42		    </#if> 
43 
44		</div> 
45 
46	</div> 
47 
48<#else> 
49 
50	<#assign articleId = httpServletRequest.getParameter('articleId')?number> 
51	<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
52	<#assign entry = assetEntryLocalService.getEntry(articleId) /> 
53 
54	<div class="row"> 
55		 
56		<#assign renderer = entry.getAssetRenderer() /> 
57		<#assign className = renderer.getClassName() /> 
58 
59		<#if className == "com.liferay.journal.model.JournalArticle"> 
60			<#assign journalArticle = renderer.getArticle() /> 
61			<#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
62			<#assign rootElement = document.getRootElement() /> 
63 
64			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titulo']") /> 
65			<#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
66	 
67			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Icon']") /> 
68			<#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
69			 
70			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resumo']") /> 
71			<#assign subtitulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
72			 
73			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='linkServico']") /> 
74			<#assign linkServico = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
75			 
76			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QuandoTenhoDeRequerer']") /> 
77			<#assign QuandoTenhoDeRequerer = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
78			 
79			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QuemPodeRequerer']") /> 
80			<#assign QuemPodeRequerer = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
81			 
82			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='OndePossoRequerer']") /> 
83			<#assign OndePossoRequerer = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
84			 
85			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='documentacao']") /> 
86			<#assign documentacao = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
87			 
88			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QualOCusto']") /> 
89			<#assign QualOCusto = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
90 
91			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='legislacao']") /> 
92			<#assign legislacao = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
93			 
94 
95			<div class="col-md-10 col-md-offset-1"> 
96		 
97				<div class="col-md-12" style="padding-top:50px; padding-bottom:30px;"> 
98					 
99					<div class="col-md-1"> 
100						<img style="width: 90px; height: 90px;" src="${icon}"/> 
101					</div> 
102					<div class="col-md-8"> 
103						<h4 style="margin: 0;">${titulo}</h4> 
104						<p>${subtitulo}</p> 
105					</div> 
106					<div class="col-md-3">  
107						<a href="${linkServico}"><button class="btn-primary" style="width: 100%; height: 50px;"><@liferay.language key="portal.content.template.servico.executar"/></button></a> 
108					</div> 
109					 
110				</div> 
111			 
112				<div aria-multiselectable="true" class="col-md-12 style="margin-bottom:20px;"> 
113		   
114					<div class="card" style="border: none; padding: 5px;"> 
115						<div class="card-header"> 
116							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
117								<a id="titleOne" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemOne" aria-expanded="true" aria-controls="itemOne"> 
118									<i id="itemOneIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> Quando Tenho De Requerer? 
119								</a> 
120							</p> 
121						</div> 
122						<div id="itemOne" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
123							<div class="card-block"> 
124								${QuandoTenhoDeRequerer} 
125							</div> 
126						</div> 
127					</div> 
128					 
129					 
130					<div class="card" style="border: none; padding: 5px;"> 
131						<div class="card-header"> 
132							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
133								<a id="titleTwo" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemTwo" aria-expanded="true" aria-controls="itemTwo"> 
134									<i id="itemTwoIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> Quem pode requerer? 
135								</a> 
136							</p> 
137						</div> 
138						<div id="itemTwo" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
139							<div class="card-block"> 
140								${QuemPodeRequerer} 
141							</div> 
142						</div> 
143					</div> 
144					 
145					<div class="card" style="border: none; padding: 5px;"> 
146						<div class="card-header"> 
147							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
148								<a id="titleThree" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemThree" aria-expanded="true" aria-controls="itemThree"> 
149									<i id="itemThreeIcon"style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> Onde posso requerer? 
150								</a> 
151							</p> 
152						</div> 
153						<div id="itemThree" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
154							<div class="card-block"> 
155								${OndePossoRequerer} 
156							</div> 
157						</div> 
158					</div> 
159					 
160						 
161					<div class="card" style="border: none; padding: 5px;"> 
162						<div class="card-header"> 
163							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
164								<a id="titleFour" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemFour" aria-expanded="true" aria-controls="itemFour"> 
165									<i id="itemFourIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> Que documentos são necessários? 
166								</a> 
167							</p> 
168						</div> 
169						<div id="itemFour" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
170							<div class="card-block"> 
171								${documentacao} 
172							</div> 
173						</div> 
174					</div> 
175					 
176					<div class="card" style="border: none; padding: 5px;"> 
177						<div class="card-header"> 
178							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
179								<a id="titleFive" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemFive" aria-expanded="true" aria-controls="itemFive"> 
180									<i id="itemFiveIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> Qual o custo? 
181								</a> 
182							</p> 
183						</div> 
184						<div id="itemFive" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
185							<div class="card-block"> 
186								${QualOCusto} 
187							</div> 
188						</div> 
189					</div> 
190					 
191					<div class="card" style="border: none; padding: 5px;"> 
192						<div class="card-header"> 
193							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
194								<a id="titleSix" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemSix" aria-expanded="true" aria-controls="itemSix"> 
195									<i id="itemSixIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> Qual a legislação aplicável? 
196								</a> 
197							</p> 
198						</div> 
199						<div id="itemSix" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
200							<div class="card-block"> 
201								${legislacao} 
202							</div> 
203						</div> 
204					</div> 
205					 
206				</div> 
207			</div> 
208		</#if> 
209	</div> 
210 
211	<div class="row" style="padding-top:30px;"> 
212		 
213		<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
214		<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
215		<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(entry.getEntryId()) /> 
216 
217		<#list currentArticleRelatedLinks as related_entry> 
218		    <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
219		    <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
220		    <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
221		    <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
222		    <#assign relatedArticleId = relatedArticle.getArticleId() /> 
223		     
224		    <#assign document = saxReaderUtil.read(relatedArticle.getContent()) /> 
225			<#assign rootElement = document.getRootElement() /> 
226	 
227			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titulo']") /> 
228			<#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
229			 
230			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resumo']") /> 
231			<#assign resumo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
232 
233			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Icon']") /> 
234			<#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
235 
236		    <div class="col-md-10 col-md-offset-1" style="padding-top:30px;"> 
237 
238		    	<h4 style="margin:0; padding-bottom:20px;">Serviços Relacionados</h4> 
239    			 
240	    		<div class="col-md-12" style="padding-top:30px;"> 
241	    			<div class="col-md-1"> 
242						<img style="width: 42px; height: 42px;" src="/documents/20143/31532/tudo.png.svg/709dfd5a-31b4-f62f-e89f-6983323539da"/> 
243	    			</div> 
244	    			<div class="col-md-11"> 
245	    				<a href="/licenca_autorizacao_pesca_transformacao?articleId=${relatedAssetEntry.getEntryId()}"><h4 style="margin:0;">${titulo}</h4></a> 
246	    				<p style="margin-top:10px;;">${resumo}</p> 
247	    			</div> 
248	    		</div> 
249 
250    		</div> 
251		</#list> 
252 
253	</div> 
254 
255</#if> 
256 
257<script> 
258 
259$('.serviceQuestion').click(function(e) {   
260   
261  var elementId = $(this).attr("id"); 
262  var changeElementId = $("#" + elementId + " .fa")[0].id; 
263   
264  $("#" + changeElementId).toggleClass('fa-arrow-circle-down'); 
265  $("#" + changeElementId).toggleClass('fa-arrow-circle-up'); 
266   
267}); 
268 
269 
270</script>