File transfer problem: (501) feature-not-implemented

Hi everyone.

I have created a simple chat client which uses the Smack API. I am trying to implement a simple file transfer, using the Smack file transfer extension.

I am using version 2.2 of the Smack library, and I am using Java 5. My operating system is Windows XP.

When creating the XMPP connection, I enable the file transfer service using the following line of code:

FileTransferNegotiator.setServiceEnabled(connection, true);[/b]

I listen to incoming file transfer request using the following code:

fileTransferManager = new FileTransferManager(connection);

fileTransferManager.addFileTransferListener(new FileTransferListener() {

public void fileTransferRequest(FileTransferRequest request) {

}

}[/b]

I send the file using the code described in this forum post:

http://www.jivesoftware.org/community/message.jspa?messageID=118424#118424

I have two instances of my test client running (I’'ve tried both on same computer and on different computers), and am sending a file from one test client to the other.

But I always get the following exception:

(501) feature-not-implemented

at org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.negotiateOutgoingTr ansfer(FileTransferNegotiator.java:385)

I’'ve turned on debug, and this is the XML that is sent:

[/b]

And this is what I get back:

[/b]

Can anyone spot what I am doing wrong??

Thanks!

-OGG

Well, I figured it out myself. The problem was, that for some reason there were no [/b] defined for file transfer in the smack.providers[/b] file. I downloaded the latest Smack source code, which contained a different smack.providers file. I tried using that file, and voila…file transfer now works fine.