Cassandra workshop series week3 - Unable to connect to DB in Astra using the connection bundle from gidpod
Running the java unit test from GitPod just hangs at the point its trying to connect to the DB. Any idea what i might be missing?
NOTE: secure connection bundle for my DB, killrvideo on Astra is downloaded and path provided in the DatabaseConnection class already.
Thanks in advance !
------------------------------------------------------- T E S T S ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Xmx1879m Running com.datastax.workshop.Ex02_Connect_to_Cassandra 19:34:40.371 INFO Exercise2 : ======================================== 19:34:40.373 INFO Exercise2 : Start exercise 19:34:40.375 INFO Exercise2 : File /workspace/cassandra-workshop-series/week3-AppDev-crud/secure-connect-killrvideocluster.zip located
[UPDATE] I am using Java 11. I am using classic database in Astra and not serverless. I tried the below as you suggested, however it continues to hang at the same place. Possible to run these tests in Java 11?
mvn test -Djdk.tls.client.protocols="TLSv1.2" -Dtest=com.datastax.workshop.Ex02_Connect_to_Cassandra
mvn test -Djdk.tls.client.protocols=TLSv1.2 -Dtest=com.datastax.workshop.Ex02_Connect_to_Cassandra
gitpod /workspace/cassandra-workshop-series/week3-AppDev-crud/crud-java $ mvn test -Djdk.tls.client.protocols=TLSv1.2 -Dtest=com.datastax.workshop.Ex02_Connect_to_Cassandra Picked up JAVA_TOOL_OPTIONS: -Xmx1879m [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.datastax.workshop:crud-java:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 76, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 72, column 12