This leads to an exception, when values exceed the max value of int:
Couldn't retrieve trigger: Invalid data conversion: requested conversion would result in a loss of precision of 9223372036854775807
org.quartz.JobPersistenceException: Couldn't retrieve trigger: Invalid data conversion: requested conversion would result in a loss of precision of 9223372036854775807 [See nested exception: java.sql.SQLDataException: Invalid data conversion: requested conversion would result in a loss of precision of 9223372036854775807]
at app//org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1539)
at app//org.quartz.impl.jdbcjobstore.JobStoreSupport$12.execute(JobStoreSupport.java:1527)
at app//org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3864)
at app//org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:95)
at app//org.quartz.impl.jdbcjobstore.JobStoreSupport.executeWithoutLock(JobStoreSupport.java:3800)
at app//org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1524)
To fix this, SimplePropertiesTriggerPersistenceDelegateSupport needs to load these values using java.sql.ResultSet#getLong().
PS: I understand that this project seems to be abandoned (#1134), so I'm reporting this for posterity's sake.
When loading extended trigger properties,
SimplePropertiesTriggerPersistenceDelegateSupport
loads properties of typelong
asint
s:https://github.com/quartz-scheduler/quartz/blob/a5c4d27e963f51097f9b2777489d310a88897ca4/quartz/src/main/java/org/quartz/impl/jdbcjobstore/SimplePropertiesTriggerPersistenceDelegateSupport.java#L162-L163
This leads to an exception, when values exceed the max value of
int
:To fix this,
SimplePropertiesTriggerPersistenceDelegateSupport
needs to load these values usingjava.sql.ResultSet#getLong()
.PS: I understand that this project seems to be abandoned (#1134), so I'm reporting this for posterity's sake.