Strophe Connection Error

613 views
Skip to first unread message

John Peterson

unread,
Feb 27, 2011, 11:24:50 AM2/27/11
to Strophe
Hi Guys,
I've got a multi user chat up and running, but after the first couple
message stanzas are exchanged I get this error:

Error: 200, OK, An error occured preventing completion of the request.

I haven't found much information about this error out there, but I can
say for sure that this is not a browser issue (happens in Chrome and
IE) and it is not a server issue (happens in OpenFire and eJabberd).
I've also seen an error associated with the session Id, but this
doesn't always appear:

Error: 404 invalid SID.

I'm wondering if this is a session problem, like the session is timing
out or something?

Here is the specific sequence of stanzas I'm sending once the user has
logged in:

Initial presence to log in or create the room

xmpp._connection.send(
$pres({ from: xmpp._nickname + "@" + serverDomain, to: xmpp._roomName
+ "/" + xmpp._nickname })
.c('x', { xmlns: xmpp.MUC_NAMESPACE }));

if I get a 210 back, I send the following IQ to confirm the room's
configuration:

xmpp._connection.send(
$pres({ from: xmpp._nickname + "@" + serverDomain, to: xmpp._roomName
+ "/" + xmpp._nickname })
.c('x', { xmlns: xmpp.MUC_NAMESPACE }));


Then I allow users to send the following message stanzas:

xmpp._connection.send(
$msg({ to: xmpp._roomName, type: "groupchat" }).c('body').t(body));

The stanzas seem ok, so I'm thinking this is a problem with the
connection. Any help here is really really super appreciated.

Thanks,
John

Jack Moffitt

unread,
Feb 27, 2011, 4:09:53 PM2/27/11
to str...@googlegroups.com
> I've got a multi user chat up and running, but after the first couple
> message stanzas are exchanged I get this error:
>
> Error: 200, OK, An error occured preventing completion of the request.

Do you get this from XMPP or HTTP? Which part of the stack is this
error occuring in?

> I've also seen an error associated with the session Id, but this
> doesn't always appear:
>
> Error: 404 invalid SID.

This has occurred because your session has timed out, you sent an
incorrect RID, or the server has restarted or something and no longer
remembers you.


It would be easier to help debug if you send the wire traffic as
reported by rawInput() and rawOutput(), since this includes the RIDs
and such; just be sure to omit the authentication stanzas at the
beginning.

jack.

John Peterson

unread,
Feb 27, 2011, 8:57:53 PM2/27/11
to Strophe
Hi Jack,
First off thanks a TON for replying. I've got your book and it's been
enormously helpful. I wouldn't have gotten this far without it.

> Do you get this from XMPP or HTTP? Which part of the stack is
this
> error occuring in?

I think this is coming from OpenFire, which would make it an XMPP
error, but it is being communicated via HTTP since I'm writing a web
based multi user chat client.

I get the following error in Fiddler:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
<title>Error 404 Invalid SID.</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<pre>Invalid SID.</pre>
<p>RequestURI=/http-bind/</p><p><i><small><a href="http://
jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>
</body>
</html>

> It would be easier to help debug if you send the wire traffic as
> reported by rawInput() and rawOutput(), since this includes the
RIDs
> and such; just be sure to omit the authentication stanzas at the
> beginning.

Here's the RawIO from Strophe. This is running off of a local VM so
I'm not too worried about the authentication bits:

0132» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'/>"
0131» OUTPUT: "<body rid='1927172748' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109' type='terminate'>"
0130» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
type='terminate' condition='policy-violation'/>"
0129» OUTPUT: "<body rid='1927172747' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>dapibus venenatis erat, eu faucibus
purus aliquam faucibus. Aenean eleifend ante eu orci blandit eget
pellentesque nunc porta. Phasellus vitae turpis urna, in egestas nibh.
Donec tempor magna vel tellus laoreet feugiat. Vestibulum quis eros at
sapien molestie sodales. Donec id leo non erat scelerisque pretium.
Nam aliquet nulla eget ligula venenatis ultricies. Sed in ipsum eros,
eu luctus ipsum. Sed accumsan, dolor feugiat sagittis rutrum, ante
metus rutrum augue, non posuere nisi purus et enim. Sed tristique orci
quis massa fermentum auctor. Aenean at leo ac est convallis aliquam.
Ut ultricies tellus nec odio gravida non vehicula ipsum euismod.
Quisque ut neque id orci aliquet pretium eu sit amet est. Maecenas
quam enim, elementum aliquam laoreet vitae, varius id tortor.
Curabitur vitae lacinia neque. Maecenas n"
0128» OUTPUT: "<body rid='1927172746' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0127» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0126» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172745'/>"
0125» OUTPUT: "<body rid='1927172745' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0124» OUTPUT: "<body rid='1927172744' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0123» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>dapibus venenatis erat, eu faucibus purus aliquam faucibus.
Aenean eleifend ante eu orci blandit eget pellentesque nunc porta.
Phasellus vitae turpis urna, in egestas nibh. Donec tempor magna vel
tellus laoreet feugiat. Vestibulum quis eros at sapien molestie
sodales. Donec id leo non erat scelerisque pretium. Nam aliquet nulla
eget ligula venenatis ultricies. Sed in ipsum eros, eu luctus ipsum.
Sed accumsan, dolor feugiat sagittis rutrum, ante metus rutrum augue,
non posuere nisi purus et enim. Sed tristique orci quis massa
fermentum auctor. Aenean at leo ac est convallis aliquam. Ut ultricies
tellus nec odio gravida non vehicula ipsum euismod. Quisque ut neque
id orci aliquet pretium eu sit amet est. Maecenas quam enim, elementum
aliquam laoreet vitae, varius id tortor. Curabitur vitae lacinia
neque. Maecenas n"
0122» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0121» OUTPUT: "<body rid='1927172743' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>dapibus venenatis erat, eu faucibus
purus aliquam faucibus. Aenean eleifend ante eu orci blandit eget
pellentesque nunc porta. Phasellus vitae turpis urna, in egestas nibh.
Donec tempor magna vel tellus laoreet feugiat. Vestibulum quis eros at
sapien molestie sodales. Donec id leo non erat scelerisque pretium.
Nam aliquet nulla eget ligula venenatis ultricies. Sed in ipsum eros,
eu luctus ipsum. Sed accumsan, dolor feugiat sagittis rutrum, ante
metus rutrum augue, non posuere nisi purus et enim. Sed tristique orci
quis massa fermentum auctor. Aenean at leo ac est convallis aliquam.
Ut ultricies tellus nec odio gravida non vehicula ipsum euismod.
Quisque ut neque id orci aliquet pretium eu sit amet est. Maecenas
quam enim, elementum aliquam laoreet vitae, varius id tortor.
Curabitur vitae lacinia neque. Maecenas n"
0120» OUTPUT: "<body rid='1927172742' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0119» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>klasllafsald;fasd"
0118» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172741'/>"
0117» OUTPUT: "<body rid='1927172741' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>klasllafsald;fasd"
0116» OUTPUT: "<body rid='1927172740' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0115» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>klskreopwirewjfkdsfksda"
0114» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172739'/>"
0113» OUTPUT: "<body rid='1927172739' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>klskreopwirewjfkdsfksda"
0112» OUTPUT: "<body rid='1927172738' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0111» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0110» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172737'/>"
0109» OUTPUT: "<body rid='1927172737' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0108» OUTPUT: "<body rid='1927172736' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0107» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0106» OUTPUT: "<body rid='1927172735' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0105» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>fsdsdfdskajflksdjfskldjfds"
0104» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172734'/>"
0103» OUTPUT: "<body rid='1927172734' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>fsdsdfdskajflksdjfskldjfds"
0102» OUTPUT: "<body rid='1927172733' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0101» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>rewrewrewrew"
0100» OUTPUT: "<body rid='1927172732' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0099» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0098» OUTPUT: "<body rid='1927172731' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0097» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>rewewrewrewr"
0096» OUTPUT: "<body rid='1927172730' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0095» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>fdasfdsfsda"
0094» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172729'/>"
0093» OUTPUT: "<body rid='1927172729' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>fdasfdsfsda"
0092» OUTPUT: "<body rid='1927172728' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0091» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0090» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172727'/>"
0089» OUTPUT: "<body rid='1927172727' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0088» OUTPUT: "<body rid='1927172726' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0087» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0086» OUTPUT: "<body rid='1927172725' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0085» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0084» OUTPUT: "<body rid='1927172724' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0083» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0082» OUTPUT: "<body rid='1927172723' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0081» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0080» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172722'/>"
0079» OUTPUT: "<body rid='1927172722' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0078» OUTPUT: "<body rid='1927172721' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0077» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0076» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172720'/>"
0075» OUTPUT: "<body rid='1927172720' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0074» OUTPUT: "<body rid='1927172719' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0073» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0072» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172718'/>"
0071» OUTPUT: "<body rid='1927172718' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0070» OUTPUT: "<body rid='1927172717' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0069» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0068» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172716'/>"
0067» OUTPUT: "<body rid='1927172716' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0066» OUTPUT: "<body rid='1927172715' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0065» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0064» OUTPUT: "<body rid='1927172714' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0063» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0062» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172713'/>"
0061» OUTPUT: "<body rid='1927172713' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0060» OUTPUT: "<body rid='1927172712' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0059» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0058» OUTPUT: "<body rid='1927172711' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0057» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0056» OUTPUT: "<body rid='1927172710' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0055» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0054» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172709'/>"
0053» OUTPUT: "<body rid='1927172709' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0052» OUTPUT: "<body rid='1927172708' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0051» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0050» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172707'/>"
0049» OUTPUT: "<body rid='1927172707' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0048» OUTPUT: "<body rid='1927172706' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0047» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0046» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172705'/>"
0045» OUTPUT: "<body rid='1927172705' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0044» OUTPUT: "<body rid='1927172704' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0043» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0042» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172703'/>"
0041» OUTPUT: "<body rid='1927172703' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0040» OUTPUT: "<body rid='1927172702' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0039» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0038» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172701'/>"
0037» OUTPUT: "<body rid='1927172701' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>consectetur adipiscing elit. Cras
sit amet ante magna, nec pulvinar justo. Cras a massa at nibh sodales
ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit sed
erat convallis ultrices. Nullam et elit at urna suscipit pharetra nec
eu nibh. Mauris scelerisque consectetur mi, non vulputate "
0036» OUTPUT: "<body rid='1927172700' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0035» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0034» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172699'/>"
0033» OUTPUT: "<body rid='1927172699' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0032» OUTPUT: "<body rid='1927172698' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0031» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0030» OUTPUT: "<body rid='1927172697' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0029» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>consectetur adipiscing elit. Cras sit amet ante magna, nec
pulvinar justo. Cras a massa at nibh sodales ultrices. Donec ut
laoreet lacus. Suspendisse vestibulum velit sed erat convallis
ultrices. Nullam et elit at urna suscipit pharetra nec eu nibh. Mauris
scelerisque consectetur mi, non vulputate "
0028» OUTPUT: "<body rid='1927172696' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0027» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>fdsfdskklsdfdsa"
0026» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172695'/>"
0025» OUTPUT: "<body rid='1927172695' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>fdsfdskklsdfdsa"
0024» OUTPUT: "<body rid='1927172694' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0023» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0022» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>http://
gametime.dev.com/GameTimePages/GameTimeHuddle.aspx?
List=f3a91551%2Deef9%2D404d%2Da1f0%2D28aa86701055&ID=6&Source=http%3A
%2F%2Fgametime%2Edev%2Ecom%2FLists%2FGameTimeHuddles%2FAllItems
%2Easpx&ContentTypeId=0x01002167C000000000000000000000000002007BC281C0CB89344BB9AE873D8E66E210"
0021» OUTPUT: "<body rid='1927172693' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0020» OUTPUT: "<body rid='1927172692' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0019» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0018» OUTPUT: "<body rid='1927172691' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0017» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>message from sophia"
0016» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
ack='1927172690'/>"
0015» OUTPUT: "<body rid='1927172690' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>message from sophia"
0014» OUTPUT: "<body rid='1927172689' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0013» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>Tauris
scelerisque consectetur mi, non vulputate consectetur adipiscing elit.
Cras sit amet ante magna, nec pulvinar justo. Cras a massa at nibh
sodales ultrices. Donec ut laoreet lacus. Suspendisse vestibulum velit
sed erat convallis ultrices. Nullam et elit at urna suscipit pharetra
nec eu nibh. Mauris scelerisque consectetur mi, non vulputate
consectetur adipiscing elit. Cras sit amet ante magna, nec pulvinar
justo. Cras a massa at nibh sodales ultrices. Donec ut laoreet lacus.
Suspendisse vestibulum velit sed erat convallis ultrices. Nullam et
elit at urna suscipit pharetra nec eu nibh. Mauris scelerisque
consectetur mi, non vulputate "
0012» OUTPUT: "<body rid='1927172688' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'/>"
0011» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>b8883c251ef6d6d6c483fbf7ea6f07270e847d8d"
0010» OUTPUT: "<body rid='1927172687' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0009» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"
0008» OUTPUT: "<body rid='1927172686' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0007» INPUT: "<body xmlns='http://jabber.org/protocol/
httpbind'>sbiagioni@scooby/24331109"
0006» OUTPUT: "<body rid='1927172685' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109'>"
0005» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'
xmlns:stream='http://etherx.jabber.org/streams'>zlib"
0004» OUTPUT: "<body rid='1927172684' xmlns='http://jabber.org/
protocol/httpbind' sid='24331109' to='scooby' xml:lang='en'
xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/>"
0003» INPUT: "<body xmlns='http://jabber.org/protocol/httpbind'>"

