Spring Boot 3 Native `nativeCompile` Fails to Set `ReactiveTypeHandler#isContextPropagationPresent`
See original GitHub issueBug Report for Spring Boot 3 Native (GraalVM 22.3)
Having a simple Spring Boot application (generated on start.spring.io) building the native image (via ./gradlew nativeCompile) fails to “process field ReactiveTypeHandler#isContextPropagationPresent” due to “SLF4JServiceProvider: LogbackServiceProvider not a subtype” error which doesn’t make sense since the class is a subtype of the provider. The full log message is:
...
> Task :nativeCompile
...
Field org.springframework.core.ReactiveAdapterRegistry#mutinyPresent set to false at build time
Processing of field org.springframework.web.servlet.mvc.method.annotation.ReactiveTypeHandler#isContextPropagationPresent skipped due the following error : org.slf4j.spi.SLF4JServiceProvider: ch.qos.logback.classic.spi.LogbackServiceProvider not a subtype
Field org.springframework.boot.autoconfigure.web.format.WebConversionService#JSR_354_PRESENT set to false at build time
...
Also adding the io.micrometer:context-propagation doesn’t change anything, still same error log.
To be clear, I’m not fully sure what are the consequence of the above, since I’m new to GraalVM. I’m filling this since the field seems to be directly in the handler. Also I’m not sure where exactly I need to post this issue. There’s so many moving parts 🙂 here. Apologies in advance. Let me know if I need to provide more information. Thanks.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Thanks, no need, I will handle it via https://github.com/spring-projects/spring-framework/issues/29406, you can close this issue on Boot side I think.
Interesting, can reproduce. @sdeleuze Any idea?
It doesn’t break the build, it’s “just” a warning. We should fix it nonetheless.