org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused

  1. 0

    SpringCloudStream - AggregateApplicationBuilder Expects Broker

    Stack Overflow | 2 months ago | Karthik Palanivelu
    org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused
  2. 0

    Docker within PCF - unable to connect to rabbitmq via AMQP (spring cloud bus)

    Stack Overflow | 8 hours ago | Raghu
    org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
  3. 0

    Getting expection on running spring boot turbine stream

    Stack Overflow | 3 months ago | Saurabh Kumar
    org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connection refused with RabbitMQ 3.3.0

    GitHub | 3 years ago | juliennawak
    java.net.ConnectException: Connection refused
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)[na:1.8.0_60]
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[na:1.8.0_60]
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[na:1.8.0_60]
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[na:1.8.0_60]
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[na:1.8.0_60]
    6. java.net.Socket.connect(Socket.java:589)[na:1.8.0_60]
    6 frames
  3. RabbitMQ Java Client
    ConnectionFactory.newConnection
    1. com.rabbitmq.client.impl.FrameHandlerFactory.create(FrameHandlerFactory.java:32)[amqp-client-3.6.3.jar:na]
    2. com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:811)[amqp-client-3.6.3.jar:na]
    3. com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:725)[amqp-client-3.6.3.jar:na]
    3 frames
  4. Spring RabbitMQ Support
    RabbitAdmin.declareExchange
    1. org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:296)[spring-rabbit-1.6.1.RELEASE.jar:na]
    2. org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:547)[spring-rabbit-1.6.1.RELEASE.jar:na]
    3. org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils$1.createConnection(ConnectionFactoryUtils.java:90)[spring-rabbit-1.6.1.RELEASE.jar:na]
    4. org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.doGetTransactionalResourceHolder(ConnectionFactoryUtils.java:140)[spring-rabbit-1.6.1.RELEASE.jar:na]
    5. org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactoryUtils.java:76)[spring-rabbit-1.6.1.RELEASE.jar:na]
    6. org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1374)[spring-rabbit-1.6.1.RELEASE.jar:na]
    7. org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1367)[spring-rabbit-1.6.1.RELEASE.jar:na]
    8. org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1343)[spring-rabbit-1.6.1.RELEASE.jar:na]
    9. org.springframework.amqp.rabbit.core.RabbitAdmin.declareExchange(RabbitAdmin.java:156)[spring-rabbit-1.6.1.RELEASE.jar:na]
    9 frames
  5. org.springframework.cloud
    OutputBindingLifecycle.start
    1. org.springframework.cloud.stream.binder.rabbit.RabbitMessageChannelBinder.declareExchange(RabbitMessageChannelBinder.java:491)[spring-cloud-stream-binder-rabbit-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    2. org.springframework.cloud.stream.binder.rabbit.RabbitMessageChannelBinder.buildOutboundEndpoint(RabbitMessageChannelBinder.java:355)[spring-cloud-stream-binder-rabbit-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    3. org.springframework.cloud.stream.binder.rabbit.RabbitMessageChannelBinder.doBindProducer(RabbitMessageChannelBinder.java:407)[spring-cloud-stream-binder-rabbit-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    4. org.springframework.cloud.stream.binder.rabbit.RabbitMessageChannelBinder.doBindProducer(RabbitMessageChannelBinder.java:102)[spring-cloud-stream-binder-rabbit-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    5. org.springframework.cloud.stream.binder.AbstractBinder.bindProducer(AbstractBinder.java:184)[spring-cloud-stream-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    6. org.springframework.cloud.stream.binding.ChannelBindingService.bindProducer(ChannelBindingService.java:113)[spring-cloud-stream-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    7. org.springframework.cloud.stream.binding.BindableProxyFactory.bindOutputs(BindableProxyFactory.java:206)[spring-cloud-stream-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    8. org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:57)[spring-cloud-stream-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    8 frames
  6. Spring Context
    AbstractApplicationContext.finishRefresh
    1. org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    5. org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:112)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:874)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6 frames
  7. Spring Boot
    EmbeddedWebApplicationContext.finishRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    1 frame
  8. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  9. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    5 frames
  10. org.springframework.cloud
    AggregateApplicationBuilder.<init>
    1. org.springframework.cloud.stream.aggregate.AggregateApplicationBuilder.<init>(AggregateApplicationBuilder.java:60)[spring-cloud-stream-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    2. org.springframework.cloud.stream.aggregate.AggregateApplicationBuilder.<init>(AggregateApplicationBuilder.java:56)[spring-cloud-stream-1.0.3.RELEASE.jar:1.0.3.RELEASE]
    2 frames
  11. com.capitalone.digitalmessagingsystem
    Application.main
    1. com.capitalone.digitalmessagingsystem.stream.config.Application.main(Application.java:18)[classes/:na]
    1 frame
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_60]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_60]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60]
    4 frames
  13. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)[idea_rt.jar:na]
    1 frame