Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bean 'org.springframework.retry.annotation.RetryConfiguration' not eligible for getting processed by all BeanPostProcessors #27975

Closed
mbadziong opened this issue Jan 25, 2022 · 3 comments
Labels
for: external-project Needs a fix in external project

Comments

@mbadziong
Copy link

mbadziong commented Jan 25, 2022

Affects: Spring Boot 2.3.12.RELEASE


Given these dependencies:

plugins {
	id 'org.springframework.boot' version '2.3.12.RELEASE'
	id 'io.spring.dependency-management' version '1.0.11.RELEASE'
	id 'java'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

repositories {
	mavenCentral()
}

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-actuator'
	implementation 'org.springframework.boot:spring-boot-starter'
	implementation 'org.springframework.retry:spring-retry'
	implementation 'org.springframework:spring-aspects'

	testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
	useJUnitPlatform()
}

and having retry mechanism enabled:

@SpringBootApplication
@EnableRetry
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

}

I receive

2022-01-25 13:37:51.354  INFO 7056 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration$$EnhancerBySpringCGLIB$$4b28449d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

and retry mechanism isn't working. Similar bug has been fixed in 5.2.4 as mentioned here. I have newer spring-context version 5.2.15.RELEASE and it still reproduces.

Looks like actuator dependency is in conflict with retry.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 25, 2022
@snicoll
Copy link
Member

snicoll commented Jan 25, 2022

@mbadziong Spring Boot has ended its OSS support period so you'd need to upgrade to a supported version first. If that doesn't help, sharing your build is unfortunately nowhere near enough to give you support. Please share a small sample that we can run ourselves. You can do so by attaching a zip to this issue or sharing a link to a GitHub repository.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jan 25, 2022
@mbadziong
Copy link
Author

mbadziong commented Jan 26, 2022

demo.zip
I've upgraded to spring-boot 2.6.0 and it still occurs. Sample project attached. Thx

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jan 26, 2022
@snicoll
Copy link
Member

snicoll commented Jan 26, 2022

Thanks. I believe that RetryConfiguration is missing a role infrastructure. I've created spring-projects/spring-retry#262.

In the meantime, you can safely ignore the info log as such low-level bean isn't meant to be post-processed anyway.

@snicoll snicoll closed this as completed Jan 26, 2022
@snicoll snicoll added for: external-project Needs a fix in external project and removed status: waiting-for-triage An issue we've not yet triaged or decided on status: feedback-provided Feedback has been provided labels Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project Needs a fix in external project
Projects
None yet
Development

No branches or pull requests

3 participants