Skip to content

Spring Boot + Rabbit + GraalVM not nacking as expected #2510

Answered by snicoll
nandomelo asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the report, this is indeed a bug in how Spring Boot generates reflection metadata for ConfigurationProperties types in case of complex class nesting. Please follow spring-projects/spring-boot#36909 for further updates.

In the meantime, you can add the missing hints as a workaround, something like the following:

static class RabbitMissingRuntimeHints implements RuntimeHintsRegistrar {

	@Override
	public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
		hints.reflection()
				.registerTypes(TypeReference.listOf(BaseContainer.class, AmqpContainer.class, SimpleContainer.class, Retry.class, ListenerRetry.class),
						(type) -> type.withConstructor(Collections.e…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@artembilan
Comment options

@garyrussell
Comment options

@artembilan
Comment options

@artembilan
Comment options

@artembilan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nandomelo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants