powered by Jive Software

File Transfer issue with Openfire

Hello,

I am getting a simple file transfer error when transferring file from a Java client (written using smack) to a spark client.

Has anyone seen this before, any pointers would be very helpful…

Thanks

Drag

The exception that I am getting is:

java.lang.IllegalArgumentException: IQ Type not understood

StreamInitiation.java:159)

IQ.java:88)

EnhancedDebugger.java:774)

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

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

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

The Software code is:

public

{

ServiceDiscoveryManager sm=

new ServiceDiscoveryManager(connection);

new FileTransferManager(connection);

connection,true);

try {

new File(“xx.txt”);

new File(“xx.txt”), “Here you go”);

catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

The XML Message that I am sending looks good to me from a top level…

Here you go [http://jabber.org/protocol/bytestreams](http://jabber.org/protocol/bytestreams) [http://jabber.org/protocol/ibb](http://jabber.org/protocol/ibb)

}

t.sendFile(

File f =

OutgoingFileTransfer t = m.createOutgoingFileTransfer(dest);

FileTransferNegotiator.setServiceEnabled(

FileTransferManager m =

********void sendFile(String dest)
at org.jivesoftware.smackx.debugger.EnhancedDebugger$20.run(

at org.jivesoftware.smack.packet.IQ.toXML(

at org.jivesoftware.smackx.packet.StreamInitiation.getChildElementXML(

Exception in thread “AWT-EventQueue-0”