Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036799Openbravo ERPY. DBSourceManagerpublic2017-09-05 19:102022-02-01 08:05
inigosanchez 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0036799: workingDir path should be get from source.path property instead of user.dir property.
This method [1] is used to retrieves the properties from Openbravo properties file. This method can't find Openbravo properties file because this file is located in source.path/config/Openbravo.properties not in user.dir/config/Openbravo.properties

[1]. https://code.openbravo.com/erp/devel/dbsm-main/file/3951b20a691d/src/org/openbravo/ddlutils/util/DBSMOBUtil.java#l1231 [^]
-Install EZattributes module
-In order to Execute GenerateProcess.java task go to [Easy Extensible Attributes] window and create in grid view a new record:
* Window: Assets
* Module: Select a module for testing purposes.
-Go to [Tab] subtab and create in grid view a new record:
* Window: Assets
* Tab: Assets
* Table: A_Asset
* Saved_Ad_Tab_Id: Assets
-Go to [Field] subtab and create in grid view a new record:
* Field Template: Name
* Column: Name
* Field: Name - Assets - Assets
-Focus on header tab and execute "Apply to Application Dictionary" process.
-Process is executed succesfully but an error in console is shown:

..............................................................
119768 INFO - 0 records have been exported from table OBUIAPP_PARAMETER
119769 INFO - Database [name=PostgreSql server; 2 tables; 0 sequences; 7 views; 15 functions; 61 triggers]
119769 INFO - Database [name=tables; 1 tables; 0 sequences; 0 views; 0 functions; 1 triggers]
Error while obtaining the Openbravo.properties file
java.io.FileNotFoundException: /home/openbravo/../../config/Openbravo.properties (No such file or directory)
There was a problem updating the CRC in the database.
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at org.openbravo.ddlutils.util.DBSMOBUtil.getOpenbravoProperties(DBSMOBUtil.java:1266)
    at org.openbravo.ddlutils.util.DBSMOBUtil.getUnpooledConnection(DBSMOBUtil.java:652)
    at org.openbravo.ddlutils.util.DBSMOBUtil.updateCRC(DBSMOBUtil.java:628)
    at org.openbravo.ezattributes.processes.GenerateProcess.execute(GenerateProcess.java:1157)
    at org.openbravo.scheduling.ProcessRunner.execute(ProcessRunner.java:83)
    at
...............................
This line:

     String workingDir = System.getProperty("source.path");

instead of this one:

     String workingDir = System.getProperty("user.dir");
No tags attached.
Issue History
2017-09-05 19:10inigosanchezNew Issue
2017-09-05 19:10inigosanchezAssigned To => platform
2017-09-05 19:10inigosanchezModules => Core
2017-09-05 19:10inigosanchezTriggers an Emergency Pack => No
2017-09-28 12:35alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.