[net] FTPClient.listFiles stalls...

2007-03-30 Thread Gert Vanthienen
L.S., I'm using Apache ServiceMix's FTP component, which uses commons net FTPClient classes internally to poll for files on an FTP server. After a while, the polling threads lock up with the stacktrace mentioned below: I'm trying to solve this issue. What can be the cause of this lockup and

[VFS] Monitor interface change - possible improvement

2007-03-30 Thread Steven Keens
Here's my use case - I want to listen to a subset of the files within a folder. To do so with VFS I have to filter the events within my FileListener. I think it would be better that the FileMonitor interface accept a FileSelector in the add() and remove() function rather than a FileObject. By

Wrapper Code...

2007-03-30 Thread Ravi Mittal
Hi: Can any1 please share their wrapper code around the Common Configuration APIs? I am looking for using Configuration as Singleton and able to shift from say Properties Configuration to XML Configuration at run time. Please send me the code in zipped format if any1 has it. Or class diagram

pool - cleaning up resources on JVM exit

2007-03-30 Thread Conrad CRAMPTON PSE 52704
Hi, Is there anyway of clearing up resources from a GenericObjectPool when the JMV closes (crashes)? I have objects that maintain a connection to a service that need to be closed when the web server is restarted or crashes. Also, if an object is borrowed from the pool and isn't returned because of

org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Socket read failed

2007-03-30 Thread Danilo Cicognani
Hello everybody, I've experienced this exception but I can't understand what it means, so I'm not able to catch or fix it. I made a search over Internet, but didn't found something that can help me, I only found http://globovox.globo.com/posts/list/78089.page but I can't understand the language

Re: [VFS] Monitor interface change - possible improvement

2007-03-30 Thread Mario Ivankovits
Hi Steven! Here's my use case - I want to listen to a subset of the files within a folder. To do so with VFS I have to filter the events within my FileListener. I think it would be better that the FileMonitor interface accept a FileSelector in the add() and remove() function rather than a

Re: [net] FTPClient.listFiles stalls...

2007-03-30 Thread Rory Winston
Gert What version of [net] are you using? Rory Jakarta Commons Users List commons-user@jakarta.apache.org wrote: L.S., I'm using Apache ServiceMix's FTP component, which uses commons net FTPClient classes internally to poll for files on an FTP server. After a while, the polling

Re: [net] FTPClient.listFiles stalls...

2007-03-30 Thread Rory Winston
Gert What version of [net] are you using? Rory Jakarta Commons Users List commons-user@jakarta.apache.org wrote: L.S., I'm using Apache ServiceMix's FTP component, which uses commons net FTPClient classes internally to poll for files on an FTP server. After a while, the polling

Upload File + ProgressBar

2007-03-30 Thread Tatiana Lloret Iglesias
Hi all, I'm using httpclient class to connect my stand-alone application with a servlet which performs a file upload. Everything works fine but ... I would like to display a progressBar to indicate the upload progress ... Is it possible? Right now I only interact with the server part to send

Re: [net] FTPClient.listFiles stalls...

2007-03-30 Thread Gert Vanthienen
Rory, We are using commons-net-1.4.1.jar. Gert Rory Winston wrote: Gert What version of [net] are you using? Rory Jakarta Commons Users List commons-user@jakarta.apache.org wrote: L.S., I'm using Apache ServiceMix's FTP component, which uses commons net FTPClient

Re: HttpClient + Session

2007-03-30 Thread Craig McClanahan
On 3/30/07, Tatiana Lloret Iglesias [EMAIL PROTECTED] wrote: Hi all, I'm using jakarta httpclient classes to generate a Request from a stand alone application: HttpClient client = new HttpClient(); URL filesURL = new URL(myURL); PostMethod postMethod = new PostMethod(filesURL.toString());

Re: pool - cleaning up resources on JVM exit

2007-03-30 Thread Will Pugh
Finalizers can be a pain, but might for this scenario they might work for you. Sandy McArthur wrote: When the JVM crashes there is no cleaning up, the JVM just exits and the OS will clean up what it can. Pool cannot recover from a JVM crash. When the JVM exits there will be a bit more clean

Re: pool - cleaning up resources on JVM exit

2007-03-30 Thread Abhijit Akhawe
Not sure if finalizers will be invoked if the JVM 'crashes'. Finalizers will work in case there is a graceful exit of JVM. On 3/30/07, Will Pugh [EMAIL PROTECTED] wrote: Finalizers can be a pain, but might for this scenario they might work for you. Sandy McArthur wrote: When the JVM crashes

Re: Upload File + ProgressBar

2007-03-30 Thread Andrew
Yes, it is possible. You have to implement your own FilePart class though (which really isn't that hard). Just extend FilePart and then override the sendData method. If you want a real easy way to do it, wrap the InputStream in a ProgressMonitorInputStream. That is how I did it. Hope that