This thread is archived
2 Replies Last post: Oct 18, 2006 5:57 PM by Andreas Monitzer  
Bharath Ganesh   1 posts since
Oct 18, 2006
Currently Being Moderated

Oct 18, 2006 8:22 AM

Unable to transfer a file from a Java smack IM to GTalk user

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

http://dashmaniac.blogspot.com

keith.lirette Bronze 33 posts since
Mar 29, 2006
Currently Being Moderated
Oct 18, 2006 11:55 AM in response to: Bharath Ganesh
Re: Unable to transfer a file from a Java smack IM to GTalk user

The JID of the recipient must have a resource value.

 

Also, the other client must implement the file transfer protocol.

Andreas Monitzer KeyContributor 409 posts since
Mar 6, 2006
Currently Being Moderated
Oct 18, 2006 5:57 PM in response to: Bharath Ganesh
Re: Unable to transfer a file from a Java smack IM to GTalk user

Note that the official google client uses a secret jingle-based file transfer protocol, which isn''t supported by anything else.

More Like This

  • Retrieving data ...