Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] XMPP File transfer : Problem while running org.eclipse.ecf.tests.provider.filetransfer.xmpp test from CVS head

Hi Scott,

My Openfire allows file transfer. For example, with pidgin, I can transfer files with the same accounts. There is no logs in the Openfire server about the file transfer.

I use the bundles from the CVS, so the version of Smack is 3.1.0. Do you use different versions of ECF, Smack or Openfire for the tests ?

I went through some files and added traces in the transferThread of the method startSend() of the class XMPPOutgoingFileTransfer. After calling the method sendFile() of the OutgoingFileTransfer outgoingFileTransfer, the status is checked after a 300 ms delay. The status is 'Error' and there is an exception associated with this outgoingFileTransfer accessed via the getException() method, here is the stack trace of this exception :

at org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.negotiateOutgoingTransfer( at org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.negotiateStream( at org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.access$0( at org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer$

Hope this helps.
Thank you

Scott Lewis wrote:
Hi Guillaume,

It's possible that there is some configuration on the Openfire server that allows/disallows file transfer...and that it's set to disallow? You might want to check the Openfire config.'s possible that this is a bug introduced by the use of Smack 3.0.0 (rather than 2.2.1, which we were using previously)...or some interaction between 3.0 and the Openfire 3.6.4.

Is there perhaps some output on the server log about this? If so please open bug and attach to the bug...and we'll see if we can figure this out.



Guillaume PRIN wrote:

I use Eclipse Galileo Version: 3.5.1 on an Ubuntu 9.4 box. Openfire 3.6.4 is installed and is running.
Two accounts has been created.

I got the head sources of ECF from CVS (pserver:anonymous@xxxxxxxxxxxxxxx:/cvsroot/rt). I try to execute the tests in org.eclipse.ecf.tests.provider.filetransfer.xmpp, especially the test testTwoClientsToSendAndReceive() in the class XMPPSOutgoingTest. I set the needed vm arguments ( -Dusername0=ecf.test1@XXX -Dusername1=ecf.test2@XXX -Dpassword0=pwd -Dpassword1=pwd) and create the input file (which does not exists in CVS). The test finishes, there is no error, but the file is not transfered. The test does not check if the the file is transfered. The handleFileTransferRequest(IFileTransferRequestEvent event) of IIncomingFileTransferRequestListener of the receiver is never called. So the receiver cannot accept the request.

In the console output, I have :

sender.handleTransferEvent(OutgoingFileTransferResponseEvent[requestAccepted=false]) sender.handleTransferEvent(IOutgoingFileTransferSendDoneEvent[isDone=true;bytesSent=-1;exception=java.lang.IllegalStateException: File transfer in progress or has already completed.])

Do I something wrong ?

ecf-dev mailing list

ecf-dev mailing list

Back to the top