Re: [VFS] Uploading large files with sftp

2007-10-03 Thread Mario Ivankovits
Hi! When I try to upload a file larger than 20MB, I get an out of memory exception: Exception in thread main java.lang.OutOfMemoryError: Java heap space Try using the latest svn source. There this should be fixed already. Ciao, Mario

Re: [vfs] Inconsistent Behavior...

2008-01-29 Thread Mario Ivankovits
) I left out the project-specific parts of the stack trace because it's not relevant, but there were no nested exceptions. On 1/29/08, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! Did you get my second email? That's the entire output I got when I ran it. Uh, oh, ok! So

Re: [vfs] Inconsistent Behavior...

2008-01-29 Thread Mario Ivankovits
Hi! Did you get my second email? That's the entire output I got when I ran it. Uh, oh, ok! So then, it seems that VFS thinks the file is either a directory or non existent. Could you please: *) check the filetype of the FileObject see if its virtual or whatever *) try to connect to the

Re: [vfs] Inconsistent Behavior...

2008-01-29 Thread Mario Ivankovits
Hi! Could not read from ftp://ftp.ncbi.nih.gov/pub/HomoloGene/current/homologene.data; because it is a not a file. at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1149) at

Re: [vfs] Inconsistent Behavior...

2008-01-31 Thread Mario Ivankovits
Hi James! I have fix for this I believe. Good to hear :-) - and - good catch! final String path = fileInfo != null fileInfo.isSymbolicLink() ? getParent().getName().getPath() + / + fileInfo.getLink() : relPath; final FTPFile[] tmpChildren = client.listFiles(path); Somewhere in

Re: VFS FTP AbstractFileObject.isWriteable() Causes NullPointerException

2008-05-28 Thread Mario Ivankovits
Hi! 1. I receive a NullPointerException from AbstractFileObject.isWriteable() when I attempt to copy VFSFTPTest.class from a local directory to one on a FTP server: Could you please try the latest VFS (aka 2.0) nightly build, there a lot of stuff in this area has been changed. It seems the

Re: VFS FTP AbstractFileObject.isWriteable() Causes NullPointerException

2008-05-30 Thread Mario Ivankovits
Hi Richard! Could you please try the latest VFS (aka 2.0) nightly build, there a lot of stuff in this area has been changed. Hi! No luck. Ok, no worries, at least we have a stacktrace matching the current source-base. I'll see what I can do to fix this. Thanks! Ciao, Mario

Re: [vfs] SFTP Provider and Daemon Threads?

2008-06-10 Thread Mario Ivankovits
PROTECTED] wrote: It's on the Session API (since 0.1.31 I believe). There's a new setDaemonThread() method. On Tue, Jun 10, 2008 at 8:40 AM, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! Shouldn't the SFTP provider be calling setDaemon(true) on the JSch session? I am

Re: VFS problem with StaticUserAuthenticator

2008-06-11 Thread Mario Ivankovits
Hi! Are there thoughts on doing a new release. We really need webdav working in VFS and the core VFS code in the sandbox just doesn't work. One simple test it would be great if you as a commons-vfs-comitter could replace slide with webdavclient4j and make it part of the core instead of

Re: VFS problem with StaticUserAuthenticator

