Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 42797 invoked from network); 29 Jan 2010 00:47:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 00:47:37 -0000 Received: (qmail 11060 invoked by uid 500); 29 Jan 2010 00:47:37 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 11012 invoked by uid 500); 29 Jan 2010 00:47:37 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 10992 invoked by uid 99); 29 Jan 2010 00:47:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 00:47:36 +0000 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [67.131.71.74] (HELO mail.warnerpacific.com) (67.131.71.74) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 00:47:27 +0000 Received: from Unknown [192.168.0.128] by mail.warnerpacific.com - Websense Email Security (6.1.1); Thu, 28 Jan 2010 16:47:03 -0800 Received: from ISSashikanthM ([172.25.125.75]) by mail.warnerpacific.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 28 Jan 2010 16:47:03 -0800 From: "Sashi Maddali" To: References: In-Reply-To: Subject: RE: Exception while inserting data back Date: Thu, 28 Jan 2010 16:47:03 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_014B_01CAA039.849F1A80" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcqeuWFhzXOD6jm2TAWiU4jGpSzbNABwaz6g Content-Language: en-us X-OriginalArrivalTime: 29 Jan 2010 00:47:03.0263 (UTC) FILETIME=[92CABEF0:01CAA07C] X-SEF-5A8AEE46-1D59-4C2E-9BD0-8DFFBA6173: 1 X-SEF-Processed: 6_1_1_105__2010_01_28_16_47_04 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_014B_01CAA039.849F1A80 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Tom Do you have any hint on below issue? This is a show stopper for us to continue. Our approach is like this. There will be one centralized database. Every developer will have their local copy. We use ANT scripts to copy schema and data into two different xml files, eg: schema.xml and data.xml. To create these files we take help from ddlutils.jar. Whenever a change in either schema or data in local copy that file will be checkedin into repository. Users will check out that and again with the help of ANT scripts and ddlutils they re-create their database. We use MS SQL Server 2005 as db in everywhere. This model with ddlutils worked fine so far, but giving us below errors in recent days. This issue is a show stopper. I investigated against the data and found no discrepancies. Would you please suggest us if there is anything that I'm missing? A small note from you helps us in solving our issue. Thanks Sashi K Maddali From: Sashikanth Maddali [mailto:Sashikanthm@warnerpacific.com] Sent: Tuesday, January 26, 2010 10:57 AM To: 'ddlutils-dev@db.apache.org' Cc: 'ddlutils-user@db.apache.org' Subject: Exception while inserting data back Hi I'm using ddlutils-1.0.jar (built checking out latest code from SVN, ran ANT JAR and collected jar file from dist folder). Below are the steps I'm doing. 1. Using MS SQL Server 2005 database 2. With the help of ddlutils created two xml files one for DB Schema and another for data from MS SQL Server 2005 3. Now I have two xml files 4. Now again with the help of ANT and ddlutils re-creating schema and data back into the same database (MS SQL server from which these files created before) 5. I'm getting below exception [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21ec4 is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=7855bba3caed4543b07d92c2eac21241 [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21ec5 is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=89d2272bdd4540ad98a04ac4a29ef239 [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21ec6 is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=902769f777c248eba6a992ca4275ba35 [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21ec7 is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=98996ee1b4a54eddb57ee847698a4258 [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21ec8 is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=c40a35f55356411982f8b49bf32b0654 [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21ec9 is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=d6d16dc6d8f8473b8769d079349fae24 [ddlToDatabase] Row BENEFIT_ELEMENT:ID=2c99fde5264d965501264d998dd21eca is still not written because it depends on these yet unwritten rows [ddlToDatabase] BENEFIT_DESCRIPTOR:ID=f032756a426e47f1b3b57f07a2a44ebc BUILD FAILED C:\InIndividual\trunk\Utilities\Build\BuildScript\buildDatabase.xml:530: The following error occurred while executing this line: C:\InIndividual\trunk\Utilities\Build\BuildScript\buildDatabase.xml:105: org.apache.ddlutils.io.DataSinkException: There are 7880 rows still not written because of missing referenced rows at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper .java:541) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j ava:41) at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets (EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn er.java:423) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun ner.java:137) I tried my best to investigate on where I'm going wrong. When I start working on this requirement, we were using ddlutils-1.0.jar which is downloaded from internet. Now I'm using ddlutils version 1.1 which is checked out from SVN and build locally. I looked at generated data file (created from SQL Server 2005 database) too. It looks good to me. Is that because of data reading from MS SQL Server 2005 or is that because of too many rows are waiting for other rows to be inserted and the waiting rows increased to a stage where ddlutils cannot handle them? Any point/hint to solve my problem is greatly appreciated. Thanks Sashi Confidentiality and HIPAA/GLBA Statement: This email, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information which is confidential or prohibited from any disclosure under the HIPAA Privacy Rule, Cal-GLBA or other federal or state laws. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or attachment is strictly prohibited. If you have received this email in error, please notify the original sender and delete this email and any attachments. Thank you. ------=_NextPart_000_014B_01CAA039.849F1A80--