We are using [Kafka CDI library|https://github.com/matzew/kafka-cdi] for consumer injection, but after redeployment of a UPS, the consumer invocation produces this exception:
15:21:29,167 ERROR [net.wessendorf.kafka.impl.DelegationKafkaConsumer] (EE-ManagedExecutorService-default-Thread-1) error dispatching received value to consumer: java.lang.reflect.InvocationTargetException ... Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:433) ... 18 more |
|