Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012462Openbravo ERPA. Platformpublic2010-02-24 18:522010-03-12 22:39
marvintm 
marvintm 
immediatemajorsometimes
closedfixed 
5
 
2.50MP12 
Core
No
0012462: Sometimes there is an error in a rebuild, but the error message is not shown
Sometimes there is an error in a rebuild, but the error message is not shown, neither in the build log, nor in the rebuild window.

This can happen specially when the error happened inside a task which doesn't directly use Log4j, such as javac.
Modify a Java file of a module so that the syntax is incorrect. After that, rebuild the module.

The problem doesn't always happen. When it happens, you can notice it by looking at the window and realizing that, although there were errors in the build (you get a "red message"), no errors are shown in the "Warnings and errors" box.
No tags attached.
related to defect 00125132.50MP14 closed marvintm When an error is logged in the rebuild window, sometimes it is shown as a warning 
png 2_50mp12_RebuildErrorWarning.PNG (60,408) 2010-03-01 15:36
https://issues.openbravo.com/file_download.php?file_id=2287&type=bug
png

png 2_50mp12_RebuildErrorWarningLog.PNG (47,736) 2010-03-01 15:36
https://issues.openbravo.com/file_download.php?file_id=2288&type=bug
png
Issue History
2010-02-24 18:52marvintmNew Issue
2010-02-24 18:52marvintmAssigned To => marvintm
2010-02-24 19:12hgbotCheckin
2010-02-24 19:12hgbotNote Added: 0024799
2010-02-24 19:12hgbotStatusnew => resolved
2010-02-24 19:12hgbotResolutionopen => fixed
2010-02-24 19:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/910d90095076b588f789f36c435ca1dee36ef47d [^]
2010-02-26 17:44plujanPrioritynormal => immediate
2010-03-01 15:33plujanNote Added: 0024910
2010-03-01 15:33plujanStatusresolved => new
2010-03-01 15:33plujanResolutionfixed => open
2010-03-01 15:35plujanStatusnew => scheduled
2010-03-01 15:35plujanfix_in_branch => pi
2010-03-01 15:36plujanFile Added: 2_50mp12_RebuildErrorWarning.PNG
2010-03-01 15:36plujanFile Added: 2_50mp12_RebuildErrorWarningLog.PNG
2010-03-01 15:37plujanNote Added: 0024911
2010-03-01 18:08marvintmNote Added: 0024919
2010-03-01 18:08marvintmStatusscheduled => resolved
2010-03-01 18:08marvintmFixed in Version => 2.50MP12
2010-03-01 18:08marvintmResolutionopen => fixed
2010-03-01 18:11marvintmRelationship addedrelated to 0012513
2010-03-01 18:11marvintmStatusresolved => closed
2010-03-10 17:24anonymoussf_bug_id0 =>
2010-03-10 18:30anonymoussf_bug_id => 2968103
2010-03-12 22:39hudsonbotCheckin
2010-03-12 22:39hudsonbotNote Added: 0025319

Notes
(0024799)
hgbot   
2010-02-24 19:12   
Repository: erp/devel/pi
Changeset: 910d90095076b588f789f36c435ca1dee36ef47d
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Feb 24 18:56:14 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/910d90095076b588f789f36c435ca1dee36ef47d [^]

Fixed issue 12462. Errors which happened in a task which doesn't use log4j will now always be shown both in the rebuild window and in the log file.

---
M src/org/openbravo/erpCommon/ad_process/ApplyModules.html
M src/org/openbravo/erpCommon/ad_process/ApplyModulesCallServlet.java
M src/org/openbravo/erpCommon/utility/AntExecutor.java
---
(0024910)
plujan   
2010-03-01 15:33   
This issue is not properly fixed. When a compilation error happens, now I have several warnings instead an error:

Warning: /opt/OpenbravoERP/modules/org.openbravo.module.aeat347.es/src/org/openbravo/module/aeat347/es/AEAT347Report.java:146: cannot find symbol
Warning: symbol : class AEAT347ReportDao
Warning: location: class org.openbravo.module.aeat347.es.AEAT347Report
Warning: private void obtainTaxIds(AEAT347ReportDao dao347) {
Warning: ^
Warning: /opt/OpenbravoERP/modules/org.openbravo.module.aeat347.es/src/org/openbravo/module/aeat347/es/AEAT347Report.java:161: cannot find symbol
Warning: symbol : class AEAT347ReportDao
Warning: location: class org.openbravo.module.aeat347.es.AEAT347Report
Warning: private void calculateAmounts(AEAT347ReportDao dao347, String strAmountLimit,
Warning: ^
Warning: /opt/OpenbravoERP/modules/org.openbravo.module.aeat347.es/src/org/openbravo/module/aeat347/es/AEAT347Report.java:202: cannot find symbol
Warning: symbol : class AEAT347ReportDao
Warning: location: class org.openbravo.module.aeat347.es.AEAT347Report
Warning: private void getInvoicesAmounts(AEAT347ReportDao dao347, String strDocTypes,
Warning: ^
Warning: /opt/OpenbravoERP/modules/org.openbravo.module.aeat347.es/src/org/openbravo/module/aeat347/es/AEAT347Report.java:219: cannot find symbol
and more...
(0024911)
plujan   
2010-03-01 15:37   
Two screenshots added to show the inconsistency. At rebuild window there is an ERROR message, but only warnings are shown. In the Show Log window, what is an error and what is a warning is not clear
(0024919)
marvintm   
2010-03-01 18:08   
What we intended to report was fixed. The error messages previously weren't shown in the rebuild window. There is a separate issue (that part of the error message is shown as warnings). A new issue will be logged for this.
(0025319)
hudsonbot   
2010-03-12 22:39   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/910d90095076 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/631c626866c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16685.obx [^]