commons-fileupload DiskFileItemFactory / FileCleanerCleanup & memory

2009-10-15 Thread Davis Ford
Hi, quick question on fileupload... I have a gooogle web toolkit app that presents a UI to do the following: 1) Upload a file 2) Show a thumbnail of the upload after file has been uploaded 3) Repeat 1) and 2) if desired 4) Press Save -> Server takes files and puts them in final resting place I c

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Bill Davidson
Christopher Schultz wrote: >Probably not. DBCP calls setAutoCommit(true) by default in order to >reset the connection as it goes back into the pool. Any pending >transaction is committed (!) when that happens, so there shouldn't be >any in-progress transactions lingering around. > >If you set auto

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 10/15/2009 2:24 PM, Bill Davidson wrote: > That does make me wonder though if there are Connection's getting sent > back to the pool that had a pending transaction without a commit/rollback > and if that could be making any cursors on that co

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 10/15/2009 2:15 PM, Bill Davidson wrote: > Christopher Schultz wrote: >>Is it possible that your server just doesn't want to allocate 245 * 4 >>cursors, and that you are just hitting that barrier? > > cursor != connection Right... but presu

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Bill Davidson
Martin Gainty wrote: >are you running as a Transaction? In some cases, but a lot of these lingering cursors are on very simple queries, with no insert/update/delete involved. As I said before, I'm finding lingering cursors on things as simple as "SELECT * FROM some_table WHERE id = ?". That doe

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Bill Davidson
Christopher Schultz wrote: >Is it possible that your server just doesn't want to allocate 245 * 4 >cursors, and that you are just hitting that barrier? cursor != connection Oracle is set up to allow up to 300 cursors per session (connection). I could up that limit, but it probably won't fix the

Re: File Upload

2009-10-15 Thread Martin Cooper
On Tue, Oct 13, 2009 at 9:02 PM, Anand Shankar wrote: > Hello > > I am facing more problem about File Upload and anybody is helping me. I have > listed my problem on all the open source forum, so please give me your some > important moment to suggest that how can I solve this problem. > > > I am u

RES: File Upload

2009-10-15 Thread siomara
Just an example that worked fine for me: /* * File Upload - Arquivo de licitações - October, 2009. */ package servlets.comum; import java.io.IOException; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.util.List; import java.util.Iterator; import ja

[JCI] Complication Error

2009-10-15 Thread Ben Short
Hi, I'm trying to compile a JSP file and have looked at the examples but can't get it to work. My code: JspGenerator jspGenerator = new JspGenerator(); final byte[] jspSource = jspGenerator.generateJavaSource("simple.jsp", new File("target/test-classes/simple.jsp"));