Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016935
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagermajoralways2011-04-29 09:352011-06-02 12:04
ReporteriperdomoView Statuspublic 
Assigned Tomarvintm 
PriorityurgentResolutionfixedFixed in Version3.0RC7
StatusclosedFix in branchFixed in SCM revisionc78852f20fb1
ProjectionnoneETAnoneTarget Version3.0MP0
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_24
OS Version2.6.36-gentoo-r5Database version8.4.5Ant version1.8.1
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016935: update.database fails when the sourcedata folder contains any non valid xml file

DescriptionWhen working with the code repository you might get some conflicts when merging files and you end up with files like filename.xml.orig or filename.xml.rej

If you have one of this files that contains non valid XML code the update.database shows an error

update.database.java:
     [java] Executing database update process without checking changes in local files.
     [java] 0 INFO - Database connection: jdbc:postgresql://localhost:5432/pi. [^] User: tad
     [java] 3302 INFO - Executing full update.database
     [java] 3347 INFO - Reading tables...
     [java] 14156 INFO - Reading views...
     [java] 14772 INFO - Reading sequences...
     [java] 14776 INFO - Reading triggers...
     [java] 15061 INFO - Reading functions...
     [java] 15493 INFO - Sorting foreign keys, indexes and checks...
     [java] 15806 INFO - Starting function and trigger standardization.
     [java] 76248 INFO - Checking datatypes from the model loaded from the database
     [java] 76253 INFO - Original model loaded from database.
     [java] 88368 INFO - Checking datatypes from the model loaded from XML files
     [java] 89138 INFO - Loading data from XML files
     [java] org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
     [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     [java] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
     [java] at org.apache.commons.digester.Digester.parse(Digester.java:1728)
     [java] at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:880)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:129)
     [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:38)
     [java] 90185 ERROR - Parse Fatal Error at line 1 column 2: The markup in the document preceding the root element must be well-formed.
     [java] org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
     [java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
     [java] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
     [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
     [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
     [java] at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
     [java] at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
     [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     [java] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
     [java] at org.apache.commons.digester.Digester.parse(Digester.java:1728)
     [java] at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:880)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:129)
     [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86)
     [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:38)
     [java] 96868 INFO - Loading and applying configuration scripts
Steps To ReproduceCopy the attached file into your sourcedata folder e.g.
src-db/database/sourcedata/AD_MODULE.xml.orig
Proposed SolutionDBSM should read only .xml files
TagsNo tags attached.
Attached Files? file icon AD_MODULE.xml.orig [^] (1,701 bytes) 2011-04-29 09:35

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0036411)
dmitry_mezentsev (developer)
2011-05-05 17:43

Does not fit RC7.
(0036421)
hgbot (developer)
2011-05-05 17:51

Repository: erp/devel/pi
Changeset: 672521a0fa19147b6ed22f0961d65680b55606c7
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu May 05 12:18:18 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/672521a0fa19147b6ed22f0961d65680b55606c7 [^]

Fixed issue 16935. Sourcedata files not ending in .xml will not be loaded

---
M src-db/database/lib/dbsourcemanager.jar
---
(0036829)
hudsonbot (developer)
2011-05-12 13:30

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c40e579fcd38 [^]

Maturity status: Test
(0037880)
hgbot (developer)
2011-06-01 12:33

Repository: erp/devel/dbsm-main
Changeset: c78852f20fb17556cc85a9079358c23ce222ccf0
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu May 05 12:17:44 2011 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/c78852f20fb17556cc85a9079358c23ce222ccf0 [^]

Fixed issue 16935. Sourcedata files not ending in .xml will not be loaded

---
M src/org/openbravo/ddlutils/task/AlterDatabaseDataMod.java
M src/org/openbravo/ddlutils/util/DBSMOBUtil.java
---
(0037915)
iperdomo (reporter)
2011-06-02 12:04

Tested in pi @ rev edb6c469aba9

- Issue History
Date Modified Username Field Change
2011-04-29 09:35 iperdomo New Issue
2011-04-29 09:35 iperdomo Assigned To => marvintm
2011-04-29 09:35 iperdomo File Added: AD_MODULE.xml.orig
2011-04-29 09:35 iperdomo Modules => Core
2011-04-29 09:35 iperdomo Description Updated View Revisions
2011-05-02 10:48 alostale Status new => scheduled
2011-05-02 10:48 alostale fix_in_branch => pi
2011-05-05 17:43 dmitry_mezentsev Note Added: 0036411
2011-05-05 17:43 dmitry_mezentsev Target Version 3.0RC7 => 3.0MP0
2011-05-05 17:43 dmitry_mezentsev fix_in_branch pi =>
2011-05-05 17:51 hgbot Checkin
2011-05-05 17:51 hgbot Note Added: 0036421
2011-05-05 17:51 hgbot Status scheduled => resolved
2011-05-05 17:51 hgbot Resolution open => fixed
2011-05-05 17:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/672521a0fa19147b6ed22f0961d65680b55606c7 [^]
2011-05-12 13:30 hudsonbot Checkin
2011-05-12 13:30 hudsonbot Note Added: 0036829
2011-05-12 13:50 alostale Status resolved => closed
2011-05-12 13:50 alostale Fixed in Version => 3.0RC7
2011-06-01 12:33 hgbot Checkin
2011-06-01 12:33 hgbot Note Added: 0037880
2011-06-01 12:33 hgbot Status closed => resolved
2011-06-01 12:33 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/672521a0fa19147b6ed22f0961d65680b55606c7 [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/c78852f20fb17556cc85a9079358c23ce222ccf0 [^]
2011-06-02 12:04 iperdomo Note Added: 0037915
2011-06-02 12:04 iperdomo Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker