I have a sample application on java 11,14,15 which is not able to connect to Astra with the 3.8.0 driver.
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: 646adb8d-4395-43ac-a50d-048518df238b-us-east1.db.astra.datastax.com/<unresolved>:32403:7491c008-93fb-49b9-a184-48067543c043 (com.datastax.driver.core.exceptions.OperationTimedOutException: [646adb8d-4395-43ac-a50d-048518df238b-us-east1.db.astra.datastax.com/<unresolved>:32403:7491c008-93fb-49b9-a184-48067543c043] Operation timed out))
I have created a 4.9.0 example (to show working app framework):
And here is the 3.8.0 example (minimal changes from app source):
fwiw: the app source works with 3.8.0 driver on openjdk1.8, not 11+
Testing command is:
mvn clean compile exec:java -Dexec.mainClass=App.java
Some things I have tried:
- TLS argument in mvn command
- increasing timeout with socketOptions
- feeding TLS to maven env variable
- trying to execute as jar w/ tls args
Can anyone provide a work around?