History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QUARTZ-419
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: James House
Reporter: John Eichelsdorfer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Quartz Scheduler

CRON_EXPRESSION database field size too small

Created: 25/Apr/06 12:04 PM   Updated: 22/Mar/07 02:53 PM
Component/s: Triggers
Affects Version/s: 1.5.2
Fix Version/s: 1.6.1

Environment: all


 Description  « Hide
We have a screen select list where a person can create a schedule on the fly. In this case the user is validly creating a monthly cron schedule. If they select all days of the month or a large number of them, the cron string ends up being fairly large. Still this is a valid cron format even though it goes over the max 80 characters allowed in Quartz.

Database schema changes are not fun, but increasing the field size here would allow full cron strings to occur. I suggest maybe a size of 120 for a cron expression rather then 80.

Error is below:


ERROR [24042006 11:15:53] - Job Scheduler: Failed to be able to schedule job
with detail=JobDetail '1_jt.15285_js':
jobClass: 'com.expert.MixedJobRunnable isStateful: true
isVolatile: false isDurable: false requestsRecovers: true and
trigger=Trigger '1_jt_tr.15285_js_tr': triggerClass: 'org.quartz.CronTrigger
isVolatile: false calendar: 'null' misfireInstruction: 0 nextFireTime: Mon Apr
24 12:00:00 EDT 2006 <Servlet.Engine.Transports : 1>
(SchedulerRequest.java:307)
org.quartz.JobPersistenceException: Couldn't store trigger: ORA-12899: value
too large for column "EXPERT2"."QRTZ_CRON_TRIGGERS"."CRON_EXPRESSION" (actual:
96, maximum: 80)
 [See nested exception: java.sql.SQLException: ORA-12899: value too large for
column "EXPERT2"."QRTZ_CRON_TRIGGERS"."CRON_EXPRESSION" (actual: 96, maximum:
80)
]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeTrigger
(JobStoreSupport.java:964)
at org.quartz.impl.jdbcjobstore.JobStoreTX.storeJobAndTrigger
(JobStoreTX.java:168)
at org.quartz.core.QuartzScheduler.scheduleJob
(QuartzScheduler.java:613)


 All   Comments   Change History      Sort Order:
James House - [16/Mar/07 11:39 PM ]
sure, we'll go ahead and make the default size bigger, but in general, users should just tailor the columns to their needs (especially the blob columns).

Henri Yandell - [22/Mar/07 02:53 PM ]
Applied to trunk (r677) and then merged to the 1.6 branch (r678).