jamesnetherton opened a new issue, #9420:
URL: https://github.com/apache/camel-quarkus/issues/9420
PR #9413 (Quarkus 4.0.0.Beta2) adds a reflection registration to
`KeycloakProcessor` as a workaround:
```java
reflectiveClass.produce(ReflectiveClassBuildItem.builder("dev.resteasy.providers.jackson.ResteasyJacksonProvider")
.fields().build());
```
Quarkus 4.0.0.Beta2 upgraded `resteasy-jackson-provider` to 1.0.1.Final
(quarkusio/quarkus#57782), which adds a `@Context private Providers providers`
field to `ResteasyJacksonProvider`. The JSON provider that
`quarkus-keycloak-admin-resteasy-client` registers on the admin client extends
that class, and RESTEasy sets the field reflectively when the client is created.
`KeycloakAdminResteasyClientProcessor` only registers its classes with
`.methods()`, so without the workaround a native application fails at startup
with:
```
MissingReflectionRegistrationError: Cannot reflectively read or write field
'private jakarta.ws.rs.ext.Providers
dev.resteasy.providers.jackson.ResteasyJacksonProvider.providers'
```
The failure was seen in the `rest-keycloak-soap-jms` example. The native
Keycloak integration tests did not catch it because they are skipped (#9359).
The registration should be removed once Quarkus registers this field itself.
_Generated with [Claude Code](https://claude.com/claude-code) on behalf of
James Netherton_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]