Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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] redision enhance fail and no trace log produce #12225

Closed
2 of 3 tasks
begrow opened this issue May 15, 2024 · 0 comments
Closed
2 of 3 tasks

[Bug] redision enhance fail and no trace log produce #12225

begrow opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working and you are sure it's a bug!

Comments

@begrow
Copy link

begrow commented May 15, 2024

Search before asking

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

Apache SkyWalking Component

Java Agent (apache/skywalking-java)

What happened

I am using skywalking9.7.0 and agent9.2.0, but I found no trace produce for my java program which start with skywalking agent. the error log was produced in skywalking-api.log. I seems the redision enhance fail. my java project is using org.redision:3.26.0, and the redisson plugin is apm-redisson-3.x-plugin-9.2.0.jar under the director skywalking agent.

ERROR 2024-05-15 09:35:29.422 main InstMethodsInter : class[class org.redisson.connection.Single ConnectionManager] after method[createClient] intercept failure java.lang.NoSuchMethodError: 'org.redisson.config.Config org.redisson.connection.ConnectionManager.getCfg()' at org.apache.skywalking.apm.plugin.redisson.v3.ConnectionManagerInterceptor.afterMethod(ConnectionManagerInterceptor.java:49) at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:97) at org.redisson.connection.MasterSlaveConnectionManager.createClient(MasterSlaveConnectionManager.java) at org.redisson.connection.MasterSlaveConnectionManager.$sw$original$createClient$4h97ri3(MasterSlaveConnectionManager.java:323) at org.redisson.connection.MasterSlaveConnectionManager.$sw$original$createClient$4h97ri3$accessor$$sw$t83ld71(MasterSlaveConnectionManager.java) at org.redisson.connection.MasterSlaveConnectionManager$$sw$auxiliary$fqo1r32.call(Unknown Source) at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86) at org.redisson.connection.MasterSlaveConnectionManager.createClient(MasterSlaveConnectionManager.java) at org.redisson.connection.MasterSlaveEntry.setupMasterEntry(MasterSlaveEntry.java:117) at org.redisson.connection.MasterSlaveConnectionManager.doConnect(MasterSlaveConnectionManager.java:223) at org.redisson.connection.MasterSlaveConnectionManager.connect(MasterSlaveConnectionManager.java:196) at org.redisson.config.ConfigSupport.createConnectionManager(ConfigSupport.java:220) at org.redisson.Redisson.<init>(Redisson.java:71) at org.redisson.Redisson.create(Redisson.java:116) at org.redisson.spring.starter.RedissonAutoConfiguration.redisson(RedissonAutoConfiguration.java:330) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :

What you expected to happen

. my java project is using org.redision:3.26.0, and the redisson plugin is apm-redisson-3.x-plugin-9.2.0.jar. It seems thea are the matched version for redision lib and redision agent plugins. but why the enhance error occur?

How to reproduce

just use org.redision:3.26.0, and start with skywalking java agent

Anything else

nothing

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

@begrow begrow added the bug Something isn't working and you are sure it's a bug! label May 15, 2024
@apache apache locked and limited conversation to collaborators May 15, 2024
@wu-sheng wu-sheng converted this issue into discussion #12226 May 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working and you are sure it's a bug!
Projects
None yet
Development

No branches or pull requests

1 participant