powered by Jive Software

XMPPError problem

I’'m having trouble sending a IQ packet with an self generated XMPP Error. In looking at the code for XMPPError.toXML the method returns xml like:

400Bad Request

However this doesn’'t match ReadPacket.parseError which parses the format:

<error code=’‘400’’>Bad Request

When I create a new XMPPError and assign it to the IQ like:

myIQ.setError(new XMPPError(“400”,“Bad Request”))

This results in IQ XML that can not be correctly parsed by ReadPacket.parseError.

Am I missing something?

Andy

Andy,

It looks like the XMPPERror.toXML method is wrong. I’‘ll make a fix now so that it’‘s in tomorrow’'s daily build. Thanks for the bug report!

Regards,

Matt