Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009931Openbravo ERPA. Platformpublic2009-07-16 14:132009-10-17 00:00
roklenardic 
marvintm 
urgentmajoralways
closedfixed 
20Ubuntu 9.04
2.50MP2 
pi 
Core
No
0009931: ant apply.modules fails on fresh installation
taking a fresh installation, checking out code of a module and then trying to install the module from the commandline using the ant apply.modules fails:

[root@x.x.x.x AppsOpenbravo]# ant apply.modules -Dmodule=org.openbravo.howto.roles
Buildfile: build.xml

apply.modules:
     [echo] Applying org.openbravo.howto.roles modules...

init:

set.code.rev:

code.rev:

update.database.mod:

init:

database.lib:

init:

compile:

build.jar:
      [jar] Building jar: /opt/AppsOpenbravo/src-db/build/lib/dbmanager.jar

jar:
     [copy] Copying 1 file to /opt/AppsOpenbravo/src-db/database/lib

init:

core.lib:

init:

compile:
    [javac] Compiling 17 source files to /opt/AppsOpenbravo/src-core/build/classes

build.jar:
      [jar] Building jar: /opt/AppsOpenbravo/src-core/lib/openbravo-core.jar

build:

copy.core.lib:
     [copy] Copying 1 file to /opt/AppsOpenbravo/lib/runtime

update.database.mod:
Initializing in-memory model...
Building runtime model
Model read in-memory, generating mapping...
Dal layer initialized
Database connection: jdbc:postgresql://localhost:5432/openbravo. [^] User: tad
[alterdatabasedatamod] Checking if database structure was modified locally.
[alterdatabasedatamod] Checking if data has changed in the application dictionary.
Database has local changes. Update.database will not be done. If you want to force the update.database, do: ant update.database -Dforce=yes (you will lose all your changes if you do it)

BUILD FAILED
/opt/AppsOpenbravo/build.xml:625: The following error occurred while executing this line:
/opt/AppsOpenbravo/build.xml:546: The following error occurred while executing this line:
/opt/AppsOpenbravo/src-db/database/build.xml:132: Database has local changes. Update.database not done.

Total time: 56 seconds

Apparently, ant apply.module wrongly signals that database has changed on a new installation.
Modularity
related to defect 0011007 closed marvintm apply.modules fails with a NPE when trying to install a module through command line 
Issue History
2009-07-16 14:13roklenardicNew Issue
2009-07-16 14:13roklenardicAssigned To => marvintm
2009-07-21 00:02psarobeTag Attached: Modularity
2009-07-21 00:03psarobeAssigned Tomarvintm => alostale
2009-07-21 00:03psarobePrioritynormal => urgent
2009-07-21 00:03psarobeSeverityminor => major
2009-07-21 00:03psarobeStatusnew => scheduled
2009-09-30 20:03shuehnerAssigned Toalostale => marvintm
2009-09-30 21:15hgbotCheckin
2009-09-30 21:15hgbotNote Added: 0020610
2009-09-30 21:15hgbotStatusscheduled => resolved
2009-09-30 21:15hgbotResolutionopen => fixed
2009-09-30 21:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b973ad5fecad92e6cf5fe0d3e40ae0bc8b989deb [^]
2009-10-01 14:31hgbotCheckin
2009-10-01 14:31hgbotNote Added: 0020628
2009-10-01 14:31hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/b973ad5fecad92e6cf5fe0d3e40ae0bc8b989deb [^] => http://code.openbravo.com/erp/devel/pi/rev/403a1e7e20766d286901eb6b195c0a5de7512058 [^]
2009-10-01 17:49hgbotCheckin
2009-10-01 17:49hgbotNote Added: 0020629
2009-10-01 17:49hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/403a1e7e20766d286901eb6b195c0a5de7512058 [^] => http://code.openbravo.com/erp/devel/pi/rev/53daaf521b160eb182fe6cf609e28d88e6f1722d [^]
2009-10-02 09:52hgbotCheckin
2009-10-02 09:52hgbotNote Added: 0020654
2009-10-02 09:52hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/53daaf521b160eb182fe6cf609e28d88e6f1722d [^] => http://code.openbravo.com/erp/devel/pi/rev/3f8c8da867b822cd22a1a2ef12ab31a2fec7a652 [^]
2009-10-02 11:23hgbotCheckin
2009-10-02 11:23hgbotNote Added: 0020656
2009-10-02 11:23hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/3f8c8da867b822cd22a1a2ef12ab31a2fec7a652 [^] => http://code.openbravo.com/erp/devel/pi/rev/8381ede4fb948090b19c8fa8c2c9e3d2b17eabed [^]
2009-10-02 12:10hgbotCheckin
2009-10-02 12:10hgbotNote Added: 0020660
2009-10-02 12:10hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/8381ede4fb948090b19c8fa8c2c9e3d2b17eabed [^] => http://code.openbravo.com/erp/devel/pi/rev/20ae1dcf15c0b815a58085b488d7c826caccd870 [^]
2009-10-16 10:08iperdomoStatusresolved => closed
2009-10-16 10:08iperdomoNote Added: 0021095
2009-10-16 10:08iperdomoFixed in Version => pi
2009-10-16 10:27iperdomoRelationship addedrelated to 0011007
2009-10-16 10:29iperdomoNote Added: 0021096
2009-10-17 00:00anonymoussf_bug_id0 => 2880774

