[jdev] Server suddenly closing <stream:stream> on <presence><status/></presence>. Why?

Sean Gilbertson sean.gilbertson at gmail.com
Sat Jan 12 20:22:45 CST 2008


Hi all,

Okay, so I'm developing a Jabber client for my Sidekick (phone/mobile
internet device), and I'm having issues when my code actually runs on
the phone.  I'm thinking it's not an SDK issue, though; I'm thinking
that my connection to the Jabber server is getting messed up --
especially because my code works fine in the simulator.

So here's my current problem: When I send a <presence><status>My
status here!</status></presence> tag to the server, it immediately
sends me a <iq/> and then, immediately following that, a
</stream:stream>, which closes the connection.  My input loop then
closes, and the whole thing is kaput.  So, it appears that the Jabber
server I'm connected to is having some sort of problem with me, and I
can't tell what.

Keep in mind that in the SDK simulator, the <presence/> block sends
fine, and then the server sends me an <iq/>, and then all of the
presence information for people on my Contact list -- which is what's
expected!  And the stream is definitely not terminated.

So, why would this happen?  Anyone who can help me with it definitely
gets a triple-scoop ice cream on ME!

Thanks so much!!
Sean

-- 
"Courage in an untrained mind leads to cruelty, and in a trained mind
it leads to hope and compassion." ~ P.J. Saher



More information about the JDev mailing list