Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 55052 invoked from network); 21 Nov 2008 13:21:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2008 13:21:07 -0000 Received: (qmail 38715 invoked by uid 500); 21 Nov 2008 13:21:14 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 38650 invoked by uid 500); 21 Nov 2008 13:21:14 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 38625 invoked by uid 99); 21 Nov 2008 13:21:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 05:21:14 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 13:19:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4BB25234C289 for ; Fri, 21 Nov 2008 05:20:44 -0800 (PST) Message-ID: <1822612931.1227273644308.JavaMail.jira@brutus> Date: Fri, 21 Nov 2008 05:20:44 -0800 (PST) From: "Walid Joseph Gedeon (JIRA)" To: dev@felix.apache.org Subject: [jira] Closed: (FELIX-819) unable to rename / delete bundle cache location on update or uninstall In-Reply-To: <967649231.1226948144319.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/FELIX-819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Walid Joseph Gedeon closed FELIX-819. ------------------------------------- Yep it does. I've closed it. Thanks! > unable to rename / delete bundle cache location on update or uninstall > ---------------------------------------------------------------------- > > Key: FELIX-819 > URL: https://issues.apache.org/jira/browse/FELIX-819 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.4.1 > Environment: Windows (XP Pro) > Reporter: Walid Joseph Gedeon > Assignee: Richard S. Hall > Fix For: felix-1.4.1 > > Attachments: test-bundles.zip > > > Hello all, > It looks like the revision.location is missing from the bundle cache after the shutdown purge. Steps: > - install bundle > - update bundle > - shutdown > The next start shows a: > ERROR: org.apache.felix.framework.cache.BundleCache: Error creating archive. (java.io.FileNotFoundException: .\felixcache\bundle24\version2.0\revision.location (The system cannot find the file specified)) > Looking in the directory, the file is not there. > Stepping through the code shows that the BundleArchive.purge() attempts to rename the last bundle revision to a fresh one... except that the File.rename is not platform independent (it fails on windows quite often). > When BundleCache.getSecureAction().renameFile(revisionDir, currentDir) returns false (rename failed), createRevisionFromLocation follows and does not include a new revision.location file. > Maybe a call to setRevisionLocation() is to be made after createRevisionFromLocation (BundleArchive:866)? I'll try that out... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.