Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy110.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy110 object "com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl@4fbae6d4"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign filteredCategory = AssetCateg...  [in template "20116#20152#72632" at line 11, column 5]
----
1<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
2<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
3 
4<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
5 
6<#assign blogVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, "Blog")> 
7 
8 
9<#if request.getParameter("p_r_p_categoryId")??> 
10    <#assign filteredCategoryId = request.getParameter("p_r_p_categoryId") > 
11    <#assign filteredCategory = AssetCategoryLocalService.getCategory(filteredCategoryId?number) > 
12    <#assign filteredCategoryName = filteredCategory.getName()?upper_case > 
13</#if> 
14 
15<#if request.getParameter("p_r_p_tag")??> 
16    <#assign filteredTag = request.getParameter("p_r_p_tag") > 
17 
18</#if> 
19 
20 
21<div id="main webcontent-list"> 
22    <div class="archive-box"> 
23        <#if filteredCategoryName??> 
24            <#if (locale == "es_ES") > 
25                <span>Categor&iacute;a</span> 
26            <#else> 
27                <span>Category</span> 
28            </#if> 
29            <h1>${filteredCategoryName}</h1> 
30        </#if> 
31        <#if filteredTag??> 
32            <#if (locale == "es_ES") > 
33                <span>Etiqueta de navegaci&oacute;n</span> 
34            <#else> 
35                <span>Browsing Tag</span> 
36            </#if> 
37            <h1>${filteredTag}</h1> 
38        </#if> 
39    </div> 
40 
41    <#if entries?has_content> 
42        <#list entries as curEntry> 
43 
44            <#-- Información del entry --> 
45            <#assign assetViewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
46            <#assign postDate = curEntry.getPublishDate() > 
47             
48            <#-- Extraemos los campos del web content recorriendo su estructura --> 
49            <#assign renderer = curEntry.getAssetRenderer() > 
50            <#assign journalArticle = renderer.getArticle() > 
51            <#assign postId = journalArticle.getPrimaryKey() > 
52            <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
53            <#assign rootElement = document.getRootElement() /> 
54            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='separator']") > 
55 
56            <#-- Reseteo para la siguiente iteracion --> 
57            <#assign postIntro = "" /> 
58 
59            <#list xPathSelector.selectNodes(rootElement) as separatorNode> 
60                <#assign titleXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='title']") > 
61                <#list titleXPathSelector.selectNodes(separatorNode) as title> 
62                    <#assign postTitle = title.getStringValue() /> 
63                </#list> 
64                <#assign introXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='intro']") > 
65                <#list introXPathSelector.selectNodes(separatorNode) as intro> 
66                    <#assign postIntro = intro.getStringValue() /> 
67                </#list> 
68                <#assign imageXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='image']") > 
69                <#list imageXPathSelector.selectNodes(separatorNode) as image> 
70                    <#if image.getData()?has_content > 
71                        <#assign postImage = image.getStringValue()?trim /> 
72                    </#if>     
73                </#list> 
74                <#assign titleXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='content']") > 
75                <#list titleXPathSelector.selectNodes(separatorNode) as content> 
76                    <#assign postContent = content.getStringValue()?replace("<[^>]*>", "", "r") /> 
77                </#list> 
78            </#list> 
79            <#-- Entradilla del post --> 
80            <#if postIntro?has_content && (postIntro?length > 10) > 
81                <#assign postContent = postIntro /> 
82            </#if> 
83 
84            <#-- Categorías --> 
85            <#assign categories = AssetCategoryLocalService.getAssetEntryAssetCategories(curEntry.getEntryId())> 
86 
87 
88            <article id="post-${postId}" class="list-item post-${postId} post type-post status-publish format-standard has-post-thumbnail hentry"> 
89 
90                <#if postImage?has_content > 
91                    <div class="post-img"> 
92                        <a href="${assetViewUrl}"><img width="520" height="400" src="${postImage}" class="attachment-misc-thumb size-misc-thumb wp-post-image"></a> 
93                    </div> 
94                </#if> 
95                 
96                <div class="list-content"> 
97             
98                    <div class="post-header"> 
99                        <span class="cat"> 
100                            <#if categories?has_content > 
101                                <#list categories as category > 
102                                    <#-- Categorías del vocabulario Blog --> 
103                                    <#if category.getVocabularyId() == blogVocabulary.getVocabularyId() > 
104                                        <#assign categoryName = category.getName()?upper_case /> 
105                                        <#assign categoryID = category.getCategoryId() /> 
106                                        <#assign categoryURL = '/cat/-/categories/' + categoryID /> 
107                                        <a href="${categoryURL}" rel="category tag">${categoryName}</a> 
108                                    </#if> 
109                                </#list> 
110                            </#if> 
111                        </span> 
112                        <h2> 
113                            <a href="${assetViewUrl}">${postTitle}</a> 
114                        </h2> 
115                        <span class="list-title-divider"></span> 
116                    </div> 
117                 
118                    <div class="post-entry"> 
119                        <#if (postContent?length > 240) > 
120                            <p>${postContent[0..240]}…</p> 
121                        <#else> 
122                            <p>${postContent}…</p> 
123                        </#if> 
124                    </div> 
125                 
126                    <div class="list-meta"> 
127                        <#if (locale == "es_ES") > 
128                            <span class="post-date">${postDate?string["dd/MM/yyyy"]}</span> 
129                        <#else> 
130                            <span class="post-date">${postDate?string["MM/dd/yyyy"]}</span> 
131                        </#if> 
132                    </div> 
133                </div> 
134            </article> 
135        </#list> 
136    </#if> 
137</div> 

SÍGUENOS EN FACEBOOK

VIDEOS INNOVACIÓN

VIDEOS IFRIDAYS

CONTACTO SACYR

Condesa de Venadito, 7
28027 - Madrid (España)
Teléfono: +34 91 545 50 00

www.sacyr.com