vendredi 5 février 2021

Spring: An illegal reflective access operation has occurred (spring-core-5.3.3)

When running one of our (Spring Boot) microservices, we get an illegal reflective access operation error. Since this microservices is actually pretty similar to other microservices in our setup, this is quite surprising and I have no idea what could cause it. Here's the full error text:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Users/xxx/.m2/repository/org/springframework/spring-core/5.3.3/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Is this indeed a bug in spring(-core) as the report suggest, or is there something I can (need to) do to fix or work-around this?





Aucun commentaire:

Enregistrer un commentaire