Buscando, por favor espere....

Estás en: Ayuntamiento de València

Prevención Escolar - Toca Cine - València

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy922.fetchLatestArticle(long)" threw an exception when invoked on com.sun.proxy.$Proxy922 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@6c511fd1"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign relatedArticle = JournalArtic...  [in template "20115#20151#379502" at line 41, column 25]
----
1<#assign commonUtilsApi =serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi")/> 
2<#assign portletRequestModel = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse) /> 
3 
4<div class="row"> 
5    <div class="col-12"> 
6        <#if titularBusqueda?? && titularBusqueda.getData()?has_content> 
7            <h2 class="bloque_titulo">${titularBusqueda.getData()}</h2> 
8        </#if> 
9        <#assign bloquesNew = commonUtilsApi.replaceUrlWithUID("${themeDisplay.getURLCurrent()}",bloques.getData())/> 
10        ${bloquesNew} 
11    </div> 
12</div> 
13 
14<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
15<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
16 
17 
18<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
19<#assign journalId = .vars['reserved-article-id'].data/> 
20 
21<#attempt> 
22    <#assign article = JournalArticleLocalService.fetchArticle( groupId ,journalId) > 
23<#recover> 
24</#attempt> 
25 
26<#if article??> 
27<#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" > 
28<#assign articleEntry = AssetEntryLocalService.getEntry(journalArticleClassname, article.getResourcePrimKey())> 
29<#assign articleRelatedEntries = AssetLinkLocalService.getDirectLinks(articleEntry.getEntryId()) > 
30 
31<#if articleRelatedEntries?has_content> 
32	 
33	<#assign relatedTemplateKey = "38113" > 
34		 
35	<#list articleRelatedEntries as relatedAsset> 
36		<#assign relatedEntry = AssetEntryLocalService.getEntry(relatedAsset.getEntryId2()) > 
37		<#assign entryClassPK = relatedEntry.getClassPK() > 
38		 
39		<#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" > 
40		<#if journalArticleClassname==relatedEntry.getClassName()> 
41			<#assign relatedArticle = JournalArticleLocalService.fetchLatestArticle(entryClassPK) > 
42			<#if relatedArticle.getDDMTemplateKey() == relatedTemplateKey > 
43				<#assign relatedArticleContent = JournalArticleLocalService.getArticleContent(relatedArticle, relatedArticle.getDDMTemplateKey(), "view", locale, portletRequestModel,themeDisplay)> 
44 
45				<div class="bloque-cuadro"> 
46				     <h3 class="titulo-bloque"><@liferay.language key="informacion_adicional" /></h3> 
47					  <#assign urlNew = commonUtilsApi.replaceUrlWithUID("${themeDisplay.getURLCurrent()}",relatedArticleContent)/> 
48					    <div class="col-12 pb-3" >${urlNew}</div> 
49				</div> 
50 
51			</#if> 
52		</#if> 
53	</#list>	 
54</#if> 
55</#if>  
56 
57<style> 
58 
59  .bloque-cuadro{ 
60      border:3px solid; 
61      border-color:#dadada; 
62      padding-left:15px; 
63      padding-right:15px; 
64      margin-top:15px; 
65
66     
67    .titulo-bloque{ 
68      margin-top: 3%; 
69      margin-bottom: 3%; 
70      color:4C4C4C; 
71
72</style> 
Se ha producido un error al procesar la plantilla.
Java method "com.liferay.portal.model.impl.UserImpl.getRoles()" threw an exception when invoked on com.liferay.portal.model.impl.UserImpl object "{\"mvccVersion\": 93, \"ctCollectionId\": 0, \"uuid\": \"13b5a5aa-7577-fed5-79a2-a5a301401f4f\", \"externalReferenceCode\": \"13b5a5aa-7577-fed5-79a2-a5a301401f4f\", \"userId\": 20119, \"companyId\": 20115, \"createDate\": \"2018-04-17 07:35:15.055\", \"modifiedDate\": \"2024-01-18 09:13:15.678\", \"defaultUser\": true, \"contactId\": 20120, \"password\": \"password\", \"passwordEncrypted\": false, \"passwordReset\": false, \"passwordModifiedDate\": null, \"digest\": \"a14b6ab7dda8a99e545401d71c78e41e,9890f733429d1843a3ec73858454039d,9890f733429d1843a3ec73858454039d\", \"reminderQueryQuestion\": \"\", \"reminderQueryAnswer\": \"\", \"graceLoginCount\": 0, \"screenName\": \"20119\", \"emailAddress\": \"default@hiberus.com\", \"facebookId\": 0, \"googleUserId\": \"\", \"ldapServerId\": 0, \"openId\": \"\", \"portraitId\": 0, \"languageId\": \"ca_ES\", \"timeZoneId\": \"Europe/Paris\", \"greeting\": \"Bienvenido!\", \"comments\": \"\", \"firstName\": \"\", \"middleName\": \"\", \"lastName\": \"\", \"jobTitle\": \"\", \"loginDate\": \"2018-04-17 07:35:14.846\", \"loginIP\": \"\", \"lastLoginDate\": null, \"lastLoginIP\": \"\", \"lastFailedLoginDate\": null, \"failedLoginAttempts\": 0, \"lockout\": false, \"lockoutDate\": null, \"agreedToTermsOfUse\": true, \"emailAddressVerified\": false, \"status\": 0}"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: roles = user.getRoles()  [in template "20115#20151#154048" at line 9, column 14]
----
1<#assign UserGroup = serviceLocator.findService("com.liferay.portal.kernel.service.UserGroupLocalService")> 
2 
3${content.getData()} 
4 
5<a id="topButton" style="display:none;"></a> 
6 
7 
8<#if user != 'Guest'> 
9    <#assign roles = user.getRoles() 
10           showcontrolmenu = true 
11    /> 
12	<#assign esEditor = UserGroup.hasUserUserGroup(user.getUserId(), 1373954)  /> 
13    <#list roles as role> 
14        <#if role.getName() == "Administrator" || esEditor> 
15            <#assign showcontrolmenu = false /> 
16            <#break> 
17        </#if> 
18    </#list> 
19    <#if showcontrolmenu > 
20        <style> 
21        .controls-visible .portlet-topper-toolbar { 
22            display: none; 
23
24        </style> 
25    </#if> 
26</#if> 
27 
28<script> 
29    $(document).ready(function(){ 
30        if($("#enlace-ancla").val() !== undefined){ 
31            if(screen.width < 767){ 
32                $('html,body').animate({scrollTop: $("#enlace-ancla").offset().top - 75}, 0); 
33            }else{ 
34                $('html,body').animate({scrollTop: $("#enlace-ancla").offset().top}, 0); 
35
36
37    }); 
38 
39 
40    //if(typeof noURL === "undefined" || typeof noURL === "string" ){ 
41    if(!window.location.href.includes("uid=")){ 
42    var urlList = []; 
43    if(localStorage && localStorage.urlList){ 
44        var urlList = JSON.parse(localStorage.urlList) ; 
45 
46
47 
48 
49 
50    if(urlList.length === 20){ 
51        urlList.shift(); 
52        urlList.push(themeDisplay.getLayoutId()); 
53    }else{ 
54        urlList.push(themeDisplay.getLayoutId()); 
55
56 
57    localStorage.setItem("urlList", JSON.stringify(urlList)); 
58 
59
60 
61    var btn = $('#topButton'); 
62 
63    $(window).scroll(function() { 
64        if ($(window).scrollTop() > 300 && screen.width < 767) { 
65            btn.show(); 
66        } else { 
67            btn.hide(); 
68
69    }); 
70 
71    btn.on('click', function(e) { 
72      e.preventDefault(); 
73      if($("#enlace-ancla").val() !== undefined){ 
74        $('html,body').animate({scrollTop: $("#enlace-ancla").offset().top - 75}, '300'); 
75      }else{ 
76        $('html, body').animate({scrollTop:0}, '300'); 
77
78    }); 
79 
80</script>