Actividades:

 

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy76.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy76 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@5b9272f"; 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 33, 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</style> 
22<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
23<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
24<#assign AssetEntryAssetCategoryRelLocalService = serviceLocator.findService("com.liferay.asset.entry.rel.service.AssetEntryAssetCategoryRelLocalService")> 
25<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
26 
27<#assign blogVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, "Localización_ACTIVIDADES")> 
28 
29 
30<#if request.getParameter("p_r_p_categoryId")??> 
31    <#assign filteredCategoryId = request.getParameter("p_r_p_categoryId") > 
32    <#if filteredCategoryId?has_content> 
33        <#assign filteredCategory = AssetCategoryLocalService.getCategory(filteredCategoryId?number) > 
34        <#assign filteredCategoryName = filteredCategory.getName()?upper_case > 
35    </#if> 
36</#if> 
37 
38<#if request.getParameter("p_r_p_tag")??> 
39    <#assign filteredTag = request.getParameter("p_r_p_tag") > 
40 
41</#if> 
42 
43 
44<div id="main webcontent-list"> 
45    <#if filteredCategoryName??> 
46        <div class="archive-box"> 
47            <#if filteredCategoryName??> 
48                <#if (locale == "es_ES") > 
49                    <span>Categor&iacute;a</span> 
50                <#else> 
51                    <span>Category</span> 
52                </#if> 
53                <h1>${filteredCategoryName}</h1> 
54            </#if> 
55            <#if filteredTag??> 
56                <#if (locale == "es_ES") > 
57                    <span>Etiqueta de navegaci&oacute;n</span> 
58                <#else> 
59                    <span>Browsing Tag</span> 
60                </#if> 
61                <h1>${filteredTag}</h1> 
62            </#if> 
63        </div> 
64    </#if> 
65 
66    <#if entries?has_content> 
67        <#list entries as curEntry> 
68 
69            <#-- Información del entry --> 
70            <#assign assetViewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
71            <#assign postDate = curEntry.getPublishDate() > 
72 
73            <#-- Extraemos los campos del web content recorriendo su estructura --> 
74            <#assign renderer = curEntry.getAssetRenderer() > 
75            <#assign journalArticle = renderer.getArticle() > 
76            <#assign postId = journalArticle.getPrimaryKey() > 
77			<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContent()) /> 
78            <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
79            <#assign rootElement = document.getRootElement() /> 
80            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='separator']") > 
81 
82            <#-- Reseteo para la siguiente iteracion --> 
83            <#assign postIntro = "" /> 
84						<#assign postTitle = docXml.valueOf( "//dynamic-element[@name='title']/dynamic-content[@language-id='" + locale + "']/text()") /> 
85						<#assign postIntro = docXml.valueOf( "//dynamic-element[@name='intro']/dynamic-content[@language-id='" + locale + "']/text()") /> 
86						<#assign img = docXml.valueOf( "//dynamic-element[@name='image']/dynamic-content[@language-id='" + locale + "']/text()") /> 
87						<#if isJson(img)>	 
88							 <#attempt> 
89									 <#if img?? && isJson(img)> 
90										 <#assign imgJson = jsonFactoryUtil.createJSONObject(img)> 
91										 <#assign postImage = "/documents/" + imgJson.groupId + "/" + imgJson.uuid > 
92									 </#if> 
93								<#recover> 
94								 	<#assign postImage = ""> 
95								</#attempt> 
96							</#if> 
97							<#assign fecha = 	docXml.valueOf( "//dynamic-element[@name='fechaEvento']/dynamic-content[@language-id='" + locale + "']/text()") /> 
98                    <#assign fechaEventoObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)/> 
99											<#assign postContent = docXml.valueOf( "//dynamic-element[@name='content']/dynamic-content[@language-id='" + locale + "']/text()") /> 
100				<#assign postContent =	postContent?replace("<[^>]*>", "", "r") /> 
101 
102            <#-- Entradilla del post --> 
103            <#if postIntro?has_content && (postIntro?length > 10) > 
104                <#assign postContent = postIntro /> 
105            </#if> 
106 
107            <#-- Categorías --> 
108            <#assign categoriesLong = AssetEntryAssetCategoryRelLocalService.getAssetCategoryPrimaryKeys(curEntry.getEntryId())> <#-- long[] --> 
109 
110 
111            <article id="post-${postId}" class="list-item post-${postId} post type-post status-publish format-standard has-post-thumbnail hentry"> 
112 
113                <#if postImage?has_content > 
114                    <div class="post-img"> 
115                        <a href="${assetViewUrl}"><img width="520" height="400" src="${postImage}" class="attachment-misc-thumb size-misc-thumb wp-post-image img-miniature"></a> 
116                    </div> 
117                </#if> 
118 
119                <div class="list-content"> 
120 
121                    <div class="post-header"> 
122                        <span class="cat"> 
123                            <#if categoriesLong?has_content > 
124                                <#list categoriesLong as categoryId > 
125																	<#assign category = AssetCategoryLocalService.getAssetCategory(categoryId) /> 
126                                    <#-- Categorías del vocabulario Blog --> 
127                                    <#if category.getVocabularyId() == blogVocabulary.getVocabularyId() > 
128                                        <#assign categoryName = category.getName()?upper_case /> 
129                                        <#assign categoryID = category.getCategoryId() /> 
130                                        <#assign categoryURL = '/cat/-/categories/' + categoryID /> 
131                                        <a href="${categoryURL}" rel="category tag">${categoryName}</a> 
132                                    </#if> 
133                                </#list> 
134                            </#if> 
135                        </span> 
136                        <h2> 
137                            <a href="${assetViewUrl}">${postTitle}</a> 
138                        </h2> 
139                        <span class="list-title-divider"></span> 
140                    </div> 
141 
142                    <div class="post-entry"> 
143                        <#if (postContent?length > 240) > 
144                            <p>${postContent[0..240]}…</p> 
145                        <#else> 
146                            <p>${postContent}…</p> 
147                        </#if> 
148                    </div> 
149 
150 
151 
152                    <div class="list-meta"> 
153 
154                        <#if fechaEventoObj?has_content> 
155                            <#if (locale == "es_ES") > 
156                                <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span> 
157                            <#else> 
158                                 <span class="post-date">${dateUtil.getDate(fechaEventoObj, "dd/MM/yyyy", locale)}</span> 
159                            </#if> 
160                        <#else> 
161                            <#if (locale == "es_ES") > 
162                                <span class="post-date">${postDate?string["dd/MM/yyyy"]}</span> 
163                            <#else> 
164                                <span class="post-date">${postDate?string["MM/dd/yyyy"]}</span> 
165                            </#if> 
166                        </#if> 
167                    </div> 
168                </div> 
169            </article> 
170        </#list> 
171    </#if> 
172</div> 
173 
174<#function isJson json> 
175    <#local value = json?trim> 
176    <#return value?has_content && value?starts_with("{") && value?ends_with("}")> 
177</#function> 

Actividades