I’m getting some warnings about Bean of type is not eligible for getting processed by all BeanPostProcessors(for example: not eligible for auto-proxying). How to resolve this warning.
This is a spring batch project with quartz scheduler.
I have used following code in quartz scheduler.
@Bean
public JobRegistryBeanPostProcessor jobRegistryBeanPostProcessor(JobRegistry jobRegistry, PlatformTransactionManager transactionManager) {
JobRegistryBeanPostProcessor jobRegistryBeanPostProcessor = new JobRegistryBeanPostProcessor();
jobRegistryBeanPostProcessor.setJobRegistry(jobRegistry);
return jobRegistryBeanPostProcessor;
}
While inspecting the issue this code is making the warning. Without this code I couldn’t run the job.
The error message implies that a bean post-processor is attempting to process an empty array as a bean, which is not allowed. Bean post-processors are typically designed to handle specific types of beans or implement a specific interface.
Adding some logic to check for an empty array and skipping the job might do the trick.
That bean said, you might have better luck finding a subject matter expert in a Spring community, as this is more of an application issue rather than a Render platform issue.
I’m admittedly not a Java/Spring expert. You might have better luck finding a subject matter expert reaching out to a Java/Spring community for more help troubleshooting application errors like this.