Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Check if your firewall is not blocking your connection. If it's not, you might need to explicitly set advertised.host.name to advertised.host.name = yourIpAddress, this forces the hosts returned to be the resolvable IP address of your VM.

java.net.ConnectException: Connection refused	at sun.nio.ch.Net.connect0(Native Method)	at sun.nio.ch.Net.connect(Net.java:454)	at sun.nio.ch.Net.connect(Net.java:446)	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)	at org.apache.cassandra.net.OutboundTcpConnectionPool.newSocket(OutboundTcpConnectionPool.java:137)	at org.apache.cassandra.streaming.DefaultConnectionFactory.createConnection(DefaultConnectionFactory.java:52)	at org.apache.cassandra.streaming.StreamSession.createConnection(StreamSession.java:236)	at org.apache.cassandra.streaming.ConnectionHandler.initiate(ConnectionHandler.java:79)	at org.apache.cassandra.streaming.StreamSession.start(StreamSession.java:223)	at org.apache.cassandra.streaming.StreamCoordinator$StreamSessionConnector.run(StreamCoordinator.java:208)	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)