Subject: Matrix.OnError - There is an unclosed literal string. Line 1, position 98305.
Hi Alex,
Spec Details
MatriX Version: 1.6.0.3
.Net Version: 4.0
Connection Type: HTTP (I realize a socket connection is more reliable, but we have users that have to use http due to the server that they're connecting to. We do have cases where socket connections are ok, and we are using them. However, for some of our users it has to be http or nothing.)
We’re experiencing the following error below where users are being disconnected from the chat server without warning.
Error:
Matrix.OnError(object sender, ExceptionEventArgs error)
error.Exception.GetType(): Matrix.Net.BoshException
error.Exception.Message: BoshException
error.Exception.GetBaseException().GetType(): System.Xml.XmlException
error.Exception.GetBaseException().Message: There is an unclosed literal string. Line 1, position 98305.
Stack Trace of Matrix.OnError: In File
In the past I've seen similar errors when the message payload is to big with an example being the roster. This was usually resolved upon shortening the amount of data that the server is sending to the client. However, in this case the last message that the server is sending to the client is the presence message shown below which in no way matches the size given in the error message.
From what I can see some exception is occurring within MatriX that I can't pinpoint. We've tried looking at Wireshark to see the packets coming to the client in case a message was received that never reached the 'OnReceiveXml' event however, it showed that the presence message shown above is indeed the last message sent from the Chat Server. Looking at the stack trace on the 'OnError' event (shown in the attachment file "Chat Trace Client - 9_27_18_5_41.txt" at the bottom of the page) I'm wondering if 'HttpWebRequest' has something to do with the error which I know you've talked about in other comments.
Have you seen a problem like this before? We could try updating to a latter version of MatriX however, we're wondering if you've discovered this issue and whither it has been resolved in a latter version (If possible we would like to stick with .Net 4.0 to avoid introducing any new issues in to our software). Please let us know if there's anything else we can give you that may help in understanding what the problem is.
Thanks for your help.
Spec Details
MatriX Version: 1.6.0.3
.Net Version: 4.0
Connection Type: HTTP (I realize a socket connection is more reliable, but we have users that have to use http due to the server that they're connecting to. We do have cases where socket connections are ok, and we are using them. However, for some of our users it has to be http or nothing.)
We’re experiencing the following error below where users are being disconnected from the chat server without warning.
Error:
Matrix.OnError(object sender, ExceptionEventArgs error)
error.Exception.GetType(): Matrix.Net.BoshException
error.Exception.Message: BoshException
error.Exception.GetBaseException().GetType(): System.Xml.XmlException
error.Exception.GetBaseException().Message: There is an unclosed literal string. Line 1, position 98305.
Stack Trace of Matrix.OnError: In File
In the past I've seen similar errors when the message payload is to big with an example being the roster. This was usually resolved upon shortening the amount of data that the server is sending to the client. However, in this case the last message that the server is sending to the client is the presence message shown below which in no way matches the size given in the error message.
- <body xmlns="http://jabber.org/protocol/httpbind" ack="2095285817">
- <presence xmlns="jabber:client" to="admin.mcojw-agent@mcojwvmgw/MatriX" from="mcorz@conference.mcojwvmgw/admin.mcojw">
- <show>chat</show>
- <x xmlns="http://jabber.org/protocol/muc#user">
- <item jid="admin.mcojw-agent@mcojwvmgw/MatriX" affiliation="owner" role="moderator" />
- </x>
- </presence>
- </body>
From what I can see some exception is occurring within MatriX that I can't pinpoint. We've tried looking at Wireshark to see the packets coming to the client in case a message was received that never reached the 'OnReceiveXml' event however, it showed that the presence message shown above is indeed the last message sent from the Chat Server. Looking at the stack trace on the 'OnError' event (shown in the attachment file "Chat Trace Client - 9_27_18_5_41.txt" at the bottom of the page) I'm wondering if 'HttpWebRequest' has something to do with the error which I know you've talked about in other comments.
Have you seen a problem like this before? We could try updating to a latter version of MatriX however, we're wondering if you've discovered this issue and whither it has been resolved in a latter version (If possible we would like to stick with .Net 4.0 to avoid introducing any new issues in to our software). Please let us know if there's anything else we can give you that may help in understanding what the problem is.
Thanks for your help.
The author has attached one file to this post:
ChatTrace.zip 86 kBytes
You have no permission to open this file.
You have no permission to open this file.