diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/DefaultExecutionContextSerializer.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/DefaultExecutionContextSerializer.java index dcec66fc21..ca3aeb74a7 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/DefaultExecutionContextSerializer.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/DefaultExecutionContextSerializer.java @@ -60,8 +60,8 @@ public void serialize(Map context, OutputStream out) throws IOEx Assert.notNull(value, "A null value was found"); if (!(value instanceof Serializable)) { throw new IllegalArgumentException( - "Value: [ " + value + "must be serializable." - + "Object of class [" + value.getClass().getName() + "Value: [" + value + "] must be serializable. " + + "Object of class: [" + value.getClass().getName() + "] must be an instance of " + Serializable.class); } }