Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 4979 invoked from network); 5 Aug 2005 01:46:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Aug 2005 01:46:11 -0000 Received: (qmail 32562 invoked by uid 500); 5 Aug 2005 01:46:10 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 32536 invoked by uid 500); 5 Aug 2005 01:46:09 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 32523 invoked by uid 99); 5 Aug 2005 01:46:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 18:46:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 68.142.198.202 is neither permitted nor denied by domain of mcintyre.a@gmail.com) Received: from [68.142.198.202] (HELO smtp103.sbc.mail.mud.yahoo.com) (68.142.198.202) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Aug 2005 18:45:59 -0700 Received: (qmail 82076 invoked from network); 5 Aug 2005 01:46:06 -0000 Received: from unknown (HELO ?192.168.0.5?) (fuzzylogic@sbcglobal.net@68.122.116.24 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 5 Aug 2005 01:46:06 -0000 Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: <42F29685.9060402@comcast.net> References: <42F29685.9060402@comcast.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <148DBC46-FC8F-4FE6-8F95-965FD0645547@gmail.com> Content-Transfer-Encoding: 7bit From: Andrew McIntyre Subject: Re: Derby with OS X Tiger (10.4) Java 1.5.0_02? Log problem? Date: Thu, 4 Aug 2005 18:46:04 -0700 To: "Derby Discussion" X-Mailer: Apple Mail (2.733) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Aug 4, 2005, at 3:28 PM, Barnet Wagman wrote: > Has anyone successfully used Derby with OS X 10.4 and Java > 1.5.0_02? I'm getting the "Cannot log transaction changes ..." > problem (http://issues.apache.org/jira/browse/DERBY-1) even though > I've used the > derby.storage.fileSyncTransactionLog=true > fix. > > I am able to create a database and put data into it. But after > shutting down and starting a new session, I get the "log > transaction ..." error when I try to add to it. Hi Barnet, When you shut down and start a new session, you need to set that system property in the new session as well. Because this is a general problem with the way the Apple JVM writes "rws" mode files, you need to force Derby to use "rw" mode each time you start up, or the same error will be hit when Derby attempts to write new data. As you have discovered, reading files works as expected, but the bug in the JVM is only hit if you attempt to write. Try setting that system property each time you connect and you should be able to write new data to the database in each session, so long as that system property is set each and every time before you obtain a connection to the database. The property can also be set in the derby.properties for that database. For more information on how to do that, please see the section "Changing the system-wide properties by using the derby.properties file" in the Derby Tuning Guide: http://db.apache.org/derby/docs/10.1/tuning/ about half way down the page. Note that the file needs to be in the location specified by the derby.system.home property, and that there is only one derby.properties per system, not per database. hope that helps, andrew