Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 56163 invoked from network); 22 Mar 2007 20:38:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 20:38:02 -0000 Received: (qmail 84484 invoked by uid 500); 22 Mar 2007 20:38:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 84428 invoked by uid 500); 22 Mar 2007 20:38:01 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 84377 invoked by uid 99); 22 Mar 2007 20:38:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 13:38:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 13:37:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C26A3714070 for ; Thu, 22 Mar 2007 13:37:32 -0700 (PDT) Message-ID: <16261061.1174595852791.JavaMail.jira@brutus> Date: Thu, 22 Mar 2007 13:37:32 -0700 (PDT) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-2456) File stream is left open when an exception occurs while setting up a character stream for data export. In-Reply-To: <29020342.1173985149272.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] A B resolved DERBY-2456. ------------------------ Resolution: Fixed Than you for addressing this so quickly, Suresh! I'm resolving and closing the issue after confirming that the re-enabled JUnit fixture is now running without problems. If I'm closing this prematurely, feel free to re-open it--but since it looks like you've solved the problem I was seeing, I think its safe to close this one out? Thanks again! > File stream is left open when an exception occurs while setting up a character stream for data export. > ------------------------------------------------------------------------------------------------------ > > Key: DERBY-2456 > URL: https://issues.apache.org/jira/browse/DERBY-2456 > Project: Derby > Issue Type: Bug > Components: Tools > Affects Versions: 10.3.0.0 > Reporter: A B > Assigned To: Suresh Thalamati > Priority: Minor > Fix For: 10.3.0.0 > > > The JUnit test tools/ImportExportTest.java has been failing since it was first contributed with the following error: > ImportExportTest:embeddedjunit.framework.AssertionFailedError: extinout\T1.dat > at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSetup.java:102) > at org.apache.derbyTesting.junit.DropDatabaseSetup.access$000(DropDatabaseSetup.java:38) > at org.apache.derbyTesting.junit.DropDatabaseSetup$1.run(DropDatabaseSetup.java:77) > at java.security.AccessController.doPrivileged1(Native Method) > at java.security.AccessController.doPrivileged(AccessController.java:287) > at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:74) > at org.apache.derbyTesting.junit.SupportFilesSetup.tearDown(SupportFilesSetup.java:107) > at junit.extensions.TestSetup$1.protect(TestSetup.java:20) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > Also fails with the client, as well. > Per the comment posted by Suresh to DERBY-2295, it looks like the cause of this failure is that the "openFile()" method of java/engine/org/apache/derby/impl/load/ExportWriteData.java does not close the file stream in cases where an invalid encoding is specified. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.