strange disconnect with PLAIN login

I'm writing a jabber client and in my tests with ejabberd (2.1.8) I am unable to successfully connect to the server. After completing login, I receive the stanza, and according to the ejabberd log I have been successfully authenticated. Immediately after this, however, I am disconnected with an 'xml-not-well-formed' error. I have verified that my xml is indeed well-formed, and I am able to connect to other XMPP servers without issues. Linked below are some ejabberd logs with debug info enabled:

My app:
http://zlin.dk/p/?Y2QzZTFk

A commonly used app (using MD5 auth):
http://zlin.dk/p/?ZDk2MDkz

Hopefully someone here will have some ideas!

Syndicate content