Replies: 1 comment
-
https://github.com/apache/skywalking-java/tree/main/test/plugin/scenarios/redisson-scenario This is how it works for now. We can't tell at your side, you could cross check. |
Beta Was this translation helpful? Give feedback.
0 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 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?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions