NullReferenceException from UaChannelBase.CreateUaBinaryChannel #2770
Labels
bug
A bug was identified and should be fixed.
needs investigation
Pending Feedback
Pending on further feedbacks or clarification from person who create the issue.
Type of issue
Current Behavior
we get a NullReferenceException in CreateUaBinaryChannel resulting from the messageContext paramter which is null.
This null comes from the ClientBase.MessageContext property, because m_channel is null.
We assume the m_channel is set to null in a first attempt to Reconnect:
DoReconnectAsync is called and handles as ServiceResultException. Here m_session.DetachChannel() ist called
Then with the next Reconect attempt it has the null m_channel resulting in the NullReferenceException
We are using the Nuget version 1.5.374.78, but I don't think anything with respect to this problem has changed.
This is our callstack (note the line numbers are completely messed up, I think because of the async calls, but anyway it is from the mention version).
After this the session is not able to reconnect anymore, running into the NullReferenceException again and again.
Expected Behavior
Session recovery should work
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: