Closed GoogleCodeExporter closed 9 years ago
Hello jinhfan,
It's likely that you have error during startup of the scheduler. What the log
output as it start up and print here any exception stack trace. Perhaps you
didn't have the JDBC jars installed correctly? In which directory have you
place these JDBC jars?
Original comment by saltnlight5
on 26 Jan 2012 at 2:07
I find out where the problem was. It is due to extra space at the end of each
property in the configure file, when specifying the autoInit, autoStart, wait
for job to complete properties.
After the extra spaces were removed from the configuration file, the app starts
fine.
To avoid similar situation happening for others, I would sugest that we trim
the property value before convert it to boolean.
Following is my suggested code change to myschedule.service.SchedulerService
class.
autoInit = Boolean.parseBoolean(props.getProperty(AUTO_INIT_KEY,
"true").trim());
autoStart = Boolean.parseBoolean(props.getProperty(AUTO_START_KEY, "false").trim());
preventAutoStartRemoteScheduler =
Boolean.parseBoolean(props.getProperty(PREVENT_AUTO_START_REMOTE_SCHEDULER_KEY,
"false").trim());
waitForJobsToComplete =
Boolean.parseBoolean(props.getProperty(WAIT_FOR_JOBS_TO_COMPLETES_KEY,
"false").trim());
Thank you for writing this application!
Original comment by jinh...@gmail.com
on 28 Jan 2012 at 3:25
I see. I will add this improvement in. Thank you for the finding jinhfan!
Original comment by saltnlight5
on 28 Jan 2012 at 4:13
Fixed. See Release-2.4.1
Original comment by saltnlight5
on 28 Jan 2012 at 5:18
Original issue reported on code.google.com by
jinh...@gmail.com
on 26 Jan 2012 at 12:11Attachments: