powered by Jive Software

BoshException on initiating a client connection

When trying to initiate a client connection using BOSH we are getting a BoshException as shown below:

XXXXXXXXXX >> 8/10/2012 12:22:51 AM UTC

XmppMatrixClient exception

Severity: Error

LocalServerTime: 8/9/201205:22:51.929 PM

Method:XXXXXXXXXXX.XmppMatrixClientWrapper.Wrapper_OnError

ThreadId: 115

Machine: XXXXXXXXX

LogEntry.Parameters: { Exception = BoshException :BoshException

StackTrace:

Innerex: System.Net.WebException: The remote server returned an error: (404) NotFound.

atSystem.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

at#=qkO8LD$tLv9kz2qEYUNK1r4oVJLh7lIa3xh5LgSLgSWM=.#=qtMLsMgo9XLBzg7xG9EqdJQ==(I AsyncResult#=qhi$mkstXe7xa6vAIh_mtAg==)

; State = null; XmppUsername =XXXXXX; HostName = null; }

The above is the log entry that shows the exception type and the inner exception.

Does anybody know what might cause the above exception to the thrown?

Thanks

No log entries were found related to the BoshException that was encountered by the client. Is there any way to figure out what might have caused this issue?

How do you have the web server setup for proxying the BOSH connection? The 404 may be coming from your webserver before it reaches openfire.

The ASP.NET MVC application that is hosted on web server’s IIS is responsible for creating the XMPP connection. The attempt to connect succeeded on the first attempt but for some reason the web application tried to reconnect and thats when we saw the BoshException.