I have the PubSub module almost working flawlessly... I can create nodes and subscribe to nodes. The problem comes when I try to publish something to a node. With Ejabberd 2.0.5 I was able to publish to a node if I only sent a list of an #xmlcdata element as the item. But if I send a list of #xmlels it crashes with no useful error message only:
=INFO REPORT==== 2009-09-23 13:24:37 ===
I(<0.410.0>:ejabberd_c2s:1326) : ({socket_state,gen_tcp,#Port<0.3412>,<0.409.0>}) Close session for another_10@localhost/exmpp#1253730276407777
Does anyone have any clue as to what could be causing this?
Thanks,
Tristan
Maybe ejabberd/exmpp close
Maybe ejabberd/exmpp close abruptly the client session because the stanza is not XML-valid?
If you do this making a call to a function in ejabberd or exmpp, try this: add a debug print in that function so it rints the arguments that you are providing. When you call that function the session is closed. Now connect with a desktop client (like Psi, Gajim, Tkabber...) and send the XMPP stanza using the client Raw XML Window. Check what arguments are printed by that function, and compare with your broken example.