Closed honganan closed 2 weeks ago
I don't think we supported these ways.
Are you going to fix?
Hi Wu! Yes, I am going to fix it. I am verifying it in our internal environment.
What do you mean these ways are not supported? Using an agent containing both newer and older version plugins is normal for us, and importing a commonly used dependency shouldn't affect them.
From my perspective, witnessing a class that does not belong to the framework itself is not robust enough.
If you are going to fix, good to go.
I mean the plugins don't cover your cases, this is an enhancement rather than a bug.
Cose for now. The pull request includes more context.
Search before asking
Apache SkyWalking Component
Java Agent (apache/skywalking-java)
What happened
If users are using Spring framework 6.x or Tomcat 10.x and imported
javax.servlet:javax.servlet-api
at the same time, both these two plugin would throw exceptions as their witness class and version recognization is not rigorous enough.What you expected to happen
Error logs:
How to reproduce
Just adding a
javax.servlet:javax.servlet-api
dependency in 'spring-6.x-scenario' test:then run this scenario test:
After it runs finished we can check the comparasion result and agent log, for me is
test/workspace/spring-6.x-scenario/6.0.4/skywalking-api.log
Anything else
trigger condition conclusion: case 1: using Spring 6.x together with Spring 5.x plugin or olders & imported
javax.servlet-api
dependency case 2: using Tomcat 10.x together with Tomcat 78.x plugin & importedjavax.servlet-api
dependencyAre you willing to submit a pull request to fix on your own?
Code of Conduct