Legacy Knowledge Base
Published Jun. 30, 2025

"Interval is either equal or less than 0" error is produced during the upgrade and checkInterval is reset to zero

Written By

Jorge Diaz

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

When upgrade from 6.2 to 2024.Q4, following error is produced in the log files:

2025-02-11 20:48:20.910 ERROR [main][ROOT:47] bundle com.liferay.journal.web:5.0.180 (1238)[com.liferay.journal.web.internal.scheduler.CheckArticleSchedulerJobConfiguration(10891)] : The activate method has thrown an exception
java.lang.IllegalArgumentException: Interval is either equal or less than 0

And we are also detecting that the checkInterval property in com.liferay.journal.configuration.JournalServiceConfiguration.config is automatically reset to 0 after the upgrade is executed.

Environment

  • Liferay DXP 7.4+
  • Upgrade from Liferay Portal 6.2

Resolution

During the upgrade from 7.0 to 7.1, the checkInterval property for web content, located in the <liferay-home>/osgi/configs/com.liferay.journal.configuration.JournalServiceConfiguration.config file, was changed from storing the time milliseconds using a long variable to store it in minutes using an integer variable. This change was introduced in LPS-73759.

An upgrade process, UpgradeCheckIntervalConfiguration, was also introduced to convert existing values from milliseconds to minutes by dividing by 60000.

If you are upgrading from 6.2 to 7.4+ and set the checkInterval property to a value like 15, the upgrade process will treat this as milliseconds and divide it by 60000. Due to rounding, this results in the checkInterval being set to 0, causing the error.

To resolve this issue, use one of the following options:

  • Option 1: Do not set the checkInterval property in the com.liferay.journal.configuration.JournalServiceConfiguration.config file during the upgrade. Set it to the desired value in minutes after the upgrade is complete.
  • Option 2: Before the upgrade, set the checkInterval property to the desired value in milliseconds during the upgrade. For example, for a 15-minute interval, set the value to 900000 (15 * 60000). The upgrade process will convert it from milliseconds to minutes.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base