Description
Please do a quick search on Github issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
ArrayIndexOutOfBoundsException when invoke SimpleJobOperator.start
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at org.springframework.batch.core.launch.support.SimpleJobOperator.start(SimpleJobOperator.java:327)
at cn.nextop.gadget.batch.trigger.AbstractTrigger.fire(AbstractTrigger.java:119)
at cn.nextop.gadget.batch.trigger.OnceTrigger.fire(OnceTrigger.java:22)
at cn.nextop.gadget.batch.impl.DefaultTriggerScheduler$Task.run(DefaultTriggerScheduler.java:102)
at cn.nextop.gadget.core.support.scheduler.impl.AbstractScheduler$RunnableJob.run(AbstractScheduler.java:204)
at cn.nextop.gadget.timer.quartz.QuartzJobDetail$MethodInvokingStatefulJob.execute(QuartzJobDetail.java:79)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Environment
spring batch 5.0
spring framework 6.0
Steps to reproduce
job parameters: DATETIME=2022-11-30 11:47:20.909
following code occur above error
SimpleJobOperator#L324
if (!parameters.isEmpty()) {
String[] keyValuePairs = parameters.split(" ");
for (String string : keyValuePairs) {
String[] keyValuePair = string.split("=");
properties.setProperty(keyValuePair[0], keyValuePair[1]);
}
}
Expected behavior
No Exception
Minimal Complete Reproducible example
Please provide a failing unit test or a minimal complete example that reproduces the issue.
Bug reports that are reproducible will take priority in resolution over reports that are not reproducible.