Um erro ocorreu enquanto processava o modelo.
Java method "com.sun.proxy.$Proxy196.getFileEntryByUuidAndGroupId(String, long)" couldn't be called: Can't convert the 1st argument's value to the target Java type, String. The type of the actual value was: number (wrapper: f.t.SimpleNumber)

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign file = dlFileEntryService.get...  [in template "20098#20124#35722" in function "getDocTitle" at line 248, column 5]
	- Reached through: ${getDocTitle(cur_documento_da_noticia)}  [in template "20098#20124#35722" at line 165, column 25]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
2<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService" )> 
3<#assign vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
4<#assign currentArticle = JournalArticleLocalService.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data)> 
5<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey()> 
6<#assign categoriesList = catLocalService.getCategories("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey)/> 
7<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 
8<#assign displaydate = .vars['reserved-article-display-date'].data> 
9<#assign modifieddate = .vars['reserved-article-modified-date'].data> 
10 
11<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
12<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
13<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 
14 
15<#setting locale="pt_BR"> 
16 
17<div class="noticia-aberta"> 
18  <#if categoriesList?has_content> 
19  <div class="categorias"> 
20    <#list categoriesList as category> 
21      <#if category.name != "Notícia"> 
22        <span class="tag"> ${category.name} </span> 
23      </#if> 
24    </#list> 
25  </div> 
26  </#if> 
27  <!-- Título da Matéria AQUI --> 
28  <h1 class="noticia-titulo">${.vars['reserved-article-title'].data}</h1> 
29   
30  <#if .vars['reserved-article-description'].data?has_content> 
31    <#assign descricao = .vars['reserved-article-description'].data/> 
32  <#else> 
33    <#if noticia_descricao?has_content> 
34      <#assign descricao = noticia_descricao.getData()/> 
35    <#else> 
36      <#assign descricao = "" /> 
37    </#if> 
38  </#if> 
39   
40  <#if descricao?has_content> 
41  <div class="descricao"> 
42    <p>${descricao}</p> 
43  </div> 
44  </#if> 
45 
46  <#-- Parse the date to a date object --> 
47  <#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
48  <#assign modifieddate = modifieddate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
49 
50  <div class="datas-redesocial row mr-0 ml-0"> 
51    <div class="datas col-lg-6 col-md-12 pr-0 pl-0 align-items-center"> 
52      <span class="data-publicado "> 
53        ${"Publicado em " + displaydate?string("dd/MM/yyyy HH:mm")} 
54      </span> 
55      <span class="separador">|</span> 
56      <span class="data-modificado "> 
57        ${"Atualizado em " + modifieddate?string("dd/MM/yyyy HH:mm")} 
58      </span> 
59    </div> 
60    <div class="redesocial col-lg-4 offset-lg-2 col-md-10 offset-md-1 pr-0 pl-0"> 
61      <button type="button" class="btn btn-link" onClick="window.print()"><span class="share-imprimir"></span></button> 
62      <span class="separador">|</span> 
63      <span class="compartilhe">Compartilhe: </span> 
64      <a href="https://api.whatsapp.com/send?text=${currentUrl}" target="_blank" data-action="share/whatsapp/share"><span class="share-whatsapp"></span></a> 
65      <a href="https://www.facebook.com/sharer.php?u=${currentUrl}" target="_blank"><span class="share-facebook"></span></a> 
66      <a href="https://twitter.com/intent/tweet?url=${currentUrl}" target="_blank"><span class="share-twitter"></span></a> 
67      <a href="https://www.linkedin.com/shareArticle?mini=true&url=${currentUrl}" target="_blank"><span class="share-linkedin"></span></a> 
68      <button type="button" class="btn btn-link" id="copy2" title="Copiar link" onclick="copyToClipboard('${currentUrl}')"> 
69        <span class="share-url"></span> 
70      </button> 
71      <script> 
72      $(function () { 
73        $("#copy1,#copy2").tooltip() 
74      }) 
75 
76      function copyToClipboard(str) { 
77        const el = document.createElement('textarea'); 
78        el.value = str; 
79        el.setAttribute('readonly', ''); 
80        el.style.position = 'absolute'; 
81        el.style.left = '-9999px'; 
82        document.body.appendChild(el); 
83        el.select(); 
84        document.execCommand('copy'); 
85        document.body.removeChild(el); 
86        $("#copy1,#copy2").tooltip("option", "content", "Copiado!");  
87        $("#copy1,#copy2").tooltip("option", "show"); 
88        setTimeout(() => {  
89          $("#copy1,#copy2").tooltip("option", "hide");  
90          $("#copy1,#copy2").tooltip("option", "disable");  
91          $("#copy1,#copy2").tooltip("option", "content", "Copiar Link");  
92          $("#copy1,#copy2").tooltip("option", "enable"); 
93        }, 3000); 
94      }; 
95      </script> 
96    </div> 
97  </div> 
98   
99  <div class="noticia-imagem"> 
100    <#if noticia_imagem_destaque?has_content> 
101      <#if noticia_imagem_destaque.getData()?? && noticia_imagem_destaque.getData() != ""> 
102        <div class="offset-md-2 col-md-8 imagem"> 
103          <img alt="${noticia_imagem_destaque.getAttribute('alt')}" data-fileentryid="${noticia_imagem_destaque.getAttribute('fileEntryId')}" src="${noticia_imagem_destaque.getData()}" /> 
104        </div> 
105        <#if noticia_imagem_destaque.getAttribute("alt")?has_content> 
106        <div class="legenda col-md-12"> 
107          <span>${noticia_imagem_destaque.getAttribute("alt")}</span> 
108        </div> 
109        </#if> 
110      </#if> 
111    </#if> 
112  </div> 
113 
114  <div class="noticia-texto"> 
115    ${noticia_texto.getData()} 
116  </div> 
117 
118  <#if noticia_imagem_corpo?has_content> 
119    <#if noticia_imagem_corpo.getData()?has_content> 
120      <div id="imagens-corpo-carousel" class="carousel slide carousel-fade col-md-8 offset-md-2" data-ride="carousel"> 
121        <#if noticia_imagem_corpo.getSiblings()?has_content> 
122        <div class="carousel-inner"> 
123        <ol class="carousel-indicators"> 
124          <#list 0..noticia_imagem_corpo.getSiblings()?size -1 as i> 
125            <#if i == 0> 
126              <li data-target="#imagens-corpo-carousel" data-slide-to="i" class="active"></li> 
127            <#else> 
128              <li data-target="#imagens-corpo-carousel" data-slide-to="i"></li> 
129            </#if> 
130          </#list> 
131        </ol> 
132          <#list noticia_imagem_corpo.getSiblings() as cur_noticia_imagem_corpo> 
133            <#if cur_noticia_imagem_corpo.getData()?? && cur_noticia_imagem_corpo.getData() != ""> 
134              <div class="carousel-item ${(cur_noticia_imagem_corpo?index == 0)?then('active', '')}"> 
135                <img class="d-block w-100" alt="${cur_noticia_imagem_corpo.getAttribute('alt')}" data-fileentryid="${cur_noticia_imagem_corpo.getAttribute('fileEntryId')}" src="${cur_noticia_imagem_corpo.getData()}" /> 
136              </div> 
137            </#if> 
138          </#list> 
139        </div> 
140        </#if> 
141        <a class="carousel-control-prev" href="#imagens-corpo-carousel" role="button" data-slide="prev"> 
142        <span class="carousel-control-prev-icon" aria-hidden="true"></span> 
143        <span class="sr-only">Previous</span> 
144        </a> 
145        <a class="carousel-control-next" href="#imagens-corpo-carousel" role="button" data-slide="next"> 
146          <span class="carousel-control-next-icon" aria-hidden="true"></span> 
147          <span class="sr-only">Next</span> 
148        </a> 
149      </div> 
150    </#if> 
151  </#if> 
152 
153  <#if noticia_documento?has_content> 
154    <#if noticia_documento.getData()?has_content> 
155      <#if noticia_documento.getSiblings()?has_content> 
156      <div class="documentos"> 
157        <p class="documentos-p"> Lista de arquivos</p> 
158          <#list noticia_documento.getSiblings() as cur_documento_da_noticia> 
159            <#if cur_documento_da_noticia.getData()?has_content> 
160              <p class="documento"> 
161                <a href="${getFileUrl(cur_documento_da_noticia.getData())}" target="_blank"> 
162                  <span class="download-file"></span> 
163                </a> 
164                <a href="${getFileUrl(cur_documento_da_noticia.getData())}" target="_blank"> 
165                  <span>${getDocTitle(cur_documento_da_noticia)}</span> 
166                </a> 
167            </#if> 
168          </#list> 
169        </p> 
170      </div> 
171      </#if> 
172    </#if> 
173  </#if> 
174 
175 
176  <#if categoriesList?has_content> 
177    <div class="categorias-footer"> 
178      <span class="categoria">Categoria</span> 
179      <div class="categorias-lista"> 
180        <#list categoriesList as category> 
181          <#if category.name != "Notícia"> 
182            <span class="tag"> ${category.name} </span> 
183          </#if> 
184        </#list> 
185      </div> 
186    </div>   
187  </#if> 
188 
189 
190  <#assign tags = .vars["reserved-article-asset-tag-names"].data> 
191  <#if tags?has_content> 
192    <div class="tags"> 
193      <span>Tags: </span> 
194      <div class="tags-lista"> 
195        <#assign tags = tags?split(",")> 
196        <#list tags as tag> 
197          <a href="/search?q=${tag}"><span class="tag">${tag}</span></a> 
198        </#list> 
199      </div> 
200    </div> 
201  </#if> 
202  <#if noticia_autor?? && noticia_autor?has_content> 
203    <p class="autor">${noticia_autor.getData()}</p> 
204  </#if> 
205  <div class="datas-redesocial mr-0 ml-0 row redesocial-footer"> 
206    <div class="redesocial col-lg-3 offset-lg-9 col-md-6 offset-md-6 pr-0 pl-0"> 
207      <button type="button" class="btn btn-link" onClick="window.print()"><span class="share-imprimir"></span></button> 
208      <span class="separador">|</span> 
209      <span class="compartilhe">Compartilhe: </span> 
210      <a href="https://api.whatsapp.com/send?text=${currentUrl}" target="_blank" data-action="share/whatsapp/share"><span class="share-whatsapp"></span></a> 
211      <a href="https://www.facebook.com/sharer.php?u=${currentUrl}" target="_blank"><span class="share-facebook"></span></a> 
212      <a href="https://twitter.com/intent/tweet?url=${currentUrl}" target="_blank"><span class="share-twitter"></span></a> 
213      <a href="https://www.linkedin.com/shareArticle?mini=true&url=${currentUrl}" target="_blank"><span class="share-linkedin"></span></a> 
214      <button type="button" class="btn btn-link" id="copy1" title="Copiar link" onclick="copyToClipboard('${currentUrl}')"> 
215        <span class="share-url"></span> 
216      </button> 
217    </div> 
218  </div> 
219</div> 
220 
221<#--  --------------------  --> 
222 
223<#function getFileUrl undfObj> 
224	<#if !undfObj?contains("/")> 
225			<#assign doc = undfObj?eval /> 
226			<#assign groupid = doc.groupId /> 
227			<#assign title = doc.title?url('ISO-8859-1') /> 
228			<#assign uuid = doc.uuid /> 
229			<#assign url = "/documents/" + groupid + "/0/" + title + "/" + uuid /> 
230		<#else> 
231			<#assign url = undfObj /> 
232	</#if> 
233	<#return url> 
234</#function> 
235 
236 
237<#function getDocTitle cur_documento_da_noticia> 
238 <#if cur_documento_da_noticia.titulodocumento?? && cur_documento_da_noticia.titulodocumento.getData()?? && cur_documento_da_noticia.titulodocumento.getData() != ""> 
239    <#assign tituloDoc = cur_documento_da_noticia.titulodocumento.getData() />  
240  <#else> 
241    <#assign groupId = 0 /> 
242    <#assign uuId = 0 /> 
243    <#list cur_documento_da_noticia.getData()?keep_before_last("?")?split("/") as linkPart> 
244      <#assign groupId = (linkPart?index == 2)?then(linkPart?number, groupId) /> 
245      <#assign uuId = (linkPart?index == 5)?then(linkPart, uuId) /> 
246    </#list> 
247    <#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />  
248    <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId,groupId)  /> 
249    <#assign tituloDoc = file.fileName /> 
250  </#if> 
251  <#return tituloDoc> 
252</#function>