It's also worth mentioning that after I log into the client, if I go
to OpenFire Administration and look at the sessions, I can see the
users, but their Presence is always "offline". This is true from the
moment a user logs in. This could mean that there is something wrong
with the way I'm initially logging in.

I don't think the server is restarting. Judging from the Fiddler
message, I'd say there is something wrong with the SessionId. Any
suggestions to get this up and running would be great.

Thanks a lot for your help. I'm a relative newbie here.

-- John

Jack Moffitt

unread,
Feb 28, 2011, 12:47:45 AM2/28/11
to str...@googlegroups.com
2011/2/27 John Peterson <jpeter...@gmail.com>:

> 0129» OUTPUT: "<body rid='1927172747' xmlns='http://jabber.org/
> protocol/httpbind' sid='24331109'>dapibus venenatis erat, eu faucibus
> purus aliquam faucibus. Aenean eleifend ante eu orci blandit eget
> pellentesque nunc porta. Phasellus vitae turpis urna, in egestas nibh.
> Donec tempor magna vel tellus laoreet feugiat. Vestibulum quis eros at
> sapien molestie sodales. Donec id leo non erat scelerisque pretium.
> Nam aliquet nulla eget ligula venenatis ultricies. Sed in ipsum eros,
> eu luctus ipsum. Sed accumsan, dolor feugiat sagittis rutrum, ante
> metus rutrum augue, non posuere nisi purus et enim. Sed tristique orci
> quis massa fermentum auctor. Aenean at leo ac est convallis aliquam.
> Ut ultricies tellus nec odio gravida non vehicula ipsum euismod.
> Quisque ut neque id orci aliquet pretium eu sit amet est. Maecenas
> quam enim, elementum aliquam laoreet vitae, varius id tortor.
> Curabitur vitae lacinia neque. Maecenas n"

