Skip to content

IllegaStateException #203

@sselvaggi

Description

@sselvaggi

Hello I'm trying to run the test from examples:

...
@OverRide
public void connect() {
SocketOptions socketOptions = new SocketOptions();
socketOptions.setReadTimeoutMillis(500);
cluster = Cluster.builder()
.addContactPoint("localhost")
.withPort(port)
.withRetryPolicy(new LoggingRetryPolicy(new RetryReads()))
.withSocketOptions(socketOptions)
.build();
session = cluster.connect("scassandra");
storeStatement = session.prepare("insert into person(first_name, last_name, age, interesting_dates) values (?,?,?,?)");
retrieveStatement = session.prepare("select * from person where first_name = ? and last_name = ?");
}
...

And I'm getting this error

java.lang.IllegalStateException: system.local is empty on localhost/127.0.0.1:8042, this should not happen at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:774) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:319)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions