nisiyong commented on issue #6703:
URL: https://github.com/apache/skywalking/issues/6703#issuecomment-817859169


   Thanks for @zifeihan help. We found ERROR in some agent logs. And this ERROR 
due to the missing `apm-httpclient-commons-8.4.0.jar` in the agent plugins 
folder.
   ```
   ERROR 2021-04-02 18:16:42:833 ConsumeMessageThread_4 InstMethodsInter : 
class[class org.apache.http.impl.client.InternalHttpClient] after metho
   d[doExecute] intercept failure
   java.lang.NoClassDefFoundError: 
org/apache/skywalking/apm/plugin/httpclient/HttpClientPluginConfig$Plugin$HttpClient
           at 
org.apache.skywalking.apm.plugin.httpClient.v4.HttpClientExecuteInterceptor.afterMethod(HttpClientExecuteInterceptor.java:98)
           at 
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:97)
           at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java)
           at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
           at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
           at 
io.searchbox.client.http.JestHttpClient.executeRequest(JestHttpClient.java:136)
           at 
io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:70)
           at 
io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:63)
   ```
   We use the Maven Profile build agent by ourselves, and follow things make 
this ERROR:
   - Missing `apm-httpclient-commons` module in the build maven reactor. 
Because I am not aware there has a dependency relationship between plugins.
   - Forgot to modify the version, still use `8.4.0`.Build successful because 
maven pulls the dependency `apm-httpclient-commons` from the central repo.
   
   Update version to `8.4.0.1`, it builds failed, after adding the module  
`apm-httpclient-commons`, it builds successfully.
   We will deploy the new agent this week and will dump the business 
application heap again. Let see how it performs after using the new agent. I 
will record the final result here in few days.
   
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to