Aset Penerbit

Aset Penerbit

null Dana Pensiun untuk Persiapan Hari Tua yang Sejahtera
Kesalahan terjadi ketika Memproses Template.
Java method "com.sun.proxy.$Proxy719.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy719 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@3bc2c4de"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign getArticle = JournalArticleLo...  [in template "1415598#1415646#1274509" at line 15, column 1]
----
1<style type="text/css"> 
2    @media(max-width:767px){ 
3        .box-table{ 
4            overflow-x:auto; 
5            max-width:100%; 
6
7
8     
9</style> 
10<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
11 
12<#assign scopeId = themeDisplay.getScopeGroupId()/> 
13<#assign articleid = .vars['reserved-article-id'].data/> 
14 
15<#assign getArticle = JournalArticleLocalService.getArticle(getterUtil.getLong(scopeId), articleid) /> 
16<#assign resourcePrimKey = getArticle.resourcePrimKey/> 
17 
18<#assign vocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")/> 
19<#assign vocabularies = vocabularyLocalService.getGroupVocabularies(getterUtil.getLong(groupId))/> 
20  
21 
22<#list vocabularies as voc> 
23 
24 <#if voc.name == "Topic"> 
25   <#assign topicVocabularyId = voc.vocabularyId/> 
26    
27 </#if> 
28</#list> 
29 
30<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")/> 
31 
32<#assign articleCats = catLocalService.getCategories("com.liferay.journal.model.JournalArticle", getterUtil.getLong(resourcePrimKey))/> 
33 
34 
35 
36<#-- Retrieve the published date meta data field of the web content --> 
37<#assign displaydate = .vars['reserved-article-display-date'].data> 
38<#assign createdate = .vars['reserved-article-create-date'].data> 
39<#assign modifieddate = .vars['reserved-article-modified-date'].data> 
40 
41<#-- Save the original page locale for later --> 
42<#assign originalLocale = .locale> 
43 
44<#-- Set the page locale to the portals default locale --> 
45<#setting locale = localeUtil.getDefault()> 
46 
47<#-- Parse the date to a date object --> 
48<#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
49<#assign dateformat = dateUtil.getDate(displaydate, "dd MMM yyyy", locale)/> 
50<#assign createdate = createdate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
51<#assign modifieddate = modifieddate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
52 
53<#assign metaCreatedate = createdate?datetime?string('yyyy-MM-dd')> 
54<#assign metaModifieddate = modifieddate?datetime?string('yyyy-MM-dd')> 
55 
56<#-- Set the page locale back to the original page locale --> 
57<#assign locale = originalLocale> 
58 
59 
60 
61<#if Title?? && Title.getData() != ""> 
62  <#assign titlenya =Title.getData()/> 
63<#else> 
64  <#assign titlenya = .vars['reserved-article-title'].data/> 
65 
66</#if> 
67 
68 
69<section class="CX-main CX-news-detail" data-title="${titlenya}" data-img="${ImageBackground.getData()}" data-date="${dateformat}" > 
70     
71 <div class="category hide"> 
72<#list articleCats as cat> 
73    <#if cat.vocabularyId == topicVocabularyId> 
74 
75        <#assign catname_lower = cat.name?lower_case /> 
76        <#assign catname = catname_lower?replace(" ","-")/> 
77        <#assign categoryName = cat.name/>     
78         
79        <span class="category-item">${categoryName}</span> 
80 
81    </#if> 
82</#list>      
83 </div> 
84 <div class="container CX-wrapper"> 
85   <div class="box-detail-news"> 
86       <div class="box-full-content"> 
87        ${FullContent.getData()} 
88       </div> 
89        
90   </div> 
91 </div> 
92</section> 
93 
94 
95<script type="text/javascript"> 
96    $(document).ready(function(){ 
97 
98        var url = "${portalUtil.getCurrentCompleteURL(request)}"; 
99        var title = "${.vars['reserved-article-title'].data}"; 
100        var description = "${ShortDescription.getData()}"; 
101        var image = "${ImageBackground.getData()}"; 
102         
103       $('meta[property="og:url"]').attr("content", url)  
104       $('meta[property="og:title"]').attr("content", title)  
105       $('meta[property="og:description"]').attr("content", description)  
106       $('meta[property="og:image"]').attr("content", image)  
107       $('meta[name="description"]').attr("content", description)  
108        
109        var scriptToAdd = document.createElement('script'); 
110        scriptToAdd.type = 'application/ld+json'; 
111         
112        // Create contents of the script 
113        var theScript = '{"@context":"https://schema.org","@type":"NewsArticle","headline":"'+title+'","image":"https://axa-mandiri.co.id'+image+'","author":{"@type":"Organization","name":"Admin"},"publisher":{"@type":"Organization","name":"AXA Mandiri","logo":{"@type":"ImageObject","url":"https://axa-mandiri.co.id/image/layout_set_logo?img_id=1459736"}},"datePublished":"${metaCreatedate}","dateModified":"${metaModifieddate}"}'; 
114        var inlineScript = document.createTextNode(theScript); 
115   
116        scriptToAdd.appendChild(inlineScript); 
117         
118        // Get the head element of the document 
119        // and append the script 
120        document.head.appendChild(scriptToAdd); 
121         
122    }); 
123</script>