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 D033E25A9 for ; Thu, 5 May 2011 02:14:42 +0000 (UTC) Received: (qmail 61795 invoked by uid 500); 5 May 2011 02:14:42 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 61730 invoked by uid 500); 5 May 2011 02:14:42 -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 61722 invoked by uid 99); 5 May 2011 02:14:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 02:14:42 +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; Thu, 05 May 2011 02:14:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1E3ACC1495 for ; Thu, 5 May 2011 02:14:03 +0000 (UTC) Date: Thu, 5 May 2011 02:14:03 +0000 (UTC) From: "Luke Quinane (JIRA)" To: issues@commons.apache.org Message-ID: <1315525110.23506.1304561643120.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1223163905.23416.1304558823479.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (IO-270) "IllegalArgumentException: Negative time" copying to Windows share 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/IO-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029105#comment-13029105 ] Luke Quinane commented on IO-270: --------------------------------- Ah, indeed; we have upgraded to 2.01 in our trunk but the released version was 1.4. Sorry about that. Its unlikely that it will be possible to run a test but I'll try to get some more details about what is on the other end of the network connection. > "IllegalArgumentException: Negative time" copying to Windows share > ------------------------------------------------------------------ > > Key: IO-270 > URL: https://issues.apache.org/jira/browse/IO-270 > Project: Commons IO > Issue Type: Bug > Components: Utilities > Affects Versions: 2.0.1 > Environment: Windows 7, Java 64 bit server v1.6.0_22-b04 > Reporter: Luke Quinane > > A customer reported the following exception to us: > {noformat}java.lang.IllegalArgumentException: Negative time > at java.io.File.setLastModified(File.java:1258) > at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:686) > at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:653) > at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607) > at {noformat} > Part of the problem is the exception itself but also our code was expecting FileUtils to throw IOException instead of ISE. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira