Fórum

Unable to publish to remote live due to calendar error

Smruthi Aravind, modificado 7 Anos atrás.

Unable to publish to remote live due to calendar error

New Member Postagens: 13 Data de Entrada: 30/11/12 Postagens Recentes
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
Jorge Díaz, modificado 7 Anos atrás.

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

Liferay Master Postagens: 753 Data de Entrada: 09/01/14 Postagens Recentes
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
Smruthi Aravind, modificado 7 Anos atrás.

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

New Member Postagens: 13 Data de Entrada: 30/11/12 Postagens Recentes
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.
Smruthi Aravind, modificado 7 Anos atrás.

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

New Member Postagens: 13 Data de Entrada: 30/11/12 Postagens Recentes
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
Jorge Díaz, modificado 7 Anos atrás.

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

Liferay Master Postagens: 753 Data de Entrada: 09/01/14 Postagens Recentes
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)