Skip to content

Spring Boot 3 Native nativeCompile Fails to Set ReactiveTypeHandler#isContextPropagationPresent  #32917

@akefirad

Description

@akefirad

Bug 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions