掲示板

Unable to publish to remote live due to calendar error

7年前 に Smruthi Aravind によって更新されました。

Unable to publish to remote live due to calendar error

New Member 投稿: 13 参加年月日: 12/11/30 最新の投稿
Hi,

We are using 6.2CE GA3 version.
We have set up a staging environment to publish from site1(staging) to site1(production). Here is the steps we have performed:

1. Added the following properties in portal-ext:

tunneling.servlet.shared.secret=XXXXXXXXXX
tunnel.servlet.hosts.allowed=XXXXXX
axis.servlet.hosts.allowed=XXXXXXXX
auth.verifier.TunnelingServletAuthVerifier.hosts.allowed=XXXXXXX

2. Went to site administration in site1(staging) and gave the staging-->remote live settings.

2. Published a web content and a document in site1(staging).

3.Went to a page in site1(staging) and clicked on publish to remote live. It only shows 'Date' , 'Pages' and 'Content' section and does not display the other sections

An exception is appearing:

javax.servlet.ServletException: java.lang.NoSuchMethodError: com.liferay.portal.kernel.lar.PortletDataContext.getDateRangeCriteria(Ljava/lang/String;)Lcom/liferay/portal/kernel/dao/orm/Criterion;
java.lang.NoSuchMethodError: com.liferay.portal.kernel.lar.PortletDataContext.getDateRangeCriteria(Ljava/lang/String;)Lcom/liferay/portal/kernel/dao/orm/Criterion;
at com.liferay.calendar.service.persistence.CalendarBookingExportActionableDynamicQuery.addCriteria(CalendarBookingExportActionableDynamicQuery.java:73)
...........................

If calendar portlet is undeployed , remote publishing works. But calendar portlet is required for us.

Any idea on why this happens?
thumbnail
7年前 に Jorge Díaz によって更新されました。

RE: Unable to publish to remote live due to calendar error

Liferay Master 投稿: 753 参加年月日: 14/01/09 最新の投稿
Your issue is same than LPS-57810

That issue is caused because your calendar version is trying to call method
com.liferay.portal.kernel.lar.PortletDataContext.getDateRangeCriteria(Ljava/lang/String;)Lcom/liferay/portal/kernel/dao/orm/Criterion;
but that method was added in 6.2.3 CE GA4 (in LPS-53853)

Updating to 6.2 GA4, 6.2 GA5 or 6.2 GA6 will solve your issue.

My advice is to upgrade to last released 6.2 version: 6.2.5 GA6
7年前 に Smruthi Aravind によって更新されました。

RE: Unable to publish to remote live due to calendar error

New Member 投稿: 13 参加年月日: 12/11/30 最新の投稿
Thankyou Jorge.

Yeah I have seen this LPS-57810 too. Was just hopeful if there is any other way to fix this rather than replacing the server. Trying to check if getting only the calendar portlet from ga4 would fix this.
7年前 に Smruthi Aravind によって更新されました。

RE: Unable to publish to remote live due to calendar error

New Member 投稿: 13 参加年月日: 12/11/30 最新の投稿
Here is an update on the above issue.

Just taking the calendar portlet from ga4 and replacing the original calendar portlet in webapps did resolve the issue. But a new problem has arised. We are unable to create a calendar event in stage and publish it to live.
thumbnail
7年前 に Jorge Díaz によって更新されました。

RE: Unable to publish to remote live due to calendar error

Liferay Master 投稿: 753 参加年月日: 14/01/09 最新の投稿
In my opinion updating only calendar is not a good idea.

Root cause of issue is in Liferay Server.My advice is to upgrade it to 6.2 GA4 or 6.2 GA6 (avoid GA5, it has an important regression bug)