Hi
I have a XMPPConnection between two gmail users, one of them logged in through a Java Client using Smack API (GoogleTalkConnection), the other one through GTalk.
The guy logged through the Java client has to send a file to the other user.
I tried the following:
FileTransferManager ftm=new FileTransferManager(connection);
OutgoingFileTransfer ft=ftm.createOutgoingFileTransfer("user@gmail.com");
ft.sendFile(new File("]]>"), "Sample file");
While creating the OutgoingFileTransasfer, I get the following exception:
java.lang.IllegalArgumentException: The provided user id was not fully qualified
at org.jivesoftware.smackx.filetransfer.FileTransferManager.createOutgoingFileTran sfer(FileTransferManager.java:137)
Isnt user@gmail.com a valid Jabber id? The normal chat works fine. The problem is only while sending a file.
Any comments would be of great help.
Smack Version: 2.2.1
Thanks
Bharath
The JID of the recipient must have a resource value.
Also, the other client must implement the file transfer protocol.
Note that the official google client uses a secret jingle-based file transfer protocol, which isn''t supported by anything else.