An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy112.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy112 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@52d37ef"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign aasetCategory = AssetCategory...  [in template "20101#20128#38007" at line 119, column 1]
----
1<style> 
2.container.newsroom-desc-container { 
3    max-width: 966px; 
4
5 
6.newsroom-desc-container h2 { 
7    word-break: break-word; 
8
9 
10 
11.autofit-row.mb-4 { 
12    display: none; 
13
14 
15.navigation-bar.navigation-bar-light, h2.entry-title, .autofit-float.portlet-header { 
16    display: none!important; 
17
18 
19.new_share_div { 
20    width: 253px!important; 
21
22 
23.share_icon .share_div { 
24        z-index: 10!important; 
25
26   
27  .share_icon .share_div .share_list div { 
28    margin-bottom: 10px!important; 
29
30    .share_icon .share_div .share_list div:hover { 
31    font-family: "Arial MT Std Medium",sans-serif; 
32
33    .share_icon .share_div .share_list div { 
34        position: relative; 
35        padding: 5px 0 5px 45px; 
36        color: #000; 
37        font-size: 14px; 
38        display: flex; 
39        align-items: center; 
40
41    .share_icon .share_div .share_list div img { 
42    filter: grayscale(1); 
43    min-width: 26px; 
44    width: 26px!important; 
45    margin-right: 20px; 
46
47.share_icon .share_div .share_list div:hover img { 
48    filter: grayscale(0); 
49
50.share_icon .share_div .share_list div:hover:before { 
51    content: ""; 
52    position: absolute; 
53    left: 0; 
54    height: 100%; 
55    width: 6px; 
56    background-color: #f47c20; 
57
58.new_share_div { 
59    width: 253px!important; 
60
61.new_share_div .share_list div { 
62    margin-bottom: 10px!important; 
63
64</style> 
65<!doctype html> 
66<#assign AssetEntryQuery=objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery")> 
67<#assign AssetEntryServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetEntryServiceUtil")> 
68<#assign ClassNameLocalServiceUtil=objectUtil("com.liferay.portal.kernel.service.ClassNameLocalServiceUtil")> 
69<#assign AssetVocabularyService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService")> 
70<html lang="en"> 
71  <#assign BlogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")> 
72  <#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
73   
74   
75  <#assign url=themeDisplay.getURLCurrent()?split("/")> 
76  <#assign furlTitle=url[(url?size)-1] /> 
77  <#assign categoryId=0> 
78  <#assign vocabularyName=""> 
79  <#assign entryId=0> 
80  <#assign blogEntry="current"> 
81  <#if request.getParameter("p_r_p_categoryId")?has_content> 
82	  <#assign categoryId=request.getParameter("p_r_p_categoryId")?number> 
83	  <#assign blogEntry=request.getParameter("blogEntry")> 
84	  <#assign entryId=request.getParameter("entryId")?number> 
85  </#if> 
86 
87 
88 
89 
90<#assign blog=""> 
91<#if entryId!=0> 
92    <#assign blog=BlogsEntryLocalService.getBlogsEntry(entryId)> 
93	<#assign vocabularyName=url[url?size-2] /> 
94<#else> 
95<#assign blog=BlogsEntryLocalService.getEntry(themeDisplay.getScopeGroupId(),furlTitle)> 
96<#assign assetEntry = AssetEntryServiceUtil.getEntry("com.liferay.blogs.model.BlogsEntry", blog.getEntryId()) 
97		entryId	=blog.getEntryId()	/> 
98       <#assign categories=AssetCategoryLocalService.getCategories("com.liferay.blogs.model.BlogsEntry",assetEntry.getClassPK()) /> 
99     
100 
101        <#if categories?has_content> 
102            <#list categories as category> 
103                <#if category.getName()!="ALL"> 
104                    <#assign categoryName=category.getName() 
105					categoryId=category.getCategoryId() 
106					vocabularyId=category.getVocabularyId() 
107					vocabularyName=AssetVocabularyService.getVocabulary(vocabularyId).getName() /> 
108                </#if> 
109            </#list> 
110        </#if> 
111</#if> 
112<#assign prevCategoryId=categoryId> 
113<#assign nextCategoryId=categoryId> 
114<#assign prevEntryId=0> 
115<#assign nextEntryId=0> 
116<#assign nextBlogTitle=""> 
117<#assign prevBlogTitle=""> 
118<#assign catIndex=0> 
119<#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)> 
120<#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )> 
121   <#assign ascatIds=[] 
122	resultBlogEntries=[]/>  
123<#if assetCategories??> 
124	<#list assetCategories as assetCat> 
125	<#assign ascatIds = ascatIds+[assetCat.getCategoryId()]> 
126	</#list> 
127	<#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]> 
128    ${AssetEntryQuery.setAnyCategoryIds(ascatIds)} 
129    ${AssetEntryQuery.setClassNameIds(classNameIds)} 
130    <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>  
131	<#list results as res> 
132	<#assign resultBlogEntries =resultBlogEntries+[BlogsEntryLocalService.getBlogsEntry(res.getClassPK())] /> 
133	</#list> 
134</#if>		         
135 
136    <#if resultBlogEntries?has_content> 
137	<#list resultBlogEntries as curEntry> 
138	    <#if entryId==0> 
139	        <#if blogEntry=="previous"> 
140	            <#if curEntry?is_last> 
141	                <#assign entryId=curEntry.entryId> 
142	                <#assign blog=BlogsEntryLocalService.getBlogsEntry(entryId)> 
143	            </#if> 
144	        <#else> 
145	            <#assign entryId=curEntry.entryId> 
146	            <#assign blog=BlogsEntryLocalService.getBlogsEntry(entryId)> 
147	        </#if> 
148		</#if> 
149		<#if curEntry.entryId==entryId> 
150		    <#assign index=curEntry?index> 
151		    <#if curEntry?has_next> 
152		        <#assign nextEntryId=resultBlogEntries[index+1].entryId> 
153				<#assign nextBlogTitle=BlogsEntryLocalService.getBlogsEntry(nextEntryId).getUrlTitle()> 
154		    <#else> 
155		        <#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)> 
156		        <#if aasetCategory??> 
157    		        <#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )> 
158    		        <#list assetCategories?sort_by("name") as category> 
159    		            <#if category.getCategoryId()==categoryId> 
160    		                <#assign catIndex=category?index> 
161    		                <#if category?has_next> 
162                                <#assign catIds = [assetCategories?sort_by("name")[catIndex+1].getCategoryId()]> 
163                                <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]> 
164                                ${AssetEntryQuery.setAnyCategoryIds(catIds)} 
165                            	${AssetEntryQuery.setClassNameIds(classNameIds)} 
166                                <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>    		                                
167								<#if results?has_content> 
168    		                        <#assign nextCategoryId=assetCategories?sort_by("name")[catIndex+1].getCategoryId()> 
169									<#list results as result> 
170								<#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/> 
171								<#assign nextBlogTitle=bEntry.getUrlTitle()> 
172								</#list> 
173    		                   <#else> 
174    		                     <#assign categoryId=assetCategories?sort_by("name")[catIndex+1].getCategoryId()> 
175    		                   </#if> 
176    		                <#else> 
177    		                    <#assign catIds = [assetCategories?sort_by("name")[catIndex].getCategoryId()]> 
178                                <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]> 
179                                ${AssetEntryQuery.setAnyCategoryIds(catIds)} 
180                            	${AssetEntryQuery.setClassNameIds(classNameIds)} 
181                                <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>    		                               
182								<#if results?has_content> 
183    		                    <#assign nextCategoryId=assetCategories?sort_by("name")[catIndex].getCategoryId()> 
184								<#list results as result> 
185								<#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/> 
186								<#assign nextBlogTitle=bEntry.getUrlTitle()> 
187								</#list> 
188    		                    </#if> 
189    		                </#if> 
190    		                 
191    		            </#if> 
192    		        </#list> 
193		        </#if> 
194		        <#assign nextEntryId=0> 
195		    </#if> 
196		    <#if curEntry?is_first> 
197		        <#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)> 
198		        <#if aasetCategory??> 
199    		        <#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )> 
200    		        <#list assetCategories?sort_by("name")?reverse as category> 
201    		            <#if category.getCategoryId()==categoryId> 
202    		                <#assign index=category?index> 
203    		                <#if category?is_last> 
204    		                <#assign catIds = [assetCategories?sort_by("name")?reverse[index].getCategoryId()]> 
205                                <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]> 
206                                ${AssetEntryQuery.setAnyCategoryIds(catIds)} 
207                            	${AssetEntryQuery.setClassNameIds(classNameIds)} 
208                                <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)> 
209								<#if results?has_content> 
210    		                    <#assign prevCategoryId=assetCategories?sort_by("name")?reverse[index].getCategoryId()> 
211								<#list results as result> 
212								<#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/> 
213								<#assign prevBlogTitle=bEntry.getUrlTitle()> 
214								</#list> 
215    		                    </#if> 
216    		                <#else> 
217    		                <#assign catIds = [	assetCategories?sort_by("name")?reverse[index+1].getCategoryId()]> 
218                                <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]> 
219                                ${AssetEntryQuery.setAnyCategoryIds(catIds)} 
220                            	${AssetEntryQuery.setClassNameIds(classNameIds)} 
221                                <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)> 	 
222								<#if results?has_content> 
223								<#list results as result> 
224									<#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/> 
225									<#assign prevBlogTitle=bEntry.getUrlTitle()> 
226								</#list> 
227    		                    <#assign prevCategoryId=assetCategories?sort_by("name")?reverse[index+1].getCategoryId()> 
228    		                    <#else> 
229    		                     <#assign categoryId=assetCategories[index-1].getCategoryId()> 
230    		                    </#if> 
231    		                </#if> 
232    		            </#if> 
233    		        </#list> 
234    		    </#if> 
235		        <#assign prevEntryId=0> 
236				 
237		    <#else> 
238		        <#assign prevEntryId=resultBlogEntries[index-1].entryId> 
239				<#assign prevBlogTitle=BlogsEntryLocalService.getBlogsEntry(prevEntryId).getUrlTitle()> 
240		    </#if> 
241		</#if> 
242	</#list> 
243	<#else> 
244	    <#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)> 
245	    <#if aasetCategory??> 
246	        <#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )> 
247		    <#list assetCategories as category> 
248    		    <#if category.getCategoryId()==categoryId> 
249    		        <#assign catIndex=category?index> 
250    		        <#if category?has_next> 
251    		            <#assign nextCategoryId=assetCategories[catIndex+1].getCategoryId()> 
252    		        <#else> 
253    		             <#assign nextCategoryId=assetCategories[catIndex].getCategoryId()> 
254    		        </#if> 
255    		        <#if category?is_first> 
256    		             <#assign prevCategoryId=assetCategories[catIndex].getCategoryId()> 
257    		        <#else> 
258    		             <#assign prevCategoryId=assetCategories[catIndex-1].getCategoryId()> 
259    		        </#if> 
260                </#if> 
261            </#list> 
262        </#if> 
263	 
264    </#if> 
265  <body> 
266    <header> 
267    </header> 
268    <!-- Newsroom details--> 
269    <div class="newsroom_details mt-5"> 
270      <div class="container newsroom-desc-container"> 
271      <#if blog!=""> 
272        <p class="font_16 semi-bold"> 
273          <img src="/documents/d/guest/calendar">  
274          <span class="ml-2">${dateUtil.getDate(blog.getDisplayDate(), "MMM dd yyyy", locale)}</span> 
275          </p> 
276          <span class="pull-right share_icon"><img src="/documents/d/guest/share"> 
277          
278            <div class="share_div removable_share_div"> 
279                <p class="bold text_14 m-4 pl-3 text-left">Share via:</p> 
280                <div class="share_list"> 
281                    <div data-network="facebook" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/documents/d/guest/facebook_i">FACEBOOK</div> 
282                                 
283                    <div data-network="twitter" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/documents/d/guest/twitter_i">TWITTER</div> 
284 
285                        <div data-network="linkedin" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/documents/d/guest/linkedin_i">LINKEDIN</div> 
286                         
287                        <div><span class="copy-btn" data-type="attribute" data-attr-name="data-clipboard-text" data-model="couponCode" data-clipboard-text="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/documents/d/guest/link_i"> COPY LINK</span></div> 
288                         
289                        <div data-network="whatsapp" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/documents/d/guest/whatsapp_i">WHATSAPP</div> 
290 
291                        <div data-network="email" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/documents/d/guest/gmail_i">EMAIL</div> 
292                             
293                </div> 
294            </div> 
295          </span> 
296        <h1 class="bold h2 mb-4">${blog.getTitle() }</h1> 
297        <!--<h2 class="bold mb-4">${blog.getTitle() }</h2>--> 
298        <!--- ml-2 ---> 
299        <p class="font_14">${blog.getSubtitle()}</p> 
300        <p class="font_14">${blog.getContent()}</p> 
301       </#if> 
302		</div> 
303      <div class="container p-0 mt-5 mb-4"> 
304        <hr> 
305        <div class="py-4 px-3"> 
306          <div class="d-inline-block w-100"> 
307		  <form action="/${vocabularyName?lower_case?replace(' ','-')}/${prevBlogTitle}"  method="post"> 
308			<#assign dis="disabled"> 
309			 
310						<input type="hidden" name="entryId" value="${prevEntryId}"/> 
311						<input type="hidden" name="p_r_p_categoryId" value="${prevCategoryId}"/> 
312						<input type="hidden" name="blogEntry" value="previous"/> 
313							<button class="pull-left btn btn-secondary bold" ${(prevBlogTitle=="")?then(dis,'')}> 
314							<i class="fa fa-angle-left"></i>&nbsp; PREVIOUS 
315							</button> 
316						</form> 
317						<form action="/${vocabularyName?lower_case?replace(' ','-')}/${nextBlogTitle}"  method="post"> 
318						<input type="hidden" name="entryId" value="${nextEntryId}"/> 
319						<input type="hidden" name="p_r_p_categoryId" value="${nextCategoryId}"/> 
320						<input type="hidden" name="blogEntry" value="next"/> 
321							<button class="pull-right btn btn-secondary bold" ${(nextBlogTitle=="")?then(dis,'')}> 
322							NEXT &nbsp;<i class="fa fa-angle-right"></i> 
323							</button> 
324						</form> 
325          </div> 
326        </div> 
327      </div> 
328    </div> 
329 
330     
331 
332     
333    <!-- mid content --> 
334 
335    <!-- script --> 
336    <script type="text/javascript"></script> 
337<script> 
338$(document).ready(function(){ 
339    $('.copy-btn').on("click", function(){ 
340        value = $(this).data('clipboard-text'); //Upto this I am getting value 
341  
342        var $temp = $("<input>"); 
343          $("body").append($temp); 
344          $temp.val(value).select(); 
345          document.execCommand("copy"); 
346          $temp.remove(); 
347    }); 
348     
349    $.getScript( "https://platform-api.sharethis.com/js/sharethis.js#property=5f072ec41fc3670013bd28d9&product=inline-share-buttons" ).done(function( script, textStatus ) { 
350        console.log( textStatus ); 
351    });   
352}); 
353 
354$(document).on("click", ".st-custom-button", function(e) { 
355     var elm = e.target; 
356     var network = elm.dataset.network; 
357     console.log("share click: " + network); 
358}); 
359 
360 
361    </script> 
362  </body> 
363 
364   
365</html>