[jdev] Empty <stream:features/>

Robert Norris rob at cataclysm.cx
Mon Feb 16 16:59:29 CST 2004

On Mon, Feb 16, 2004 at 04:42:36PM -0500, Bob Phan wrote:
> Okay, a little progress update on the component library for perl for
> jabber2.  It can now successfully authenticate using SASL and such.
> I re-initiate the stream and the server returns this:
> <stream:features xmlns:stream='http://etherx.jabber.org/streams'/>
> Which most likely explains why when I try to bind to a domain,
> the server debug output shows this:
> ROUT: sx (io.c:189) decoded read data (33 bytes): <bind
> name='logger'><log/></bind>
> ROUT: sx (io.c:65) completed nad: <bind name='logger'><log/></bind>
> ROUT: sx (chain.c:119) calling nad read chain
> ROUT: sx (io.c:108) tag 12 event 6 data 0x80c1600
> ROUT: Mon Feb 16 16:22:39 2004 router.c:736 invalid packet namespace,
> dropping
> ROUT: Mon Feb 16 16:22:42 2004 router.c:831 read action on fd 12
> Since binding doesn't show up as a feature and all...

Component binding doesn't show up as a feature because it predates
stream features. Your problem stems from the (as the error messages say)
your packets being in the wrong namespace.

Either declare the component namespace on the stream header:

  <stream:stream xmlns:stream='http://etherx.jabber.org/streams'

Or on the packets themselves:

  <bind xmlns='http://jabberd.jabberstudio.org/ns/component/1.0'>

Take a look at the component protocol docs for more info. It may also
help to run a j2 component (the resolver is nice and simple) in debug
mode and watch the traffic that is passed back and forth.


Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20040217/02f9734f/attachment-0002.pgp>

More information about the JDev mailing list