Re: IOException: The handle is invalid - on file upload

2008-08-18 Thread Andrew Moore
After more investigation, the problems were coming from trying to run the upload in a separate thread. Once I move the code back into the main thread where the onSubmit is pressed it all works fine. Is it possible to have the upload process take place in a separate thread, so the user can continu

Re: IOException: The handle is invalid - on file upload

2008-08-15 Thread Andrew Moore
Just to follow this up. When using the inputstream and the read() method on the same upload file. The number of lines read before getting in error message changes each time. Could it be a jdk bug? Andrew Moore wrote: > > I'm using wicket 1.3.4 and doing some file uploading and keep > intermitta

IOException: The handle is invalid - on file upload

2008-08-15 Thread Andrew Moore
I'm using wicket 1.3.4 and doing some file uploading and keep intermittantly getting the following error: IOException: The handle is invalid. My form is uploads zips and jpgs and is very similar to the wicket examples. ie in my submit button I do the following: if (uploadFile != null) { // Check