EJB timers failing with JBAS014129: Could not restore timer error on BPM Suite 6 restart

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BPM Suite
    • 6.4.0

Issue

  • We are facing issue while starting the business central process due which the transactions are getting impacted. We are unable to start the server as well;
  • We see this error occasionally when we stop and start the BPMS instance:
10:32:32,920 ERROR [org.jboss.as.ejb3] (http-10.0.0.0:8080-1) JBAS014129: Could not restore timer from /opt/jboss/jboss-eap-6.4/standalone/data/timer-service-data/kie-server.kie-server.EJBTimerScheduler/37c48a84-5c3b-4944-8eef-68d573a79877: java.io.EOFException: Read past end of file
        at org.jboss.marshalling.SimpleDataInput.eofOnRead(SimpleDataInput.java:151)
        at org.jboss.marshalling.SimpleDataInput.readUnsignedByteDirect(SimpleDataInput.java:294)
        at org.jboss.marshalling.SimpleDataInput.readIntDirect(SimpleDataInput.java:343)
        at org.jboss.marshalling.SimpleDataInput.readLongDirect(SimpleDataInput.java:325)
        at org.jboss.marshalling.SimpleDataInput.readLong(SimpleDataInput.java:320)

When this error occurs, the EJB timer files are corrupted and can't be restored. So when we restart the servers, we lost the timed actions associated. Now, we found this solution: https://access.redhat.com/solutions/1401843
However, we can't accept it, because deleting the corrupted files equals to loose the timed actions. So, does exist another solution? or a workaround to avoid the file corruption?

Resolution

Until a fix1 for this issue is available in the codebase, try to address this problem with the following system property:

<property name="jbpm.overdue.timer.delay" value="60000"/>

Root Cause

It is a bug reported in jira RHBPMS-5119.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.