'Getting java.nio.channels.ClosedChannelException at sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected in azure service bus
We are getting the below exception continuously in azure service bus client, kindly help us to resolve this.
{
"id":"1780511708",
"outerId":"0",
"type":"java.lang.RuntimeException",
"message":"connectionId[MF_7487d6_1648134060148] IO Sink was interrupted before reactor closed.",
"parsedStack":[
{
"level":0,
"method":"com.azure.core.amqp.implementation.ReactorDispatcher.signalWorkQueue",
"line":152,
"fileName":"ReactorDispatcher.java"
},
{
"level":1,
"method":"com.azure.core.amqp.implementation.ReactorDispatcher.invoke",
"line":105,
"fileName":"ReactorDispatcher.java"
}
Solution 1:[1]
ClosedChannelException tells you that the connection has been closed. It usually means either:
- your application closed the connection somewhere else before you write the message or
- your peer closed the connection before reading your message.
If you fix the above you should not see the ClosedChannelException anymore.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | RajkumarMamidiChettu-MT |