This stanza appears completely invalid, and the server would be right
to terminate your connection.

Is this what you are actually sending, or have you lost the XML tags
in posting this? It's hard to tell from this, but since it seems to
appear in both directions, I'm going to assume the latter. Perhaps you
can re-post the log with the tags included? If your e-mail client is
the one eating them, you could create a Gist (http://gist.github.com)
to post it.

jack.

John Peterson

unread,
Feb 28, 2011, 9:42:01 AM2/28/11
to Strophe
Hi Jack,
Sorry about that I should've checked it more carefully. I created a
gist for this here: https://gist.github.com/847397.

I'm guessing the line where I get: type='terminate' condition='policy-
violation', is a red flag. What are your thoughts? Any debugging
techniques or tips would be greatly appreciated. Also, please let me
know if any other information is needed.

Thanks,
John

On Feb 28, 12:47 am, Jack Moffitt <j...@metajack.im> wrote:
> 2011/2/27 John Peterson <jpeterson7...@gmail.com>:

Jack Moffitt

unread,
Feb 28, 2011, 11:40:12 AM2/28/11
to str...@googlegroups.com
> I'm guessing the line where I get: type='terminate' condition='policy-
> violation', is a red flag.  What are your thoughts?  Any debugging
> techniques or tips would be greatly appreciated.  Also, please let me
> know if any other information is needed.

So it's clear that the server has terminated your connection for what
it thinks is a policy violation, but it doesn't say what policy you
violated ;(

Some potential ones: 1) sent too many stanzas too fast, 2) sent too
big of stanzas too fast, 3) either of #1 or #2 but specifically for
group chat rooms.

I don't see anything else that gives a clue. It looks like a normal
interaction until the terminate. Even the SID/RID stuff is in line
just fine.

Do the Openfire logs not contain any useful information? I would think
that it would log policy violations :)

jack.

John Peterson

unread,
Mar 1, 2011, 7:27:08 AM3/1/11
to Strophe
Hi Jack,
Thanks again for the feedback. It's helping to point me in the right
direction. I've managed to isolate this issue. It seems to happen
ONLY when there are two or more sessions to the MUC open in the same
browser. If I have one session open on one machine, and one open on
another machine, everything works great. Shortly after I open a
second session on either machine, OpenFire kicks the second user off
because of a policy violation. This happens even though I setup
OpenFire's Conflict Policy to never kick off users due to resource
conflicts.

OpenFire doesn't log anything in the Error category, but it has this
warning:

2011.03.01 06:51:14 Deliverable unavailable for 3867350622
2011.03.01 06:51:15 Client provided invalid session: 698366ac.
[192.168.137.1]

It also logs this exception in the Debug category:

2011.03.01 07:22:02 JettyLog: EXCEPTION
java.io.IOException: An existing connection was forcibly closed by the
remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:122)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:282)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)

Here's a gist with the Strophe logs: https://gist.github.com/849051.

Does the browser issue sound like some type of red flag? It seems
like there's some OpenFire policy that is being violated here, which
causes it to bump the user. If you've got any ideas here it would be
really appreciated.

Thanks,
John

Jack Moffitt

unread,
Apr 30, 2011, 4:36:00 PM4/30/11
to str...@googlegroups.com
> Does the browser issue sound like some type of red flag?  It seems
> like there's some OpenFire policy that is being violated here, which
> causes it to bump the user.  If you've got any ideas here it would be
> really appreciated.

It sounds like Openfire is limiting the sessions per IP. Usually this
is a configurable limit and you'd get some kind of reasonable error
message when you hit it.

jack.

Reply all
Reply to author
Forward
0 new messages