Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring JdbcExecutionContextDao中的序列化程序为null_Spring_Nullpointerexception_Batch Processing - Fatal编程技术网

Spring JdbcExecutionContextDao中的序列化程序为null

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

我使用的是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.interval}
"/>
</task:scheduled-tasks>
查找非活动执行并将其删除。我们有一个长时间运行的批处理作业,需要超过1分钟

当SimpleJobService中的removeInactiveExecutions运行时,它尝试从数据库获取执行项,但由于NullPointerException而失败。 失败时关闭连接,如果主批处理作业使用相同的连接,则会失败,并出现连接已关闭错误

我看到有两个JIRA在spring board批次2155和批次2183上饲养。但由于无效或按照预期的解决方案工作,它被关闭

我还可以看到有人试图解决这个问题

但这在发行版中仍然不可用。 这也在旧春论坛上讨论过,没有任何决议

之所以发生这种情况,是因为序列化程序在JdbcExecutionContextDao中为null,并因NullPointerException而失败