NoSuchMethodError: com.google.common.net.HostAndPort.getHostText using Guava >21.0 and secure connect bundle
Description
Using driver version: dse-java-driver-core-1.10.0-dse+20200217
I am seeing this error when using a version of guava higher than 21.0 in DataStax Studio and attempting to connect to Astra using the secure connect bundle.
It seems that the max guava version that works with java driver and a secure connect bundle is 21.0;
higher versions of guava create error in java driver CloudConfigFactory.getSniProxyAddress because guava HostAndPort.getHostText method was removed.
This method was deprecated in version 20.0
https://guava.dev/releases/20.0/api/docs/com/google/common/net/HostAndPort.html
@Deprecated
public String getHostText()
Deprecated. Use getHost() instead. This method is scheduled for removal in Guava 22.0.
Environment
None
Pull Requests
None
Fixed
Assignee
Reporter
Labels
None
PM Priority
None
Reproduced in
None
Affects versions
Fix versions
Pull Request
None
Doc Impact
None
Size
None
External issue ID
None
External issue ID
None