programmerCs commented on issue #2738: class[class com.mongodb.MongoClient] 
before method[execute] intercept failure java.lang.NullPointerException
URL: https://github.com/apache/skywalking/issues/2738#issuecomment-495493150
 
 
   I has find the problem. the problem is in 
org.apache.skywalking.apm.plugin.mongodb.v3.MongoDBMethodInterceptor#onConstruct
 method.
   if mongodb driver version 3.2.x.
   the code cluster.getDescription().getServerDescriptions() will throw 
java.lang.NoSuchMethodError: 
com.mongodb.connection.ClusterDescription.getServerDescriptions()Ljava/util/List
   because  ClusterDescription.getServerDescriptions() is since mongodb driver 
3.3
   

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


With regards,
Apache Git Services

Reply via email to