NullPointerException in Cluster#connect

Description

We had to take a dead node out of our cluster, and we probably have missed a step in doing so. When a client attempts to connect, it usually fails with the following stack. Sometimes the connect succeeds.

Caused by: java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
at java.util.regex.Matcher.reset(Matcher.java:308)
at java.util.regex.Matcher.<init>(Matcher.java:228)
at java.util.regex.Pattern.matcher(Pattern.java:1088)
at com.datastax.driver.core.VersionNumber.parse(VersionNumber.java:58)
at com.datastax.driver.core.Host.setVersion(Host.java:67)
at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:448)
at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:227)
at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:170)
at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:970)
at com.datastax.driver.core.Cluster$Manager.newSession(Cluster.java:1006)
at com.datastax.driver.core.Cluster$Manager.access$200(Cluster.java:885)
at com.datastax.driver.core.Cluster.connect(Cluster.java:170)
at com.datastax.driver.core.Cluster.connect(Cluster.java:189)

Environment

java version "1.7.0_40", fedora 13, Cassandra 2.0.2

Pull Requests

None

Activity

Show:
Sylvain Lebresne
February 26, 2014, 7:09 AM

Thanks for the report. Simple fix pushed.

Fixed

Assignee

Sylvain Lebresne

Reporter

J Robert Ray

Affects versions

Fix versions