Spring JdbcExecutionContextDao中的序列化程序为null
我使用的是SpringBatch核心2.2.6和SpringBatch管理器1.3.0.M1。在spring batch admin manager自己的execution-context.xml中 有一个预定的作业Spring JdbcExecutionContextDao中的序列化程序为null,spring,nullpointerexception,batch-processing,Spring,Nullpointerexception,Batch Processing,我使用的是SpringBatch核心2.2.6和SpringBatch管理器1.3.0.M1。在spring batch admin manager自己的execution-context.xml中 有一个预定的作业 <task:scheduled-tasks> <task:scheduled ref="jobService" method="removeInactiveExecutions" fixed-delay="$ {batch.job.service.reaper.i
<task:scheduled-tasks>
<task:scheduled ref="jobService" method="removeInactiveExecutions" fixed-delay="$
{batch.job.service.reaper.interval}
"/>
</task:scheduled-tasks>
查找非活动执行并将其删除。我们有一个长时间运行的批处理作业,需要超过1分钟
当SimpleJobService中的removeInactiveExecutions运行时,它尝试从数据库获取执行项,但由于NullPointerException而失败。
失败时关闭连接,如果主批处理作业使用相同的连接,则会失败,并出现连接已关闭错误
我看到有两个JIRA在spring board批次2155和批次2183上饲养。但由于无效或按照预期的解决方案工作,它被关闭
我还可以看到有人试图解决这个问题
但这在发行版中仍然不可用。
这也在旧春论坛上讨论过,没有任何决议
之所以发生这种情况,是因为序列化程序在JdbcExecutionContextDao中为null,并因NullPointerException而失败