Hi,
I'm having a problem where it seems that the SERIALIZED_CONTEXT is set to empty string at some point during the batch execution (it is set to null at insert at the beginning of the execution). I have tried adding break points in the JdbcExecutionContextDao to see where this is happening. However I haven't found anything, the persistSerializedContext() method is always executed with setNull.
The problem occurs when I restart a failed batch, as the value in SERIALIZED_CONTEXT is not null, it is read and attempted parsed with JSON and fails.
Have anyone experienced similar problems? I'm using SB 2.0.1, but an upgrade to 2.0.2 didn't help either.
Changing the code in the ExecutionContextRowMapper to check for null and empty strings would help, however I'm not sure if that is something that you'd like to implement.
Are there any other places in Spring Batch where BATCH_JOB_EXECUTION_CONTEXT is updated, besides the persistSerializedContext in JdbcExecutionContextDao


Reply With Quote
