Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035333Openbravo ERP00. Application dictionarypublic2017-02-22 07:402017-02-27 13:03
pradeepvarma 
vmromanos 
highmajoralways
closedfixed 
5
 
 
vmromanos
Core
No
0035333: Build error in RR17Q1 with latest Improved Balance Sheet and P&L Structure Report version (1.0.0)
To view all all new features I am upgrading to RR17Q1 on a test instance. I do get a compile problem listed below. Would you be able
to point me in the right direction to finalize the compile? Did the compile via the UI. Will try again via the command line.

compileSqlc:
[javac] Compiling 2261 source files to /opt/OpenbravoERP/build/classes
[javac]
/opt/OpenbravoERP/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_repor
ts/GeneralAccountingReports.java:680: error: cannot find symbol
[javac] String[] orgList = OBContext.getOBContext().getRole().getOrganizationList().split(",");
[javac] ^
[javac] symbol: method getOrganizationList()
[javac] location: class Role
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
PFB the steps to reproduce:
1. Upgrade the version to PR17Q1 through module management.
2. Then add openbravo retail module (RR17Q1) through module management.
3. Add the module "Improved Balance Sheet and P&L Structure Report" through module management.
4. Open the terminal and run the command "ant smartbuild -Dlocal=no -Dforce=true"
and check the above mention error. Or build the instance throught UI and notice this error being thrown.

No tags attached.
related to defect 0034297 closed alostale api change: removed CLIENTLIST and ORGLIST from AD_ROLE 
related to defect 00342013.0PR17Q1 closed alostale can't create import entries while changing role organization access 
related to defect 0034233 closed Sanjota Modules Automation. Modules fixes 
log build.log (43,518) 2017-02-22 07:40
https://issues.openbravo.com/file_download.php?file_id=10474&type=bug
Issue History
2017-02-22 07:40pradeepvarmaNew Issue
2017-02-22 07:40pradeepvarmaAssigned To => platform
2017-02-22 07:40pradeepvarmaFile Added: build.log
2017-02-22 07:40pradeepvarmaModules => Core
2017-02-22 07:40pradeepvarmaResolution time => 1489532400
2017-02-22 07:40pradeepvarmaTriggers an Emergency Pack => No
2017-02-22 07:55pradeepvarmaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14658#r14658
2017-02-22 08:17alostaleRelationship addedrelated to 0034297
2017-02-22 08:17alostaleRelationship addedrelated to 0034201
2017-02-22 08:17alostaleRelationship addedrelated to 0034233
2017-02-22 08:20alostaleNote Added: 0094527
2017-02-22 08:21alostaleAssigned Toplatform => Triage Finance
2017-02-22 08:21alostaleSummaryBuild error to the version RR17Q1 => Build error in RR17Q1 with latest Improved Balance Sheet and P&L Structure Report version (1.0.0)
2017-02-27 09:29vmromanosStatusnew => scheduled
2017-02-27 09:29vmromanosAssigned ToTriage Finance => vmromanos
2017-02-27 11:08hgbotCheckin
2017-02-27 11:08hgbotNote Added: 0094632
2017-02-27 11:08hgbotStatusscheduled => resolved
2017-02-27 11:08hgbotResolutionopen => fixed
2017-02-27 11:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.report.improved.balancesheet/rev/eb4b97983c33b8d318dc4ea98dd53dd174b2501f [^]
2017-02-27 13:03vmromanosReview Assigned To => vmromanos
2017-02-27 13:03vmromanosNote Added: 0094636
2017-02-27 13:03vmromanosStatusresolved => closed

Notes
(0094527)
alostale   
2017-02-22 08:20   
This is caused by API change PR17Q1.2 [1]. Which is already fixed in org.openbravo.report.improved.balancesheet module [2].

A new version for this module should be published fixing this issue [3].

---
[1] http://wiki.openbravo.com/wiki/API_changes [^]
[2] https://code.openbravo.com/erp/mods/org.openbravo.report.improved.balancesheet/rev/810bfe17aa4ad05b4580c37e4917375aff1bcbe4 [^]
[3] http://centralrepository.openbravo.com/openbravo/org.openbravo.forge.ui/ForgeModuleDetail/ImprovedBalanceSheetandPLStructureReport [^]
(0094632)
hgbot   
2017-02-27 11:08   
Repository: erp/mods/org.openbravo.report.improved.balancesheet
Changeset: eb4b97983c33b8d318dc4ea98dd53dd174b2501f
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Feb 27 10:27:49 2017 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.report.improved.balancesheet/rev/eb4b97983c33b8d318dc4ea98dd53dd174b2501f [^]

Fixed bug 35333: Adapted code to avoid API change
Transplanted changes from Core to avoid API change issue.
Not necessary to increase core dependency as this change works with any Core version

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java
---
(0094636)
vmromanos   
2017-02-27 13:03   
Solution based on current Core's code.

Code review + testing OK.

Released new Improved Balance Sheet and P&L Structure Report 1.0.100