Smack-pidgin file transfer

Hi all,

I’m new to Smack (and XMPP too for that matter) so apologies if this is a newbie question…

I’m trying to send a file from my Smack-based app to Pidgin using the simple guidelines in http://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions/ index.html but I’m getting an error response:

here it is

<field type='list-multi' var='stream-method'>

 <option><value>[http://jabber.org/protocol/bytestreams](http://jabber.org/protocol/bytestreams)</value></option>

 <option><value>[http://jabber.org/protocol/ibb](http://jabber.org/protocol/ibb)</value></option>

</field>

and the following exception:

Exception in thread “AWT-EventQueue-0” java.lang.IllegalArgumentException: IQ Type not understood

    at org.jivesoftware.smackx.packet.StreamInitiation.getChildElementXML(StreamInitia tion.java:159)

    at org.jivesoftware.smack.packet.IQ.toXML(IQ.java:88)

    at org.jivesoftware.smackx.debugger.EnhancedDebugger$20.run(EnhancedDebugger.java: 774)

    at java.awt.event.InvocationEvent.dispatch(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.run(Unknown Source)

I’m guessing there’s a simple fix. Do I need to register the file transfer extension with Smack before attempting the transfer? An example showing actual working code would be very appreciated!

Thanks,

Anders