Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A85860F2 for ; Wed, 6 Jul 2011 13:23:39 +0000 (UTC) Received: (qmail 17936 invoked by uid 500); 6 Jul 2011 13:23:39 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17887 invoked by uid 500); 6 Jul 2011 13:23:38 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 17877 invoked by uid 99); 6 Jul 2011 13:23:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 13:23:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 13:23:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9F720455A9 for ; Wed, 6 Jul 2011 13:23:16 +0000 (UTC) Date: Wed, 6 Jul 2011 13:23:16 +0000 (UTC) From: "Julien Vey (JIRA)" To: issues@commons.apache.org Message-ID: <1765587837.3971.1309958596649.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <370499373.38958.1306238509605.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (FILEUPLOAD-193) FileNotFoundException thrown by DiskFileItem.write MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FILEUPLOAD-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060560#comment-13060560 ] Julien Vey edited comment on FILEUPLOAD-193 at 7/6/11 1:22 PM: --------------------------------------------------------------- I have the same issue under some undetermined conditions. Have you found any workaround to avoid this issue ? (with version 1.2.1) was (Author: veyjul): I have the same issue under some undetermined conditions. Have you found any workaround to avoid this issue ? > FileNotFoundException thrown by DiskFileItem.write > -------------------------------------------------- > > Key: FILEUPLOAD-193 > URL: https://issues.apache.org/jira/browse/FILEUPLOAD-193 > Project: Commons FileUpload > Issue Type: Bug > Affects Versions: 1.2.2 > Environment: Ubuntu 10.10 > java version "1.6.0_24" > Java(TM) SE Runtime Environment (build 1.6.0_24-b07) > Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing) > Reporter: Dan Washusen > Priority: Critical > > Under certain conditions the DiskFileItem.write throws a FileNotFound exception. It seems to be when outputFile.renameTo(file) fails. > {code}java.io.FileNotFoundException: /tmp/UploadController/uploading/upload_69651d04_13000a31964__8000_00001651.tmp (No such file or directory) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(FileInputStream.java:106) > at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:447) > at upload.UploadController.handle(UploadController.java:90) > ...{code} > I can't see any obvious reason why the source file (outputFile) wouldn't exist... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira