spring-integration icon indicating copy to clipboard operation
spring-integration copied to clipboard

ERROR o.s.i.m.i.MqttPahoMessageDrivenChannelAdapter - Lost connection: Connection lost; retrying...

Open cmm1 opened this issue 2 years ago • 4 comments

Hello, we have encountered a problem, this problem will occur in our production environment, using version 5.5.9, but I can guarantee that the client id is unique, but the connection will be automatically restored soon, no reason has been found, we hope to use your experience to help us, thank your very much!

“ ERROR o.s.i.m.i.MqttPahoMessageDrivenChannelAdapter - Lost connection: Connection lost; retrying...”

cmm1 avatar Nov 27 '23 02:11 cmm1

First of all we develop here a library of components and really don't experience with target production projects. Secondly, it would be great to have some simple project from you to be able to reproduce on our side. And third: 5.5.x is out of Open Source support since last week, so it would be great if you can upgrade your solution to the latest supported version of Spring Integration and let us know how it behaves.

artembilan avatar Nov 27 '23 14:11 artembilan

I also encountered the same problem. May I ask if it has been resolved now? Thank you

yulin98 avatar Apr 12 '24 03:04 yulin98

I also encountered the same problem. May I ask if it has been resolved now? Thank you

We doubled the default values for the 'CompletionTimeout' and 'RecoveryInterval' properties, respectively. I did not find the core problem, but guessed that too many devices were causing the response to time out.

cmm1 avatar Apr 12 '24 03:04 cmm1

That's strange. The completionTimeout is already 30 seconds by default... The reconnect must be handled by the client. Apparently both of you are using very old, out of support, Spring Integration version.

Would be great if you share your experience after upgrading.

Thanks

artembilan avatar Apr 12 '24 17:04 artembilan

Closed as Works as Designed. Or at least the problem is not on Spring Integration side.

artembilan avatar Sep 24 '25 16:09 artembilan