Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0016935 | Openbravo ERP | Y. DBSourceManager | public | 2011-04-29 09:35 | 2011-06-02 12:04 |
Reporter | iperdomo | ||||
Assigned To | marvintm | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | 2.6.36-gentoo-r5 | |
Product Version | |||||
Target Version | 3.0MP0 | Fixed in Version | 3.0RC7 | ||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0016935: update.database fails when the sourcedata folder contains any non valid xml file | ||||
Description | When 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 Reproduce | Copy the attached file into your sourcedata folder e.g. src-db/database/sourcedata/AD_MODULE.xml.orig | ||||
Proposed Solution | DBSM should read only .xml files | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=3913&type=bug | ||||
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 | OBNetwork customer | => No | ||
2011-04-29 09:35 | iperdomo | Description Updated | bug_revision_view_page.php?rev_id=1904#r1904 | ||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|