powered by Jive Software

XMLSerializer Implementation mssing in smack.jar?

Trying to implement a simple PacketExtension and thought it would be convienent to use the XMLSerializer from xmlpull to implement the toXML() method. However, it would appear that the implementation is left out of smack.jar. Is this deliberate? Am I perhaps misguided? For now can work around with old fashioned StringBuffer, but that seems unfortunate.

Great work, thanks!

java.lang.NoClassDefFoundError: org/xmlpull/mxp1_serializer/MXSerializer

at org.xmlpull.mxp1.MXParserFactory.newSerializer(MXParserFactory.java:56)

at COM.soundbite.xmpp.client.SBExtension.toXML(SBExtension.java:38)

at org.jivesoftware.smack.packet.Packet.getExtensionsXML(Packet.java:359)

at org.jivesoftware.smack.packet.Message.toXML(Message.java:200)

You can install your own version. Recently I had to update to the last version of the MXP1 because the version bundled with Smack was giving me some trouble. Namely, I was getting some weird NoClassDefFoundErrorS where there were none before.

You can download MXP1 from http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/ . I’‘m using version with Smack 1.4.1 (+CVS) without problems. I don’'t know what version is bundled with Smack.