spring-batch
spring-batch copied to clipboard
Step name is null in logs when scoped
https://github.com/spring-projects/spring-batch/blob/e8e3f5da085c6fedad54094b5d410b06f57f1594/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java#L237
I have my step defined as @JobScope
, so it's wrapped in a proxy. During debugging at this line, this.getName()
returns the name but this.name
returns null
. So, this log above prints "Encountered an error executing step null ..."
I tried to reproduce this problem but was unable to do so. Can you provide a small sample that shows this behavior? Thanks!