powered by Jive Software

Bug Report: Roster.as

Hi,

I was getting the following exception thrown:

TypeError: Error #1034: Type Coercion failed: cannot convert org.jivesoftware.xiff.core::EscapedJID@16276129 to org.jivesoftware.xiff.core.UnescapedJID.

at org.jivesoftware.xiff.im::Roster/handleEvent()[C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\xiff\src\org\jivesoftware\xiff\im\Roster.as:461 ]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at org.jivesoftware.xiff.core::XMPPConnection/handleIQ()[C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\xiff\src\org\jivesoftware\xiff\core\XMPPConnect ion.as:785]

at org.jivesoftware.xiff.core::XMPPBOSHConnection/processResponse()[C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\xiff\src\org\jivesoftware\xiff\core\XMPPBOSHCon nection.as:235]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at flash.utils::Timer/tick()

I noticed the problem in Roster.as - the JID it gets back from the RosterItem is an EscapedJID, but everything that it tries to use is an UnescapedJID. I’ve attached a patch, please give thoughts/feedback.

Thanks,

Karthik
roster.patch (2865 Bytes)