S'ha produït un error mentre es processava la plantilla.
Method public java.util.List com.liferay.portal.model.impl.LayoutImpl.getChildren(com.liferay.portal.security.permission.PermissionChecker) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception when invoked on {uuid=d07be4e2-e3ac-4b42-af6f-de07de488302, plid=362305, groupId=28509, companyId=20155, userId=20903, userName=, createDate=2015-10-22 12:30:28.85, modifiedDate=2017-11-12 11:37:56.795, privateLayout=false, layoutId=96, parentLayoutId=25, name=<?xml version='1.0' encoding='UTF-8'?><root available-locales="ca_ES,es_ES," default-locale="ca_ES"><Name language-id="ca_ES">Registre de factures</Name><Name language-id="es_ES">Registro de facturas</Name></root>, title=, description=, keywords=, robots=, type=portlet, typeSettings=column-1=aoctransparenciavisualitzaciopagina_WAR_aoctransparenciaportlet,56_INSTANCE_VCjMDal1YQ4b,personalitzaritem_WAR_aoctransparenciaportlet,
column-1-customizable=false
column-2=aocdatasetlink_WAR_aoctransparenciaportlet_INSTANCE_zLkWCCIN7KGN,aocdatasetview_WAR_aoctransparenciaportlet_INSTANCE_NWm1sKnz295W,56_INSTANCE_ojZ7WCs6dgqF
column-2-customizable=false
layout-template-id=semic_1_column_interior
layoutUpdateable=true
sitemap-changefreq=daily
sitemap-include=1
, hidden=false, friendlyURL=/govern-obert-i-transparencia/contractes-convenis-i-subvencions/relacio-de-contractes/registre-de-factures, iconImage=false, iconImageId=0, themeId=classic, colorSchemeId=, wapThemeId=, wapColorSchemeId=, css=, priority=5, layoutPrototypeUuid=, layoutPrototypeLinkEnabled=false, sourcePrototypeLayoutUuid=} with arguments of types [com.liferay.portal.security.permission.AdvancedPermissionChecker,]
1<#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] /> 
2<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] /> 
3<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
4<#assign userLocalService = serviceLocator.findService("com.liferay.portal.service.UserLocalService") /> 
5<#assign user_guest = userLocalService.getDefaultUser(companyId) /> 
6<#assign user_guest_permission = themeDisplay.permissionChecker.clone() /> 
7${user_guest_permission.init(user_guest)} 
8 
9<#assign apartatShowSize = 0 /> 
10<#if entries?has_content> 
11       <#list entries as entry> 
12             <#assign layoutURL = portalUtil.getLayoutURL(entry, themeDisplay) />          
13              <#assign layout = entry.getPlid() /> 
14         <#if (!themeDisplay.isSignedIn() && layoutPermission.contains(user_guest_permission, entry.getPlid(), 'VIEW' ))|| themeDisplay.isSignedIn()> 
15                    <#assign apartatShowSize = apartatShowSize + 1 /> 
16             </#if> 
17       </#list> 
18</#if> 
19 
20 
21<#if entries?has_content> 
22   <div class="boxlist border"> 
23        <div class="row-fluid"> 
24          <#assign span_class = "span6" /> 
25          <#if (apartatShowSize==3)> 
26             <#assign span_class = "span4" /> 
27          </#if> 
28          <#if (apartatShowSize>3)> 
29             <#assign span_class = "span3" /> 
30          </#if> 
31          <#list entries as entry> 
32              <#assign layoutURL = portalUtil.getLayoutURL(entry, themeDisplay) /> 
33              <#assign layout = entry.getPlid() /> 
34              <#assign apartat_class = "" /> 
35              <#if !layoutPermission.contains(user_guest_permission, entry.getPlid(), 'VIEW' )> 
36                     <#assign apartat_class = "apartat-amagat" /> 
37              </#if> 
38              <#if (!themeDisplay.isSignedIn()  
39                    && layoutPermission.contains(user_guest_permission, entry.getPlid(), 'VIEW' )) 
40                    || themeDisplay.isSignedIn()> 
41                 <div class="${span_class}"> 
42                    <div class="panel"> 
43                       <div class="contentTitle ${apartat_class}"> 
44                          <h2><a href="${layoutURL}">${entry.getName(locale)}</a></h2> 
45                       </div> 
46                       <div class="contentlist"> 
47                          <#assign pages = entry.getChildren(themeDisplay.getPermissionChecker()) /> 
48                          <@page_tree pages=pages /> 
49                       </div> 
50                    </div> 
51                 </div> 
52               </#if> 
53           </#list> 
54        </div> 
55   </div> 
56</#if> 
57 
58<#macro page_tree pages> 
59   <#if pages?has_content> 
60      <ul class="child-pages"> 
61      <#list pages as page> 
62         <#assign pageLayoutURL = portalUtil.getLayoutURL(page, themeDisplay) /> 
63         <#assign layout = page.getPlid() /> 
64         <#assign item_class = "item" /> 
65         <#if page_index==0> 
66            <#assign item_class = "item item_first" /> 
67         </#if> 
68         <#assign css_page = "" /> 
69         <#if themeDisplay.isSignedIn() && !layoutPermission.contains(user_guest_permission, page.getPlid(), 'VIEW')> 
70            <#assign css_page = "pagina-amagada" /> 
71         </#if> 
72 
73         <#assign item_propi = (themeDisplay.isSignedIn() && page.getExpandoBridge().hasAttribute("pagina_propia") && page.getExpandoBridge().getAttribute("pagina_propia")) /> 
74         <#if item_propi> 
75            <#assign item_class = item_class + " item_propi" /> 
76         </#if> 
77         <li class="${item_class} ${css_page}" <#if item_propi>id="item-propi-${page.getPlid()}" data-plid="${page.getPlid()}"</#if>> 
78           <a href="${pageLayoutURL}">${page.getName(locale)}<#if themeDisplay.isSignedIn()> [${page.getExpandoBridge().getAttribute("Tipus pàgina")}]</#if></a> 
79           <#if item_propi> 
80             <div class="item-propi-actions"> 
81              <span class="fa fa-arrow-up"></span> 
82              <span class="fa fa-arrow-down"></span> 
83             </div> 
84           </#if> 
85           <#assign childPages = page.getChildren(themeDisplay.getPermissionChecker()) /> 
86         </li> 
87    </#list> 
88     </ul> 
89   </#if> 
90</#macro> 
91 
92 
93<@aui["script"] use="aui-base"> 
94    var A = AUI(); 
95    var llista = A.all("#p_p_id<@liferay_portlet.namespace /> .panel"); 
96    var max_height = 0; 
97    for(i=0; i<llista.size();i++) { 
98                var item_height = llista.item(i).getDOMNode().offsetHeight; 
99                if(item_height>max_height) { max_height = item_height; } 
100
101    for(i=0; i<llista.size();i++) { 
102                llista.item(i).setStyle("height",max_height); 
103
104</@> 
105 
106<script type="text/javascript"> 
107  function accioMoureIPAmunt(plid, posicio) { 
108    var elementPropi = $("#p_p_id<@liferay_portlet.namespace /> .boxlist .panel .contentlist .item_propi#item-propi-" + plid); 
109    var plid2 = elementPropi.prev().attr("data-plid"); 
110    accioMoureItemPropi(plid, plid2, posicio-1, elementPropi.prev()); 
111
112 
113  function accioMoureIPAvall(plid, posicio) { 
114    var elementPropi = $("#p_p_id<@liferay_portlet.namespace /> .boxlist .panel .contentlist .item_propi#item-propi-" + plid); 
115    var plid1 = elementPropi.next().attr("data-plid"); 
116    accioMoureItemPropi(plid1, plid, posicio, elementPropi); 
117
118 
119  function accioMoureItemPropi(plid1, plid2, posicio, elementPropi) { 
120    jQuery.post("/c/portal/accions_items_propis", { 
121      accio: "moure", 
122      groupId: ${themeDisplay.getScopeGroupId()}, 
123      plid01: plid1, 
124      plid02: plid2, 
125      ordre: posicio 
126    }).done(function(data){ 
127      if(data=="OK") { 
128        elementPropi.insertAfter(elementPropi.next()); 
129        actualizarOrdenacioIP(); 
130
131    }); 
132
133 
134  function actualizarOrdenacioIP() { 
135    $("#p_p_id<@liferay_portlet.namespace /> .portlet-body .boxlist .panel").each( function(indexPanel, thisPanel) { 
136      var itemsPropis = $(thisPanel).find(".contentlist .item_propi"); 
137      var total = itemsPropis.length; 
138      itemsPropis.each( function(indexIP, thisIP) { 
139        var plid = $(thisIP).attr("data-plid"); 
140 
141        var iconaUp = $(thisIP).find(".item-propi-actions span.fa-arrow-up"); 
142        var iconaDown = $(thisIP).find(".item-propi-actions span.fa-arrow-down"); 
143 
144        iconaUp.unbind("click"); 
145        iconaDown.unbind("click"); 
146 
147        if(indexIP>0) { 
148          iconaUp.addClass("actiu"); 
149          iconaUp.attr("title", "Puja"); 
150          iconaUp.click(function() { accioMoureIPAmunt(plid, indexIP+1); }); 
151
152        else { 
153          iconaUp.removeClass("actiu"); 
154          iconaUp.attr("title", ""); 
155
156 
157        if(indexIP<(total-1)) { 
158          iconaDown.addClass("actiu"); 
159          iconaDown.attr("title", "Baixa"); 
160          iconaDown.click(function() { accioMoureIPAvall(plid, indexIP+1); }); 
161
162        else { 
163          iconaDown.removeClass("actiu"); 
164          iconaDown.attr("title", ""); 
165
166      }); 
167    }); 
168
169 
170  $(document).ready(function() { 
171    actualizarOrdenacioIP(); 
172  }); 
173</script>