lucidsoftware / piezo

Piezo is a set of tools for operating a quartz scheduling cluster.
Apache License 2.0
53 stars 28 forks source link

Empty entry in job/trigger data map when editing job/trigger. #97

Open tysonsorensen opened 1 year ago

tysonsorensen commented 1 year ago

We are seeing an empty entry in the data map when editing jobs and/or triggers. This causes jobs to not be able to run because Quartz can't handle empty strings. This empty entry is causing Quartz to error with:

An error occured instantiating job to be executed. job= ' org.quartz.SchedulerException: Problem instantiating class at org.quartz.core.JobRunShell.initialize(JobRunShell.java:141)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:387) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(String.java:1963)
at org.quartz.simpl.PropertySettingJobFactory.setBeanProps(PropertySettingJobFactory.java:98)
at org.quartz.simpl.PropertySettingJobFactory.newJob(PropertySettingJobFactory.java:76)
at org.quartz.core.JobRunShell.initialize(JobRunShell.java:134)

Clicking edit button: fresh

Save and edit again: afterSave

The only way I can find to fix after getting into this state is to delete all the Job Data Map entries and then add the one you want back.

This is my first bug report, so please let me know if you need/want more info.