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.

Solutions on the web

via rssing.com by Unknown author, 1 year ago
Connection timed out
via GitHub by junrao
, 2 years ago
Connection refused
via GitHub by xianping
, 2 years ago
Connection refused
via GitHub by junrao
, 2 years ago
Connection refused
via rssing.com by Unknown author, 2 years ago
Connection refused
java.net.ConnectException: Connection timed out	at sun.nio.ch.Net.connect(Native Method)	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:525)	at kafka.network.BlockingChannel.connect(BlockingChannel.scala:57)	at kafka.producer.SyncProducer.connect(SyncProducer.scala:146)	at kafka.producer.SyncProducer.getOrMakeConnection(SyncProducer.scala:161)	at kafka.producer.SyncProducer.kafka$producer$SyncProducer$$doSend(SyncProducer.scala:68)	at kafka.producer.SyncProducer.send(SyncProducer.scala:112)	at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:53)	at kafka.producer.BrokerPartitionInfo.updateInfo(BrokerPartitionInfo.scala:82)	at kafka.producer.async.DefaultEventHandler$$anonfun$handle$1.apply$mcV$sp(DefaultEventHandler.scala:67)	at kafka.utils.Utils$.swallow(Utils.scala:187)	at kafka.utils.Logging$class.swallowError(Logging.scala:105)	at kafka.utils.Utils$.swallowError(Utils.scala:46)	at kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:67)	at kafka.producer.async.ProducerSendThread.tryToHandle(ProducerSendThread.scala:104)	at kafka.producer.async.ProducerSendThread$$anonfun$processEvents$3.apply(ProducerSendThread.scala:87)	at kafka.producer.async.ProducerSendThread$$anonfun$processEvents$3.apply(ProducerSendThread.scala:67)	at scala.collection.immutable.Stream.foreach(Stream.scala:548)	at kafka.producer.async.ProducerSendThread.processEvents(ProducerSendThread.scala:66)	at kafka.producer.async.ProducerSendThread.run(ProducerSendThread.scala:44)