wu-sheng commented on issue #3478: Kafka plugin not work on Spring Boot and 
Spring Kafka
URL: https://github.com/apache/skywalking/issues/3478#issuecomment-532227110
 
 
   Such as from this error log, we are intercepting `KafkaProducer` 
constructor, right? 
   
   > java.lang.ClassCastException: java.util.ArrayList cannot be cast to 
java.lang.String
   at 
org.apache.skywalking.apm.plugin.kafka.ProducerConstructorMapInterceptor.onConstruct(ProducerConstructorMapInterceptor.java:34)
   
   ```
   objInst.setSkyWalkingDynamicField(StringUtil.join(';', ((String) 
config.get("bootstrap.servers")).split(",")));
   ```
   
   We did String cast directly, clearly for Spring Kafka, it is not a String 
type, right?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to