Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] SkyWalking Java Agent failed to work with Arthas in some cases #11651

Closed
2 of 3 tasks
lujiajing1126 opened this issue Dec 13, 2023 · 6 comments
Closed
2 of 3 tasks
Assignees
Labels
agent Language agent related. bug Something isn't working and you are sure it's a bug! java Java agent related
Milestone

Comments

@lujiajing1126
Copy link
Contributor

lujiajing1126 commented Dec 13, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Java Agent (apache/skywalking-java)

What happened

When instrumented with SW Java Agent and then run "watch" with Arthas. Different errors reported for different classes:

For example, with Java Agent 9.1.0, watching redis.clients.jedis.Jedis reported UnsupportedOperationException,

image

With both 9.1.0 and 9.0.0, watching org.apache.kafka.clients.producer.KafkaProducer reported TypeNotPresentException,

image

What you expected to happen

No Error Happened

How to reproduce

You may use Jedis 3.1.0 to test the former case and use Kafka-clients 3.1.2 to reproduce the latter one.

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@lujiajing1126 lujiajing1126 added bug Something isn't working and you are sure it's a bug! agent Language agent related. java Java agent related labels Dec 13, 2023
@lujiajing1126 lujiajing1126 added this to the Java - 9.2.0 milestone Dec 13, 2023
@lujiajing1126
Copy link
Contributor Author

@kylixs Any idea?

@wu-sheng
Copy link
Member

Is this some issue of Arthas? As the new auxiliary class, it is not available for Arthas

@kylixs
Copy link
Member

kylixs commented Dec 13, 2023

@lujiajing1126 Can you provide a demo to reproduction problem? Better put it on github

@lujiajing1126
Copy link
Contributor Author

cc @xzyJavaX would help prepare demos

@xzyJavaX
Copy link
Contributor

@kylixs https://github.com/xzyJavaX/dynamic-redefine-test. With java agent 9.1.0 to start, then start Arthas. Then
watch redis.clients.jedis.Jedis get -x 1
watch org.apache.kafka.clients.producer.KafkaProducer send -x 1

@kylixs
Copy link
Member

kylixs commented Dec 14, 2023

OK, let me have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent Language agent related. bug Something isn't working and you are sure it's a bug! java Java agent related
Projects
None yet
Development

No branches or pull requests

4 participants