Spring boot error:java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

The solution can vary based on actual incompatibility root cause. The best way how to investigate such the issue is to follow this line:

Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

and put breakpoint into constructor of class ‘TypeNotPresentExceptionProxy’ (there is only one).

After execution in debug mode you should see what exactly is wrong and based on your findings you can decide what to do (add dependency, exclude autoconfig, …)

In my specific case the breakpoint revealed this:

java.lang.ClassNotFoundException: org.springframework.integration.config.IntegrationManagementConfigurer

As the solution I decided to exclude ‘IntegrationAutoConfiguration’ like this:

@SpringBootApplication(exclude = IntegrationAutoConfiguration.class)

Leave a Comment

tech