Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011446Openbravo ERPA. Platformpublic2009-11-20 15:152009-11-24 00:00
andreaferaco 
iciordia 
normalminorsometimes
closedno change required 
30Ubuntu 9
2.50MP6 
 
Core
No
0011446: ant task update.database is stuck
we are using MP6 and postgres 8.3.8,
we have an issue regarding the upgrade of an installation with no deletion of business data.
In other words we want to apply new features to an installation of openbravo saving data already stored in the system.
So far we have used this approach (and it WAS working ...):

1) Shutdown of tomcat
2) svn checkout ( in config directory Openbravo.properties is already provided in order to connect to the "target" db, the same used by the webapp)
2) ant database.lib, core.lib
3) ant generate.entities
4) ant update.database -Dforce=yes
5) ant post.jar.clean (src-core\build-util.xml) (*)
6) ant wad.lib, trl.lib
7) ant compile.complete
8) ant war

We have a installation of Hudson in the same LAN of the PC where there are installed Tomcat and Postgres.
When Hudson runs these ant tasks we have this blocking situation (**) at point 4), notice that the point in which Hudson seems to be blocked is not always the same but it is always a "step"
of "ant update.database".
May be these steps work fine with MP4 (previous one we used) but not with MP6?
Have you some suggestions about?


(*)
This ant task is not in the original distribution but it's vey simple ...
...
<property name="base.db.lib" value="../src-db/database/lib"/> <target name="post.jar.clean">
    <delete failonerror="false" file="${base.db.lib}/openbravo-core.jar"/>
</target>
...


(**)
... checkout of the code form svn ...


[trunk] $ cmd.exe /C '"ant.bat database.lib, core.lib && exit %%ERRORLEVEL%%"'

Buildfile: build.xml



set.code.rev:



code.rev:



init:



database.lib:



init:

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\src-db\build\classes

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\src-db\build\lib

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\src-db\docs



compile:

    [javac] Compiling 4 source files to C:\WINDOWS\system32\polinice_dev\trunk\src-db\build\classes



build.jar:

      [jar] Building jar: C:\WINDOWS\system32\polinice_dev\trunk\src-db\build\lib\dbmanager.jar



jar:

     [copy] Copying 1 file to C:\WINDOWS\system32\polinice_dev\trunk\src-db\database\lib



set.code.rev:



code.rev:



init:



core.lib:



init:

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\src-core\build\classes

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\src-core\docs



compile:

    [javac] Compiling 116 source files to C:\WINDOWS\system32\polinice_dev\trunk\src-core\build\classes



build.jar:

      [jar] Building jar: C:\WINDOWS\system32\polinice_dev\trunk\src-core\lib\openbravo-core.jar



build:

Trying to override old definition of task axis-wsdl2java

Trying to override old definition of task axis-admin

Trying to override old definition of task axis-java2wsdl



copy.core.lib:

     [copy] Copying 1 file to C:\WINDOWS\system32\polinice_dev\trunk\lib\runtime



BUILD SUCCESSFUL

Total time: 13 seconds

[trunk] $ cmd.exe /C '"ant.bat generate.entities && exit %%ERRORLEVEL%%"'

Buildfile: build.xml



generate.entities:



init:

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\build\classes

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\WebContent\src-loc\design

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\build\javasqlc

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\build\javasqlc\src

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\build\javasqlc\srcAD

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\srcAD

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\srcAD\org\openbravo\erpWindows

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\srcAD\org\openbravo\erpCommon\ad_actionButton

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\srcAD\org\openbravo\erpCommon\ad_callouts

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\srcAD\org\openbravo\erpCommon\reference

    [mkdir] Created dir: C:\WINDOWS\system32\polinice_dev\trunk\docs\api



compile.src.gen:

    [javac] Compiling 48 source files to C:\WINDOWS\system32\polinice_dev\trunk\build\classes

     [copy] Copying 11 files to C:\WINDOWS\system32\polinice_dev\trunk\build\classes

     [copy] Copying 1 file to C:\WINDOWS\system32\polinice_dev\trunk\build\classes



clean.src.gen:



generate.entities:

 [workflow] Adding param: C:\WINDOWS\system32\polinice_dev\trunk\src/org/openbravo/base/gen/gen_entity.oaw

 [workflow] Adding param: -pob.properties.location=C:\WINDOWS\system32\polinice_dev\trunk\config/Openbravo.properties

 [workflow] Adding param: -pbase.src.gen=C:\WINDOWS\system32\polinice_dev\trunk\src-gen

 [workflow] Adding param: --ant

    [javac] Compiling 495 source files to C:\WINDOWS\system32\polinice_dev\trunk\build\classes

    [javac] Compiling 3 source files to C:\WINDOWS\system32\polinice_dev\trunk\build\classes



BUILD SUCCESSFUL

Total time: 1 minute 13 seconds

[trunk] $ cmd.exe /C '"ant.bat update.database -Dforce=yes && exit %%ERRORLEVEL%%"'

Buildfile: build.xml



set.code.rev:



code.rev:



init:



update.database:



set.code.rev:



code.rev:



init:



database.lib:



init:



compile:



build.jar:



jar:



set.code.rev:



code.rev:



init:



core.lib:



init:



compile:



build.jar:



build:



copy.core.lib:



update.database.java:



fix.date.POSTGRE:

      [sql] Executing commands

      [sql] 1 of 1 SQL statements executed successfully

     [java] Executing database update process without checking changes in local files.

     [java] Initializing in-memory model...

     [java] Building runtime model

     [java] Model read in-memory, generating mapping...

     [java] Dal layer initialized
No tags attached.
related to defect 0010737 closed marvintm Installation of Advanced Payments Pack gets stucked when installing module bpdebtconsolidation 
Issue History
2009-11-20 15:15andreaferacoNew Issue
2009-11-20 15:15andreaferacoAssigned To => rafaroda
2009-11-20 15:15andreaferacoIssue Monitored: andreaferaco
2009-11-20 16:14rafarodaNote Added: 0022070
2009-11-20 16:14rafarodaSeveritycritical => minor
2009-11-20 16:14rafarodaStatusnew => feedback
2009-11-23 12:49iciordiaAssigned Torafaroda => iciordia
2009-11-23 12:55iciordiaRelationship addedrelated to 0010737
2009-11-23 13:12iciordiaNote Added: 0022110
2009-11-23 13:12iciordiaStatusfeedback => closed
2009-11-23 13:12iciordiaDuplicate ID0 => 10737
2009-11-23 13:12iciordiaResolutionopen => no change required
2009-11-24 00:00anonymoussf_bug_id0 => 2902804

Notes
(0022070)
rafaroda   
2009-11-20 16:14   
Thanks for reporting the issue but:
1) We can not consider it as Critical since it is not reproduced with the regular Openbravo ERP source code.
2) Please provide some steps to reproduce this issue in a regular Openbravo ERP code base [1] or ask for support in Openbravo ERP forums [2].

Thank you.

[1] http://wiki.openbravo.com/wiki/Bug_Reporting_Guidelines#How_to_Report_an_Issue [^]
[2] http://forge.openbravo.com/projects/openbravoerp/forum [^]
(0022110)
iciordia   
2009-11-23 13:12   
Andrea,

thanks for reporting the issue. It seems to be a side effect of the related issue (10737) which was fixed in MP8. Feel free to reopen the bug if you experience the issue again after updating to MP8.

Thanks,

Ismael