NoSuchMethodError: com.google.common.net.HostAndPort.getHostText using Guava >21.0 and secure connect bundle
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
public String getHostText()
Deprecated. Use getHost() instead. This method is scheduled for removal in Guava 22.0.