An unexpected connection driver error occured (Exception message: Connection reset)

3,831 views
Skip to first unread message

Dinesh Kumar

unread,
Apr 8, 2020, 3:38:30 AM4/8/20
to rabbitmq-users
Hi All,

I am getting below error when I trying to publish the message,

2020-04-08 12:27:13.800  INFO 20444 --- [nio-9145-exec-8] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: url:5671
2020-04-08 12:27:13.808  WARN 20444 --- [0.2.234.51:5671] c.r.c.impl.ForgivingExceptionHandler     : An unexpected connection driver error occured (Exception message: Connection reset)

org.springframework.amqp.AmqpIOException: java.io.IOException

Please find the below details in application.properties file,

##RabbitMQ spring.rabbitmq.host=url spring.rabbitmq.port=5671 spring.rabbitmq.username=user spring.rabbitmq.password=pass

Also I am using the below connection to create ssl connection,

com.rabbitmq.client.ConnectionFactory conFactory = new com.rabbitmq.client.ConnectionFactory();
  conFactory.setUsername(rabbitMqConfigModel.getUserName());
  conFactory.setPassword(rabbitMqConfigModel.getPassword());
  conFactory.setPort(rabbitMqConfigModel.getPort());
  conFactory.setHost(rabbitMqConfigModel.getHost());
  
  try {
   conFactory.useSslProtocol();
  } catch (KeyManagementException | NoSuchAlgorithmException e) {
   log.error(this.getClass().getSimpleName(), "error in setting ssl protocol", e);
  }
  CachingConnectionFactory connectionFactory = new CachingConnectionFactory(conFactory);

But I am getting above mention IOException while try to publish through application.

If I am using 5672 in properties file I am able to publish the messages..

Please see the attachment of connection details wat ever I am using RabbitMq.

Regards,
Dinesh


Connection.jpg

Wesley Peng

unread,
Apr 8, 2020, 3:58:07 AM4/8/20
to rabbitm...@googlegroups.com
Please follow the steps below to verify your SSL setup,

For instance, there was maybe a certificate problem exists.

Regards 

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/c167a2bf-ec14-497d-9959-05a408359f3e%40googlegroups.com.

Dinesh Kumar

unread,
Apr 8, 2020, 5:46:19 AM4/8/20
to rabbitmq-users
Hi Wesley,

I am not understand the below link.. Could you please help me on that..
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

Dinesh Kumar

unread,
Apr 8, 2020, 5:54:56 AM4/8/20
to rabbitmq-users
Also will highlight one thing.. same configuration is working fine in the other application


On Wednesday, 8 April 2020 13:28:07 UTC+5:30, Wesley Peng wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

Arnaud Cogoluègnes

unread,
Apr 9, 2020, 7:42:51 AM4/9/20
to rabbitm...@googlegroups.com
Please provide information, like versions (client, Spring Boot,
server) and the server logs.

What are the differences with the "other application"?
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/f9966ee1-ee90-451d-b731-78590f72c1bd%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages