An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy169.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy169 object "com.swt.portal.servicewrappers.AssetCategoryServiceOverride@3dc7065f"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign Category = AssetCategoryServi...  [in template "20115#20151#67940" at line 177, column 3]
----
1<style> 
2	 
3		.photoAlbum-hinhanh { 
4            margin-right: -2%; 
5            height: 56px; 
6            box-shadow: 0px 2px 10px #888888; 
7
8        .photoAlbum-img { 
9            margin-left: 14%; 
10
11        .photo-title { 
12            margin-top: 1%; 
13            color: #767676; 
14            margin-left: 10px; 
15
16        .photo-spantitle { 
17            font-size: 14px; 
18            margin-right: 4px; 
19            font-weight: 600; 
20
21        .mtouserphoto-ul-image { 
22            width: 100%; 
23            list-style: none; 
24            float: left; 
25            margin-top: 0%; 
26            margin-right: 10px !important; 
27            margin-left: 10px !important; 
28            padding: 0; 
29
30        .mtouserphoto-li-image { 
31            float: left; 
32            padding-right: 1%; 
33            margin-top: 1%; 
34
35        .col-image-carousel { 
36            width: 97%; 
37
38         
39        .carousel-image-name { 
40            padding-bottom: 1%; 
41            padding-left: 3%; 
42            width: 100%; 
43            background: linear-gradient( #ffffff00,rgba(11, 11, 11, 0.89)); 
44            float: left; 
45            margin-top: -9%; 
46            position: absolute; 
47            text-align: left; 
48            padding-top: 5px; 
49            color: white; 
50            font-weight: bold; 
51            height: 14%; 
52            font-size: 12px; 
53            font-family: Arial, Helvetica, sans-serif; 
54
55        .slide-img-responsive { 
56            width: 100%; 
57            height: 155px !important; 
58
59        .img-responsive-detail { 
60            width: 98%; 
61            height: 155px !important; 
62
63        .carousel-image-name-photo-img { 
64            width: 96%; 
65            float: left; 
66            text-align: justify; 
67            padding-top: 2px; 
68            padding: 5px; 
69            color: #306e95; 
70            font-weight: bold; 
71            font-size: 13px; 
72            font-family: Arial, Helvetica, sans-serif; 
73
74        .titile-danh-sach-hinh-anh { 
75            color: #10406e; 
76            font-weight: 600; 
77            margin: 10px; 
78            margin-left: 28px; 
79            font-size: 14px; 
80            text-align: justify; 
81
82        .image-viewer-info{ 
83            display: none; 
84
85        .lfr-pagination{ 
86            display: none; 
87
88        #myDropdown{ 
89            
90            float: left; 
91            z-index: 5; 
92            margin-left: 20%; 
93
94        .page-menu{ 
95            width: 70%; 
96
97        .cursor{ 
98            
99           color: #777; 
100           pointer-events: none; 
101           cursor: not-allowed; 
102
103	</style> 
104 
105<#assign httpRequest = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest))> 
106<#assign idArticle = getterUtil.getLong(httpRequest.getParameter("id"))> 
107<#assign page = getterUtil.getLong(httpRequest.getParameter("page"))> 
108 <#assign AssetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")> 
109  <#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
110  <#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
111  <#assign AssetCategoryPropertyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryPropertyLocalServiceUtil"]/> 
112  <#assign AssetPublisherUtil = serviceLocator.findService("com.liferay.asset.publisher.web.util.AssetPublisherUtil")/> 
113  <#assign DLFileEntryLocalServiceUtil =  serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/> 
114   
115  <#assign index = -1 /> 
116<#list portletPreferences?keys as k> 
117    <#if "queryValues0" = k> 
118        <#assign index = k?index /> 
119    </#if> 
120 </#list> 
121 <#assign lvl = portletPreferences?values /> 
122 <#assign idCategory = lvl[index][0] />  
123  
124<#assign indexCur  = -1 /> 
125<#list portletPreferences?keys as k> 
126    <#if "delta" = k> 
127        <#assign indexCur = k?index /> 
128    </#if> 
129 </#list> 
130 <#assign lvalues= portletPreferences?values /> 
131 <#assign numberConfig = lvalues[indexCur][0] />  
132  
133<#assign indexPage  = -1 /> 
134<#list portletPreferences?keys as k> 
135    <#if "paginationType" = k> 
136        <#assign indexPage = k?index /> 
137    </#if> 
138 </#list> 
139 <#assign pageValues= portletPreferences?values /> 
140 <#assign stylePage = pageValues[indexPage][0] />  
141  
142  
143 <#if validator.isNotNull(idArticle)> 
144   <#assign nameAlbum = AssetCategoryService.getCategory(idArticle) />  
145    </#if> 
146	 
147<div class="row"> 
148 
149<div class="col-md-12 col-lg-12"> 
150   <div class="photo-title">  
151		<img class="photo-titleimg" src="/o/hcm-video-theme/images/hinhanh_04.png"> 
152		<img class="photo-titleimg" src="/o/hcm-video-theme/images/hinhanh_05.png">  
153		<span class="photo-spantitle" id="aui_3_4_0_1_1371"> 
154		<#if validator.isNull(idArticle)> 
155		 Hình ảnh 
156		<#else> 
157		  ${nameAlbum.getName()} 
158		 </#if> 
159		</span> 
160	</div> 
161	<div> 
162	 
163	<#assign start = 0 > 
164    <#assign end = 0 > 
165        <#if  page<=1 > 
166        <#assign start=0 > 
167        <#assign end=numberConfig > 
168        <#else> 
169        <#assign star= page-1 > 
170        <#assign start= star*numberConfig?number > 
171        <#assign end=start?number+numberConfig?number > 
172        </#if> 
173  
174    <ul class="mtouserphoto-ul-image row row-swt-responsive"> 
175    <#assign i = 0 >  
176  <#if validator.isNull(idArticle) > 
177  <#assign Category = AssetCategoryService.getCategory(idCategory?number) />  
178   <#assign listVocab = assetVocabularyLocalService.getGroupVocabularies(groupId)> 
179      <#assign listCates = [] > 
180        <#list listVocab as vocab> 
181        <#if  Category.getVocabularyId()==vocab.getVocabularyId() > 
182            <#assign listCates = vocab.getCategories() > 
183             <#list listCates as category> 
184              <#if category.getParentCategoryId() == 0> 
185              <#assign i =i+1 > 
186              </#if> 
187             </#list> 
188        </#if> 
189    </#list> 
190 
191     <#assign listCategory = AssetCategoryService.getVocabularyCategories(themeDisplay.getScopeGroupId(),0,Category.getVocabularyId()?number, start?number , end?number ,null)  >  
192      <#if validator.isNotNull(listCategory?size)  > 
193     <#list listCategory as cate> 
194                 
195            	<#assign categoryPropertyList = AssetCategoryPropertyLocalServiceUtil.getCategoryProperties(cate.getCategoryId())/> 
196            	<#list categoryPropertyList as categoryProperty> 
197            		<#if (categoryProperty.getKey() == "icon")> 
198            			<#assign idDLEntry = categoryProperty.getValue()/> 
199            			<#if (idDLEntry?number > 0)> 
200            			<#assign fileEntry = DLFileEntryLocalServiceUtil.getDLFileEntry(idDLEntry?number) /> 
201            			<#assign fileNameUrl = fileEntry.getTitle()/> 
202            			<#assign folderId = fileEntry.getFolderId()/> 
203            			<#assign url = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() + "/" + folderId + "/" + fileNameUrl /> 
204            		    </#if> 
205            		</#if> 
206			</#list> 
207			<div> 
208                <li class="mtouserphoto-li-image col-swt  col-xs-12 col-sm-6 col-md-3 col-lg-3"> 
209				<div id="myCarousel" class="col-image-carousel carousel slide" data-ride="carousel" data-interval="60000"> 
210					<div class="carousel-inner" role="listbox">		     
211						<div class="item active"> 
212							<a href="${currentURL}&id=${cate.getCategoryId()}"> 
213							<#if idDLEntry?number !=0> 
214							<img src="${url}" class="slide-img-responsive"> 
215							<#else> 
216							<img src="/o/hcm-default-theme/images/cms/no-image.jpg" class="slide-img-responsive"> 
217							</#if> 
218							<div class="carousel-image-name"> 
219								<img class="photo-carousel" src="/o/hcm-video-theme/images/hinhanh_07.png"> 
220								${cate.getName()} 
221							</div>	 
222					        </a>								 
223						</div> 
224					</div> 
225				</div> 
226				</li> 
227				</div> 
228            </#list> 
229    </#if>     
230     
231              
232      </ul> 
233				<#assign pageCur = 1 /> 
234               <#assign x = i?number/numberConfig?number /> 
235               <#assign y =x?floor /> 
236               <#if i?number%numberConfig?number == 0> 
237                <#assign pageTotal = i?number/numberConfig?number /> 
238                <#else> 
239                <#assign pageTotal = y?number +1 /> 
240                </#if> 
241                <#if validator.isNull(page)> 
242                 <#assign pageNext = 2/> 
243                <#else> 
244                <#assign pageNext = page + 1/> 
245                </#if> 
246                <#assign pagePre = page - 1/> 
247                <#if stylePage == "regular"> 
248				 
249					  <div id="myDropdown" class="dropdown"> 
250							  <button id="myTrigger" class="btn btn-default dropdown-toggle" type="button"> 
251							   Trang <#if validator.isNull(page)>1<#else> ${page} </#if> của ${pageTotal} 
252								<span class="caret"></span> 
253							  </button> 
254							 <ul class="dropdown-menu"> 
255								   <#list 1..pageTotal as x> 
256										 <li class="">  
257										<a tabindex="-1" href="?page=${x}">${x}</a> 
258									   </li>  
259									</#list> 
260							</ul> 
261								  <small class="search-results"> — Dòng ${start + 1} - <#if (end?number <i?number) > ${end} <#else> ${i?number} </#if> (Tổng số: ${i}). </small> 
262						</div> 
263						<div class ="page-menu"> 
264							<ul class="lfr-pagination-buttons pager"> 
265								<li class="">  
266								   <a href="?page=${pageCur}" class="<#if page <=1 > cursor </#if>"  > ← Đầu tiên </a> 
267								</li>  
268								 <li class="">  
269								   <a href="?page=${pagePre}" class="<#if page <=1 > cursor </#if>"> Trước </a>  
270								</li>  
271								<li class=""> 
272								   <a href="?page=${pageNext}" class="<#if (page =pageTotal) || (numberConfig?number>=i?number) > cursor </#if>"> Tiếp theo </a>  
273								 </li>  
274								<li class=""> 
275								   <a href="?page=${pageTotal}" class="<#if (page =pageTotal) || (numberConfig?number>=i?number)  > cursor </#if>"> Cuối cùng → </a>  
276							   </li>  
277						   </ul> 
278					   </div> 
279				    
280                
281               </#if> 
282               </#if> 
283       
284</div> 
285 
286 
287</div> 
288 <script> 
289 YUI().use( 
290  'aui-dropdown', 
291  function(Y) { 
292    new Y.Dropdown( 
293
294        boundingBox: '#myDropdown', 
295        trigger: '#myTrigger' 
296
297    ).render(); 
298
299);  
300</script>