2008-06-11 Thread Mario Ivankovits
Hi! so what i meant (and i hope this is in line with jason harrop, the project leader) is, that webdavclient4j should be the default library (as it is slide at the moment) used for vfs' webdav providers. therefore it would be necessary to take over webdavclient4j's vfs providers (webdav and

Re: VFS problem with StaticUserAuthenticator

2008-06-11 Thread Mario Ivankovits
Hi James! I might be able to spend a few cycles getting it set up. And probably you should add yourself to VFS's project-team :-) Ciao, Mario [1] http://commons.apache.org/vfs/team-list.html - To unsubscribe, e-mail:

Re: VFS problem with StaticUserAuthenticator

2008-06-11 Thread Mario Ivankovits
James Carman schrieb: Done. I added myself as a developer. If you want me to change it to contributor, then I can do that also. No, developer was exactly what I had in mind :-) Thanks! - and - Welcome! Ciao, Mario On Wed, Jun 11, 2008 at 9:07 AM, Mario Ivankovits [EMAIL PROTECTED

Re: [vfs] Why doesn't AbstractFileObject override equals?

2008-06-11 Thread Mario Ivankovits
Hi! on the first glimpse i don't understand why AbstractFileObject doesn't override equals() and hashCode(). The current VFS implementation (if you do not use anything else then the only-working SoftRefFilesCache) ensures that two resolveFile will return the same object if you ask for the same

Re: [vfs] Why doesn't AbstractFileObject override equals?

2008-06-12 Thread Mario Ivankovits
Hi! I'd go that way: 1. in AbstractFileObject.getParent(): replace if (this == fs.getRoot()) { ... }; with FileObject root = fs.getRoot(); if (root instanceof DecoratedFileObject) { root = ((DecoratedFileObject) root).getDecoratedFileObject(); } if (this == root) { ... } But

Re: VFS problem with StaticUserAuthenticator

2008-06-12 Thread Mario Ivankovits
added myself as a developer. If you want me to change it to contributor, then I can do that also. On Wed, Jun 11, 2008 at 9:07 AM, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi James! I might be able to spend a few cycles getting it set up. And probably you should add yourself to VFS's project

Re: [vfs] SFTP Provider and Daemon Threads?

2008-06-13 Thread Mario Ivankovits
Hi! Since this change requires a newer version of jsch then the one used to build the project, will it be updated as well (0.1.39 is the latest)? I'm trying to build a snapshot and it fails with: For the current VFS trunk we can do this. James, could you update the pom and build.xml

Re: [VFS] How to use operations

2008-07-14 Thread Mario Ivankovits
Hi! I am just curious if anyone else has ever used them and how they did it. I am not sure, this is some of the last things I added (with the help of a contributor) but didn't finished it, nor documented it :-( *help* Is the only use of them when you create your own client that knows

Re: [VFS] How to use operations

2008-07-14 Thread Mario Ivankovits
Hi! As long as you use a standard set of annotations, that would be great. I only mentioned the Javabeans method because there are already components out there that can edit a Javabean given its BeanInfo object. Its fine! Probably using BeanInfo would be a good first step, afterwards we can

Re: [VFS] How to use operations

2008-07-21 Thread Mario Ivankovits
Hi! 1. Do you have any mechanism in mind to give feedback on the result of the operation? Not yet, this is all work in progress. But probably changing the FileOperation interface to ProcessReturn process() and add a new ProcessReturn interface with. boolean isCorrect(); int

RE: Defining and Adding a new provider to the apache VFS api

2008-11-07 Thread Mario Ivankovits
Hi! I need to know how to define and add a new provider to the api? I mean which classes do I need to extend and implement to create a new provider? Have a look at the VFS sandbox and e.g. the mime or webdav provider. Base directory: vfs\sandbox\src\main\java\org\apache\commons\vfs\provider

RE: VFS - Could not load VFS configuration

2008-12-10 Thread Mario Ivankovits
Hi! org.apache.commons.vfs.provider.local.DefaultLocalFileProvider is a class in vfs core. For me it seems there is something wrong with your vfs core jar. Please check if the class is in there. Did you build the jar by yourself? Probably something went wrong during the build process. Ciao,

RE: VFS - Could not load VFS configuration

2008-12-10 Thread Mario Ivankovits
verified that the class file is actually in the jar file. This problem might not be related to VFS but I can't understand what is causing it. Per Mario Ivankovits wrote: Hi! org.apache.commons.vfs.provider.local.DefaultLocalFileProvider is a class in vfs core. For me it seems

RE: VFS - Could not load VFS configuration

2008-12-10 Thread Mario Ivankovits
classloader). Reverting rev 537717 seems to solve my issue. Should I open an issue about this? Per Mario Ivankovits wrote: Me too. Probaby try it with Sun's JDK, or enable some sort of class loading debug (there might be a command-line switch to do so) with OpenJDK, probably you can

RE: VFS LocalFile#getLocalFile() protected?

2009-05-15 Thread Mario Ivankovits
Hi! Not every FileObject can be represented as a local file, and thus getLocalFile ist protected. What you can do is to replicate the file: File file = fileObject.getFileSystem().replicateFile(fileObject, Selectors.SELECT_SELF); For the local filesystem this simply exposes the local file

RE: [vfs] why is FileSystemConfigBuilder.setParam() protected?

2009-05-29 Thread Mario Ivankovits
This is one of my least favorite parts of VFS. To configure FileSystemOptions you have to use the appropriate FileSystemConfigBuilder. I can't tell you why it was done this way as it precedes my involvement, but I've considered reinventing this more than once. It isn't pretty. The

AW: potential problem: FtpFileObject caches children when not attached

2010-05-14 Thread Mario Ivankovits
[mailto:kirill.safo...@gmail.com] Gesendet: Mittwoch, 12. Mai 2010 17:07 An: 'Commons Users List' Cc: Mario Ivankovits Betreff: potential problem: FtpFileObject caches children when not attached Hello, While digging a bit into FTP performance, I’ve noticed the following: When