Actividades:

 

Se ha producido un error al procesar la plantilla.
Java method "jdk.proxy3.$Proxy78.getCategory(long)" threw an exception when invoked on jdk.proxy3.$Proxy78 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@67327ca2"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign filteredCategory = AssetCateg...  [in template "42020#42061#119003097" at line 42, column 9]
----
1<style> 
2 
3.img-miniature{ 
4	border-radius: 50px 0 50px 0; 
5
6 
7/* On screens that are 992px or less, set the background color to blue */ 
8@media screen and (max-width: 770px) { 
9    .img-miniature{ 
10    	border-radius: 25px 0 25px 0; 
11
12
13 
14/* On screens that are 600px or less, set the background color to olive */ 
15@media screen and (max-width: 600px) { 
16    .img-miniature{ 
17    	border-radius: 15px 0 15px 0; 
18
19
20	 
21	.post-header .cat  { 
22    font-weight: 400; 
23    font-size: 11px; 
24    letter-spacing: 2px; 
25    text-transform: uppercase; 
26    margin: 0 3px 3px; 
27    color: #C39F76; 
28
29 
30</style> 
31<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
32<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
33<#assign AssetEntryAssetCategoryRelLocalService = serviceLocator.findService("com.liferay.asset.entry.rel.service.AssetEntryAssetCategoryRelLocalService")> 
34<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
35 
36<#assign blogVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, "Localización_ACTIVIDADES")> 
37 
38 
39<#if request.getParameter("p_r_p_categoryId")??> 
40    <#assign filteredCategoryId = request.getParameter("p_r_p_categoryId") > 
41    <#if filteredCategoryId?has_content> 
42        <#assign filteredCategory = AssetCategoryLocalService.getCategory(filteredCategoryId?number) > 
43        <#assign filteredCategoryName = filteredCategory.getName()?upper_case > 
44    </#if> 
45</#if> 
46 
47<#if request.getParameter("p_r_p_tag")??> 
48    <#assign filteredTag = request.getParameter("p_r_p_tag") > 
49 
50</#if> 
51 
52 
53<div id="main webcontent-list"> 
54    <#if filteredCategoryName??> 
55        <div class="archive-box"> 
56            <#if filteredCategoryName??> 
57                <#if (locale == "es_ES") > 
58                    <span>Categor&iacute;a</span> 
59                <#else> 
60                    <span>Category</span> 
61                </#if> 
62                <h1>${filteredCategoryName}</h1> 
63            </#if> 
64            <#if filteredTag??> 
65                <#if (locale == "es_ES") > 
66                    <span>Etiqueta de navegaci&oacute;n</span> 
67                <#else> 
68                    <span>Browsing Tag</span> 
69                </#if> 
70                <h1>${filteredTag}</h1> 
71            </#if> 
72        </div> 
73    </#if> 
74 
75    <#if entries?has_content> 
76        <#list entries as curEntry> 
77 
78            <#-- Información del entry --> 
79            <#assign assetViewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
80            <#assign postDate = curEntry.getPublishDate() > 
81 
82            <#-- Extraemos los campos del web content recorriendo su estructura --> 
83            <#assign renderer = curEntry.getAssetRenderer() > 
84            <#assign journalArticle = renderer.getArticle() > 
85            <#assign postId = journalArticle.getPrimaryKey() > 
86			<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContent()) /> 
87            <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
88            <#assign rootElement = document.getRootElement() /> 
89            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='separator']") > 
90 
91            <#-- Reseteo para la siguiente iteracion --> 
92            <#assign postIntro = "" /> 
93						<#assign postTitle = docXml.valueOf( "//dynamic-element[@name='title']/dynamic-content[@language-id='" + locale + "']/text()") /> 
94						<#assign postIntro = docXml.valueOf( "//dynamic-element[@name='intro']/dynamic-content[@language-id='" + locale + "']/text()") /> 
95						<#assign img = docXml.valueOf( "//dynamic-element[@name='image']/dynamic-content[@language-id='" + locale + "']/text()") /> 
96						<#if isJson(img)>	 
97							 <#attempt> 
98									 <#if img?? && isJson(img)> 
99										 <#assign imgJson = jsonFactoryUtil.createJSONObject(img)> 
100										 <#assign postImage = "/documents/" + imgJson.groupId + "/" + imgJson.uuid > 
101									 </#if> 
102								<#recover> 
103								 	<#assign postImage = ""> 
104								</#attempt> 
105							</#if> 
106							<#assign fecha = 	docXml.valueOf( "//dynamic-element[@name='fechaEvento']/dynamic-content[@language-id='" + locale + "']/text()") /> 
107                    <#assign fechaEventoObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)/> 
108											<#assign postContent = docXml.valueOf( "//dynamic-element[@name='content']/dynamic-content[@language-id='" + locale + "']/text()") /> 
109				<#assign postContent =	postContent?replace("<[^>]*>", "", "r") /> 
110 
111            <#-- Entradilla del post --> 
112            <#if postIntro?has_content && (postIntro?length > 10) > 
113                <#assign postContent = postIntro /> 
114            </#if> 
115 
116            <#-- Categorías --> 
117            <#assign categoriesLong = AssetEntryAssetCategoryRelLocalService.getAssetCategoryPrimaryKeys(curEntry.getEntryId())> <#-- long[] --> 
118 
119 
120            <article id="post-${postId}" class="list-item post-${postId} post type-post status-publish format-standard has-post-thumbnail hentry"> 
121 
122                <#if postImage?has_content > 
123                    <div class="post-img"> 
124                        <a href="${assetViewUrl}"><img width="520" height="400" src="${postImage}" class="attachment-misc-thumb size-misc-thumb wp-post-image img-miniature"></a> 
125                    </div> 
126                </#if> 
127 
128                <div class="list-content"> 
129 
130                    <div class="post-header"> 
131                        <span class="cat"> 
132                            <#if categoriesLong?has_content > 
133                                <#list categoriesLong as categoryId > 
134																	<#assign category = AssetCategoryLocalService.getAssetCategory(categoryId) /> 
135                                    <#-- Categorías del vocabulario Blog --> 
136                                    <#if category.getVocabularyId() == blogVocabulary.getVocabularyId() > 
137                                        <#assign categoryName = category.getName()?upper_case /> 
138                                   <#--     <#assign categoryID = category.getCategoryId() /> 
139                                        <#assign categoryURL = '/cat/-/categories/' + categoryID /> 
140                                        <a href="${categoryURL}" rel="category tag">${categoryName}</a>--> 
141																			${categoryName} 
142                                    </#if> 
143                                </#list> 
144                            </#if> 
145                        </span> 
146                        <h2> 
147                            <a href="${assetViewUrl}">${postTitle}</a> 
148                        </h2> 
149                        <span class="list-title-divider"></span> 
150                    </div> 
151 
152                    <div class="post-entry"> 
153                        <#if (postContent?length > 240) > 
154                            <p>${postContent[0..240]}…</p> 
155                        <#else> 
156                            <p>${postContent}…</p> 
157                        </#if> 
158                    </div> 
159 
160 
161 
162                    <div class="list-meta"> 
163 
164                        <#if fechaEventoObj?has_content> 
165                            <#if (locale == "es_ES") > 
166                                <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span> 
167                            <#else> 
168                                 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span> 
169                            </#if> 
170                        <#else> 
171                            <#if (locale == "es_ES") > 
172                                <span class="post-date">${postDate?string["dd/MM/yyyy"]}</span> 
173                            <#else> 
174                                <span class="post-date">${postDate?string["MM/dd/yyyy"]}</span> 
175                            </#if> 
176                        </#if> 
177                    </div> 
178                </div> 
179            </article> 
180        </#list> 
181    </#if> 
182</div> 
183 
184<#function isJson json> 
185    <#local value = json?trim> 
186    <#return value?has_content && value?starts_with("{") && value?ends_with("}")> 
187</#function> 

Actividades