Bean of type [] is not eligible for getting processed by all beanpostprocessors

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.

Hi Muhammed,

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.

Regards,

Matt

Thanks for your reply.
Here, I didn’t use any arrays. So how will I check for an empty array?

Hi Muhammed,

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.

Regards,

Matt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.