Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: problem with mput & mget (file up/download to

15 views
Skip to first unread message

Bjoern

unread,
Jun 6, 2006, 6:46:22 AM6/6/06
to
Hello out there,

I am experiencing the same problems as Jana, but her solution does
not work for me. When I try to mput a file via ftp, Matlab hangs, the
file is created on the ftp site, but it is empty.
Problem is, the firewall does not seem to be my problem: when I
deactivate it (I am using the Windows XP Pro Firewall (yeah, I
know)), the problem is not solved. So it seems that Matlab still does
not receive the response Packages correctly.
Can anyone help me here? I would appreciate any ideas...

Regards,

bjoern

Bjoern

unread,
Jun 6, 2006, 8:18:09 AM6/6/06
to
OK, it seems Matlab receives a time-out from the ftp-server after
some time (> 5 Minutes). Here is the error message out of Matlab:

??? Java exception occurred:
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response
421 received. Server closed connection.

at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:343)

at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:444)

at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:472)

at
org.apache.commons.net.ftp.FTPClient.__openDataConnection(FTPClient.ja
va:368)

at
org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:427)

at
org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1283)
.

Error in ==> ftp.mput at 70
status = h.jobject.storeFile(name,fis);

Ideas?

Jana

unread,
Jun 6, 2006, 10:11:41 AM6/6/06
to

Hi Bjoern,

421 is a 'service not available' error.. have you tried to upload
files to another server, because maybe it is just an error at the
server-side?
Also, could it be that you get a time-out because of a slow
connection and/or you are uploading a very large file? Have you
tested a manual upload?
Does mget work fine for you? If not, perhaps there is still some
firewall problem..
All simple things that probably you already tested.. anyway :)..

0 new messages