Integridade

COMPARTILHAR

处理模板时发生错误。
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@27bcc5cc"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign date = dateUtil.parseDate("EE...  [in template "57149678738875#20119#36564" at line 3, column 1]
----
1<#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
2<#assign articleId=.vars['reserved-article-id'].data /> 
3<#assign date = dateUtil.parseDate("EEE, d MMM yyyy HH:mm:ss Z", .vars['reserved-article-modified-date'].data, locale)?string["dd/MM/yyyy HH'h'mm"] /> 
4 
5<#if collapse.collapse_title.getData()?has_content> 
6  <div aria-orientation="vertical" class="collapse-gdf panel-group" role="tablist"> 
7    <div role="tablist"> 
8      <#list collapse.getSiblings() as cur_collapse> 
9        <button aria-controls="collapse-${articleId}-${cur_collapse?index}-${randomNamespace}" aria-expanded="false" class="btn btn-unstyled panel-header panel-header-link collapse-icon collapse-icon-middle collapsed mt-3 collapse-${cur_collapse.collapse_collor.getData()}" data-target="#collapse-${articleId}-${cur_collapse?index}-${randomNamespace}" data-toggle="collapse" role="tab"> 
10          <i class="las la-exchange-alt"></i> 
11					<span class="panel-title"> 
12            ${cur_collapse.collapse_title.getData()} 
13          </span> 
14        </button> 
15        <div class="panel-collapse collapse" id="collapse-${articleId}-${cur_collapse?index}-${randomNamespace}" role="tabpanel"> 
16          <div class="panel-body"> 
17            ${cur_collapse.collapse_content.getData()} 
18 
19            <#if collapse.groupCollapse.getSiblings()?has_content> 
20              <#list cur_collapse.groupCollapse.getSiblings() as cur_collapse_groupCollapse> 
21                <#assign webContentData=jsonFactoryUtil.createJSONObject(cur_collapse_groupCollapse.getData()) /> 
22 
23                <#if webContentData?? && webContentData.title??> 
24                  <#assign AssetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
25                  <#assign assetEntry=AssetEntryLocalService.getEntry(webContentData.className, getterUtil.getLong(webContentData.classPK)) /> 
26                  <#assign assetRenderer=assetEntry.getAssetRenderer() /> 
27                  <#assign journalArticle=assetRenderer.getAssetObject() /> 
28 
29                  <div class="p-2"> 
30                    <@liferay_journal["journal-article"] 
31                      articleId=journalArticle.getArticleId() 
32                      ddmTemplateKey=journalArticle.getDDMTemplateKey() 
33                      groupId=journalArticle.getGroupId() 
34                      wrapperCssClass="h-100" /> 
35                  </div> 
36                </#if> 
37              </#list> 
38            </#if> 
39          </div> 
40        </div> 
41      </#list> 
42    </div> 
43  </div> 
44</#if> 
45 
46<script> 
47  var date = new Date('${date}'); 
48 
49  if (!Liferay["lastModifiedDate"] || 
50    Liferay.lastModifiedDate < date) { 
51    Liferay.lastModifiedDate = date 
52
53</script> 
54 
55<style> 
56.button-azul { 
57padding: 10px; border-radius: 8px; background: #4079BC; color: white; margin: 15px; outline: none; border: none; 
58
59</style>