Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 5938 invoked from network); 27 Mar 2009 09:15:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 09:15:14 -0000 Received: (qmail 74828 invoked by uid 500); 27 Mar 2009 09:15:14 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74795 invoked by uid 500); 27 Mar 2009 09:15:14 -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 74787 invoked by uid 99); 27 Mar 2009 09:15:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 09:15:14 +0000 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, 27 Mar 2009 09:15:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC937234C041 for ; Fri, 27 Mar 2009 02:14:51 -0700 (PDT) Message-ID: <463231432.1238145291705.JavaMail.jira@brutus> Date: Fri, 27 Mar 2009 02:14:51 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4125) The in-memory storage back end doesn't work on Windows In-Reply-To: <771676162.1238144452042.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-4125: ----------------------------------- Attachment: derby-4125-1a-improved_path_handling.diff Patch 1a fixes the bug. It uses java.io.File to do most of the path handling. This should be far more portable than the old, broken approach. The issue causing the problem reported, was detecting if a path was absolute or not. I also made some other changes, so that the paths stored in the data store are normalized paths. I have tested it on Windows XP and OpenSolaris. Patch ready for review. > The in-memory storage back end doesn't work on Windows > ------------------------------------------------------ > > Key: DERBY-4125 > URL: https://issues.apache.org/jira/browse/DERBY-4125 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.6.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Critical > Attachments: derby-4125-1a-improved_path_handling.diff > > > Bug reported by Knut Magne Solem, see DERBY-646. > Using the in-memory storage back end fails on Windows (i.e. connect 'jdbc:derby:memory:MyDbTest;create=true'; from ij): > ERROR XJ001: Java exception: 'ASSERT FAILED serviceName = memory:C:\Documents and Settings\user\workspace\derby\MyDbTest;storageFactory.getCanonicalName() = C:\Documents and Settings\user\workspace\derby\MyDbTest: org.apache.derby.shared.common.sanity.AssertFailure'. > With an insane build, the error messages will look like this: > ERROR XJ041: Failed to create database 'memory:myDB', see the next exception for details. > ERROR XBM01: Startup failed due to an exception. See next exception for details. > ERROR XSTB2: Cannot log transaction changes, maybe trying to write to a read only database. > The error occurs during boot, which means Windows users are unable to use the in-memory back end at all. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.