You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error(String.format("Encountered an error executing step %s in job %s", name, stepExecution.getJobExecution().getJobInstance().getJobName()), e);
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 ..."
The text was updated successfully, but these errors were encountered:
Sam-Kruglov
changed the title
Step name is null in logs
Step name is null in logs when scoped
Dec 6, 2021
spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java
Line 237 in e8e3f5d
I have my step defined as
@JobScope
, so it's wrapped in a proxy. During debugging at this line,this.getName()
returns the name butthis.name
returnsnull
. So, this log above prints"Encountered an error executing step null ..."
The text was updated successfully, but these errors were encountered: