Hi All,
Im trying to upgrade cassandra-driver-core from 2.1.10.1 to 3.5.0. But the apache server version is at Cassandra 2.1.13.
Below piece of connecting snippet used to work on 2.1.10.1
cluster = Cluster.builder().addContactPoints("myhost").withPort(535).build();
session = cluster.connect("mykeyspace");
But with 3.50 java driver, Im seeing below error:
java.lang.ExceptionInInitializerError
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1476)
at com.datastax.driver.core.Cluster.init(Cluster.java:160)
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:342)
at com.datastax.driver.core.Cluster.connect(Cluster.java:292)
at .....my calling code origin......
Caused by: java.lang.ArrayIndexOutOfBoundsException: -17
at io.netty.util.collection.IntObjectHashMap.indexOf(IntObjectHashMap.java:294)
at io.netty.util.collection.IntObjectHashMap.get(IntObjectHashMap.java:99)
at com.datastax.driver.core.Metadata.indexByCaseInsensitiveHash(Metadata.java:343)
at com.datastax.driver.core.Metadata.<clinit>(Metadata.java:49)
... 36 more
Can someone let me know what am I doing wrong?
I can confirm that driver 3.5.0 does support server 2.1.13.
Appreciate the help.
Thanks
hbs