Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBC-Yugabytedb is getting issue #1

Open
jainisking opened this issue Sep 24, 2020 · 1 comment
Open

JDBC-Yugabytedb is getting issue #1

jainisking opened this issue Sep 24, 2020 · 1 comment

Comments

@jainisking
Copy link

Caused by: java.lang.IncompatibleClassChangeError: Class com.yugabyte.driver.core.policies.PartitionAwarePolicy does not implement the requested interface com.datastax.driver.core.policies.LoadBalancingPolicy
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1775) ~[cassandra-driver-core-3.8.0-yb-5.jar:na]
at com.datastax.driver.core.Cluster.init(Cluster.java:216) ~[cassandra-driver-core-3.8.0-yb-5.jar:na]
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:389) ~[cassandra-driver-core-3.8.0-yb-5.jar:na]
at com.datastax.driver.core.Cluster.connect(Cluster.java:340) ~[cassandra-driver-core-3.8.0-yb-5.jar:na]
at org.springframework.data.cassandra.config.CassandraCqlSessionFactoryBean.connect(CassandraCqlSessionFactoryBean.java:90) ~[spring-data-cassandra-2.2.5.RELEASE.jar:2.2.5.RELEASE]
at org.springframework.data.cassandra.config.CassandraCqlSessionFactoryBean.afterPropertiesSet(CassandraCqlSessionFactoryBean.java:82) ~[spring-data-cassandra-2.2.5.RELEASE.jar:2.2.5.RELEASE]
at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.afterPropertiesSet(CassandraSessionFactoryBean.java:59) ~[spring-data-cassandra-2.2.5.RELEASE.jar:2.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
... 205 common frames omitted

@jainisking
Copy link
Author

jainisking commented Sep 24, 2020

After you "jdbc-yugabytedb" instead of "postgresql" driver, getting the above issue. and when using "postgresql" data is not distributing in all nodes. Actually I am using YSQL and YCQL both in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant