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:
{code} 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 {code} To reproduce the exception, [this branch| http https :// example github .com /polinankoleva/aerogear-unifiedpush-server/tree/AGPUSH-2125 ] can be used. |
|