Using Spring Chaos Monkey gives java.lang.ClassCastException: class java.lang.Class cannot be cast to class java.lang.reflect.ParameterizedType

Viewed 15

I am have been trying to attach spring chaos monkey to my application to run some tests. When I start my application in chaos-monkey profile I get the following error during startup "java.lang.ClassCastException: class java.lang.Class cannot be cast to class java.lang.reflect.ParameterizedType"

Its trying to wire in a bean which has some reflection code causing an exception. Normally the application starts fine

How can I exclude classes from get proxied ?

I tried --chaos.monkey.watcher.restController=false --chaos.monkey.watcher.exclude=. Did not help

0 Answers
Related