spring batch exception Cannot construct java.util.Map$Entry

不羁岁月 提交于 2019-12-06 00:02:14

Had same issue when running Spring Batch Job. At:

Set<JobExecution> runningJobExecutions = jobExplorer.findRunningJobExecutions(jobName);

Solved by using jettison 1.1 instead of 1.3.2

While changing the version of the Jettison jar got rid of the error for me as well, that didn't solve the underlying problem.

In my case the ultimate cause was having two steps with the same name. Once I fixed that, the reported exception went away.

Error message though confusing points to duplicate jobs/steps. Creating unique jobs/steps helped fix the issue for me. No other change needed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!