[Bug]
#11821
Replies: 2 comments 5 replies
-
Which version of Kafka are you using? We only verified these, https://github.com/apache/skywalking-java/blob/main/test/plugin/scenarios/kafka-scenario/support-version.list |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Apache SkyWalking Component
Java Agent (apache/skywalking-java)
What happened
I use in docker java-agent
What you expected to happen
ERROR 2024-01-23 15:29:15.188 3a23de32c3114df5aaed5f117047f960-0-C-1 InstMethodsInter : class[class org.apache.kafka.clients.consumer.KafkaConsumer] after method[pollForFetches] intercept failure
java.lang.ClassCastException: org.apache.kafka.clients.consumer.internals.Fetch incompatible with java.util.Map
at org.apache.skywalking.apm.plugin.kafka.KafkaConsumerInterceptor.afterMethod(KafkaConsumerInterceptor.java:64)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:97)
at org.apache.kafka.clients.consumer.KafkaConsumer.pollForFetches(KafkaConsumer.java)
at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1254)
at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1227)
at org.apache.kafka.clients.consumer.KafkaConsumer$$FastClassBySpringCGLIB$$11173828.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
at org.apache.kafka.clients.consumer.KafkaConsumer$$EnhancerBySpringCGLIB$$262c25f1.poll()
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollConsumer(KafkaMessageListenerContainer.java:1601)
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doPoll(KafkaMessageListenerContainer.java:1576)
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke$original$Ndtu6fc3(KafkaMessageListenerContainer.java:1377)
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke$original$Ndtu6fc3$accessor$d6AyCJFE(KafkaMessageListenerContainer.java)
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer$auxiliary$LUiXHu1Q.call(Unknown Source)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java)
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:1291)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:832)
How to reproduce
bi-server:
image: /bi-base-image:2.2.0
deploy:
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
depends_on:
- bi-server-jar
- bi-server-lib
volumes:
- ../file:/file
- ../log:/logs
- ../backup:/backup
- ./config:/config
- ../application/:/app
- /data/skywalking-agent/:/home/skywalking-agent
entrypoint: "sh /wait.sh -d pgsql:5432 -s 3 -c 'java -javaagent:/home/skywalking-agent/skywalking-agent.jar -Dskywalking.agent.service_name= -Dskywalking.collector.backend_service=*** -jar -Ddb.password=${DB_PASSWORD} -Dspring.profiles.active=prd -Dspring.config.additional-location=file:/config/ /app/bi-server.jar'"
networks:
- ${NETWORK_NAME}
environment:
- TZ=Asia/Shanghai
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions