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

Misleading error "No alternative cluster is found to connect" #14574

Closed
tkountis opened this issue Feb 25, 2019 · 0 comments
Closed

Misleading error "No alternative cluster is found to connect" #14574

tkountis opened this issue Feb 25, 2019 · 0 comments

Comments

@tkountis
Copy link
Contributor

@tkountis tkountis commented Feb 25, 2019

In an attempt to connect to wrongly configured cluster, we get this error.
The error message is a bit misleading, especially the wording 'alternative', since this was the 1st attempt to connect the client to the cluster.

Other than the message, the exception was valid. The cluster was configured with SSL whereas the client without.

Caused by: java.lang.IllegalStateException: No alternative cluster is found to connect.
	at com.hazelcast.client.connection.nio.ClusterConnectorServiceImpl.connectToClusterInternal(ClusterConnectorServiceImpl.java:217)
	at com.hazelcast.client.connection.nio.ClusterConnectorServiceImpl.access$000(ClusterConnectorServiceImpl.java:61)
	at com.hazelcast.client.connection.nio.ClusterConnectorServiceImpl$1.call(ClusterConnectorServiceImpl.java:276)
	at com.hazelcast.client.connection.nio.ClusterConnectorServiceImpl$1.call(ClusterConnectorServiceImpl.java:272)
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
	at java.util.concurrent.FutureTask.run(FutureTask.java)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
	at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64)
	at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80)
@tkountis tkountis added this to the 3.12 milestone Feb 25, 2019
@sancar sancar self-assigned this Feb 25, 2019
@sancar sancar closed this in 0c43c90 Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants