Hello I have a few questions:
- If the destination is e.g. (globus-url-copy run in the console) gsiftp://foo:2811/tmp the tmp directory in /tmp (root) is mentioned. If I do it in java code a /tmp directory in /home/pj/tmp is expected. Why? Is it a bug? - I wanna transfer a file from a normal ftp server to a gsiftp server. My java code is: FTPClient src = new FTPClient("localhost", 21); GridFTPClient dest = new GridFTPClient("pj", 2811); dest.authenticate(retcred); src.authorize("anonymous", "anonymous"); src.changeDir("test"); dest.changeDir("tmp"); src.setType(Session.TYPE_IMAGE); dest.setType(Session.TYPE_IMAGE); src.setPassive(); dest.setLocalPassive(); dest.setActive(); src.setLocalActive(); src.transfer("testfile", dest, "testfile", false, null ); } I get the following exceptions: Exception in thread "main" org.globus.ftp.exception.ServerException: Reply wait timeout. (error code 4) at org.globus.ftp.vanilla.FTPControlChannel.waitFor(FTPControlChannel.java:213) at org.globus.ftp.vanilla.TransferMonitor.run(TransferMonitor.java:125) at org.globus.ftp.vanilla.TransferMonitor.start(TransferMonitor.java:105) at org.globus.ftp.FTPClient.transferRunSingleThread(FTPClient.java:1451) at org.globus.ftp.FTPClient.transfer(FTPClient.java:1350) at tests.UrlCopyTest.main(UrlCopyTest.java:83) What am I doing wrong? Does the transfer method only works between two gsiftp servers? I know that globus-url-copy has to be run with the "-notpt" flag and it does a get and a put. Do i also have to do that explicitly here and can I not use the transfer function? Or is my vsftpd server misconfigured? best regards pod -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