Notes
(0020610)
hgbot   
2009-09-30 21:15   
Repository: erp/devel/pi
Changeset: b973ad5fecad92e6cf5fe0d3e40ae0bc8b989deb
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Sep 30 21:15:09 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b973ad5fecad92e6cf5fe0d3e40ae0bc8b989deb [^]

Fixed issue 9931. Apply.modules (or update.database) should no longer fail on fresh installations, or installations in which modules have been installed in a normal way.

---
M src-db/database/build.xml
M src-db/database/model/prescript-PostgreSql.sql
---
(0020628)
hgbot   
2009-10-01 14:31   
Repository: erp/devel/pi
Changeset: 403a1e7e20766d286901eb6b195c0a5de7512058
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Oct 01 14:31:38 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/403a1e7e20766d286901eb6b195c0a5de7512058 [^]

issue 0009931: Take into account function overload when calcualting crc in PG

---
M src-db/database/model/prescript-PostgreSql.sql
---
(0020629)
hgbot   
2009-10-01 17:49   
Repository: erp/devel/pi
Changeset: 53daaf521b160eb182fe6cf609e28d88e6f1722d
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Oct 01 17:48:51 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/53daaf521b160eb182fe6cf609e28d88e6f1722d [^]

issue 0009931: dateformat function changes in PG: do not check in the crc

---
M src-db/database/model/prescript-PostgreSql.sql
---
(0020654)
hgbot   
2009-10-02 09:52   
Repository: erp/devel/pi
Changeset: 3f8c8da867b822cd22a1a2ef12ab31a2fec7a652
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Oct 02 09:52:29 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3f8c8da867b822cd22a1a2ef12ab31a2fec7a652 [^]

Related to issue 9931. CRC will be updated on create.database (and install.source)

---
M src-db/database/build-create.xml
M src-db/database/model/prescript-Oracle.sql
M src-db/database/model/prescript-PostgreSql.sql
---
(0020656)
hgbot   
2009-10-02 11:23   
Repository: erp/devel/pi
Changeset: 8381ede4fb948090b19c8fa8c2c9e3d2b17eabed
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Oct 02 11:22:58 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8381ede4fb948090b19c8fa8c2c9e3d2b17eabed [^]

Related to issue 9931. CRC will also be updated on update.database.mod

---
M src-db/database/lib/dbsourcemanager.jar
---
(0020660)
hgbot   
2009-10-02 12:10   
Repository: erp/devel/pi
Changeset: 20ae1dcf15c0b815a58085b488d7c826caccd870
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Oct 02 12:10:34 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/20ae1dcf15c0b815a58085b488d7c826caccd870 [^]

Related to issue 9931. Fixed typo on build.create.

---
M src-db/database/build-create.xml
---
(0021095)
iperdomo   
2009-10-16 10:08   
Checked on pi @ rev 419cc2bd51fa
(0021096)
iperdomo   
2009-10-16 10:29   
The issue solved was the CRC calculation. But trying to install a module in command line using apply.modules fails. Logged a new issue and added relation.