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

Session is null #23

Open
RicardoPRamalho opened this issue Nov 1, 2016 · 1 comment
Open

Session is null #23

RicardoPRamalho opened this issue Nov 1, 2016 · 1 comment

Comments

@RicardoPRamalho
Copy link

For some reason, when I inject an instance of CassandraSession, the com.datastax.driver.core.Session inside it is always null, if I tries to reconnect using "reconnect()" method and execute a query, it throws an exception with the message: "Cassandra session is not ready for use yet".

Could you provide an useful example of how to use vertx-cassandra, or figure out what I'm doing wrong?

Thanks

@adrianluisgonzalez
Copy link
Member

If you have a simple reproducer I can take a look.

My guess is you are not waiting for CassandraSession.onReady(). Have you had a look at the integration tests?
https://github.com/ef-labs/vertx-cassandra/blob/develop/vertx-cassandra/src/test/java/com/englishtown/vertx/cassandra/integration/IntegrationTestBase.java#L75

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

2 participants