XIFF error

We are using the openfire chat server in our project. We are using the XMPPConnection obj.connect method to connect to the openfire server. The reference XIFF we are using is org.igniterealtime.xiff. We are getting below error while trying to connect to the openfire server:

TypeError: Error #1034: Type Coercion failed: cannot convert org.igniterealtime.xiff.collections.events::CollectionEvent@7d7d4d9 to mx.events.CollectionEvent.

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at org.igniterealtime.xiff.collections::ArrayCollection/dispatchEvent()[/Users/j2e e-bamboo/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtim e/xiff/collections/ArrayCollection.as:428]

at org.igniterealtime.xiff.collections::ArrayCollection/internalDispatchEvent()[/U sers/j2ee-bamboo/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/ignit erealtime/xiff/collections/ArrayCollection.as:258]

at org.igniterealtime.xiff.collections::ArrayCollection/addItemAt()[/Users/j2ee-ba mboo/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xi ff/collections/ArrayCollection.as:140]

at org.igniterealtime.xiff.collections::ArrayCollection/addItem()[/Users/j2ee-bamb oo/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xiff /collections/ArrayCollection.as:124]

at org.igniterealtime.xiff.im::Roster/addRosterItem()[/Users/j2ee-bamboo/bamboo-ag ent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xiff/im/Roster.a s:479]

at org.igniterealtime.xiff.im::Roster/fetchRoster_result()[/Users/j2ee-bamboo/bamb oo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xiff/im/Ros ter.as:272]

at org.igniterealtime.xiff.core::XMPPConnection/handleIQ()[/Users/j2ee-bamboo/bamb oo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xiff/core/X MPPConnection.as:863]

at org.igniterealtime.xiff.core::XMPPConnection/handleNodeType()[/Users/j2ee-bambo o/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xiff/ core/XMPPConnection.as:628]

at org.igniterealtime.xiff.core::XMPPConnection/parseDataReceived()[/Users/j2ee-ba mboo/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/xi ff/core/XMPPConnection.as:1071]

at org.igniterealtime.xiff.core::XMPPConnection/socketDataReceived()[/Users/j2ee-b amboo/bamboo-agent-home/xml-data/build-dir/XIFF-NIGHTLY/src/org/igniterealtime/x iff/core/XMPPConnection.as:983]

We tried finding the bug in our implementation we are not able to figure out any thing wrong in it. We suspect that XIFF.swc version we are using is not the right one. Can you please help us to figure out the problem. Its an urgent request.