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

compileAotJava Failed for Actuator and Webflux #33278

Closed
crimsonvspurple opened this issue Nov 20, 2022 · 2 comments
Closed

compileAotJava Failed for Actuator and Webflux #33278

crimsonvspurple opened this issue Nov 20, 2022 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@crimsonvspurple
Copy link

A blank project created from the initializr using

  • Spring Boot 3 (RC2)
  • Actuator
  • Webflux

Generated the following error during build. I just started trying out Boot 3. This used to work on Boot 2.

> Task :compileAotJava FAILED
<removed>\build\generated\aotSources\org\springframework\boot\actuate\autoconfigure\endpoint\web\reactive\WebFluxEndpointManagementContextConfiguration__BeanDefinitions.java:72: error: ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor has private access in WebFluxEndpointManagementContextConfiguration
  private static BeanInstanceSupplier<WebFluxEndpointManagementContextConfiguration.ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor> getServerCodecConfigurerEndpointObjectMapperBeanPostProcessorInstanceSupplier(
                                                                                   ^
<removed>\build\generated\aotSources\org\springframework\boot\actuate\autoconfigure\endpoint\web\reactive\WebFluxEndpointManagementContextConfiguration__BeanDefinitions.java:74: error: ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor has private access in WebFluxEndpointManagementContextConfiguration
    return BeanInstanceSupplier.<WebFluxEndpointManagementContextConfiguration.ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor>forFactoryMethod(WebFluxEndpointManagementContextConfiguration.class, "serverCodecConfigurerEndpointObjectMapperBeanPostProcessor", EndpointObjectMapper.class);
                                                                              ^
<removed>\build\generated\aotSources\org\springframework\boot\actuate\autoconfigure\endpoint\web\reactive\WebFluxEndpointManagementContextConfiguration__BeanDefinitions.java:82: error: ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor has private access in WebFluxEndpointManagementContextConfiguration
    Class<?> beanType = WebFluxEndpointManagementContextConfiguration.ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor.class;
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 20, 2022
@crimsonvspurple
Copy link
Author

Just tested with 3.0.0-SNAPSHOT and it works there. Close if needed.

@bclozel
Copy link
Member

bclozel commented Nov 21, 2022

This has been resolved in #33106
Thanks for trying our RC versions!

@bclozel bclozel added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 21, 2022
@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants