You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "shichaoyuan (via GitHub)" <gi...@apache.org> on 2023/09/04 02:43:08 UTC

[GitHub] [skywalking] shichaoyuan opened a new issue, #11293: [Bug] elasticsearch-6.x-plugin IndicesClientAnalyzeMethodsInterceptor java.lang.NoClassDefFoundError:

shichaoyuan opened a new issue, #11293:
URL: https://github.com/apache/skywalking/issues/11293

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   Java Agent (apache/skywalking-java)
   
   ### What happened
   
   ```
   ERROR 2023-09-01 17:19:05.362 pool-34-thread-98 InstMethodsInter : class[class org.elasticsearch.client.IndicesClient] before method[analyze] intercept failure
   java.lang.NoClassDefFoundError: org/elasticsearch/action/admin/indices/analyze/AnalyzeRequest
   	at org.apache.skywalking.apm.plugin.elasticsearch.v6.interceptor.IndicesClientAnalyzeMethodsInterceptor.beforeMethod(IndicesClientAnalyzeMethodsInterceptor.java:42)
   	at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:76)
   	at org.elasticsearch.client.IndicesClient.analyze(IndicesClient.java)
   	at 
   ```
   
   Currently I am using elasticsearch 7.9.3 version, but the effective plugin version is v6.
   
   The parameters of the `analyze` method are different between 6.x and 7.x versions:
   * 6.x `org.elasticsearch.action.admin.indices.analyze.AnalyzeRequest`
   * 7.x `org.elasticsearch.client.indices.AnalyzeRequest`
   
   
   
   ### What you expected to happen
   
   adapt the corresponding plugins for different versions
   
   ### How to reproduce
   
   using elasticsearch 7.9.3 version
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [X] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng closed issue #11293: [Bug] elasticsearch-6.x-plugin IndicesClientAnalyzeMethodsInterceptor java.lang.NoClassDefFoundError:

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #11293: [Bug] elasticsearch-6.x-plugin IndicesClientAnalyzeMethodsInterceptor java.lang.NoClassDefFoundError:
URL: https://github.com/apache/skywalking/issues/11293


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org