Return-Path: X-Original-To: apmail-ace-commits-archive@www.apache.org Delivered-To: apmail-ace-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 805B4D356 for ; Mon, 27 May 2013 07:46:18 +0000 (UTC) Received: (qmail 49887 invoked by uid 500); 27 May 2013 07:46:18 -0000 Delivered-To: apmail-ace-commits-archive@ace.apache.org Received: (qmail 49824 invoked by uid 500); 27 May 2013 07:46:18 -0000 Mailing-List: contact commits-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ace.apache.org Delivered-To: mailing list commits@ace.apache.org Received: (qmail 49807 invoked by uid 99); 27 May 2013 07:46:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2013 07:46:18 +0000 Date: Mon, 27 May 2013 07:46:17 +0000 (UTC) From: "Bram de Kruijff (JIRA)" To: commits@ace.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (ACE-254) OBR upload fail (on windows only ?) due to unclosed outputstream 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/ACE-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bram de Kruijff closed ACE-254. ------------------------------- Fix Version/s: 1.0.0 Resolution: Fixed Bulk update to fix version 1.0 > OBR upload fail (on windows only ?) due to unclosed outputstream > ---------------------------------------------------------------- > > Key: ACE-254 > URL: https://issues.apache.org/jira/browse/ACE-254 > Project: ACE > Issue Type: Bug > Affects Versions: 0.8.0-incubator > Reporter: Bram de Kruijff > Fix For: 1.0.0 > > > I'm experiencing test and runtime failures on windows due to unclosed outputstream when strying to move/delete a file in BundleFileStore. > runtime error > {code} > -> log > 2012.04.10 10:23:18 ERROR - Bundle: org.apache.ace.webui.vaadin - Import of C:\bramk\Amdatu\git\amdatu-management\amdatu-release-ams\target\org.amdatu.mgmtserve > r-0.0.1-SNAPSHOT\work\felix-cache\bundle18\data\12345\org.apache.felix.shell.tui-1.4.1.jar failed. - java.io.IOException: Error importing artifact file:/C:/bram > k/Amdatu/git/amdatu-management/amdatu-release-ams/target/org.amdatu.mgmtserver-0.0.1-SNAPSHOT/work/felix-cache/bundle18/data/12345/org.apache.felix.shell.tui-1. > 4.1.jar: Artifact already exists in storage. > at org.apache.ace.client.repository.impl.ArtifactRepositoryImpl.upload(ArtifactRepositoryImpl.java:472) > at org.apache.ace.client.repository.impl.ArtifactRepositoryImpl.importArtifact(ArtifactRepositoryImpl.java:375) > at org.apache.ace.client.repository.impl.ArtifactRepositoryImpl.importArtifact(ArtifactRepositoryImpl.java:314) > at org.apache.ace.webui.vaadin.AddArtifactWindow.importRemoteBundle(AddArtifactWindow.java:677) > at org.apache.ace.webui.vaadin.AddArtifactWindow.importRemoteBundles(AddArtifactWindow.java:495) > at org.apache.ace.webui.vaadin.AddArtifactWindow$4.buttonClick(AddArtifactWindow.java:390) > {code} > junit failures > {code} > ------------------------------------------------------------------------------- > Test set: TestSuite > ------------------------------------------------------------------------------- > Tests run: 12, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.621 sec <<< FAILURE! > removeExistingBundle(org.apache.ace.obr.storage.file.BundleFileStoreTest) Time elapsed: 0.02 sec <<< FAILURE! > java.lang.AssertionError > at org.apache.ace.obr.storage.file.BundleFileStoreTest.removeExistingBundle(BundleFileStoreTest.java:290) > putBundle(org.apache.ace.obr.storage.file.BundleFileStoreTest) Time elapsed: 0.01 sec <<< FAILURE! > java.io.FileNotFoundException: C:\Users\bramk\AppData\Local\Temp\test8382764080254375156\filename (The system cannot find the file specified) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(FileInputStream.java:120) > at org.apache.ace.obr.storage.file.BundleFileStoreTest.putBundle(BundleFileStoreTest.java:267) > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira