commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tro <>
Subject [vfs] FTP problems
Date Mon, 31 Jul 2006 20:10:53 GMT

I can't get vfs to write a file to my FTP server.

The error:

"org.apache.commons.vfs.FileSystemException: Could not determine if 
file "" is writeable."

The code:

String ftpAddress = "";
try {
    tmpRemFile = VFS.getManager().resolveFile(
        ftpAddress + "xxx" + zipFile.getName());
    if (!tmpRemFile.exists())
} catch (Exception e) {
    gui.showListWarning(e.getLocalizedMessage() + "\n" + e.getCause());
    return false;

tmpRemFile is a FileObject, but it's imaginary (doesn't exist on the server). 
The exception is thrown after executing "tmpRemFile.createFile();"

I've noticed that if the file is already on the server, the exception isn't 
thrown. Doing anything else with the file (rename, delete) still raises the 

I've tried this with two different FTP servers and several recent nightlies. 
I've got all the dependencies necessary, I think (logging, net, oro). I can, 
of course, log in and write a file to the server with any standalone client.

What am I doing wrong?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message