Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041338Openbravo ERPA. Platformpublic2019-07-11 12:142019-08-22 14:44
Leyre 
alostale 
immediatemajorrandom
closedfixed 
5
 
3.0PR19Q4 
AugustoMauch
Core
Production - Confirmed Stable
2018-11-22
3.0PR19Q1
https://code.openbravo.com/erp/devel/pi/rev/4d71d9e4d6d5c9be49d1a301da6dbeefeb5d9048 [^]
No
0041338: error when opening some backoffice windows
When actions in backoffice windows that have tabs for the same table (ie. Sales Invoice Header and Purchase Invoice Header, both of them based in the same C_Order table) are performed in certain order, it is not possible to open one of those windows, until Tomcat is restarted or ADCS cache is reset.

This is caused because some of this actions can trigger ADCS to be partially initialized for some of these tabs.

In browser A:
- Open Sales Invoice (tab is properly stored in cache due to view generation)
- Open Purchase Invoice (tab is properly stored in cache due to view generation)
- Reset the ApplicationDictionaryCachedStructure either restarting Tomcat or following the steps described in the Proposed Solution section.
- Open Sales Invoice (tab is partially stored in cache dure to WindowSettingsActionHanlder request)
- Open Purchase Invoice (tab is partially stored in cache dure to WindowSettingsActionHanlder request)

In browser B:
- Open Purchase Invoice. The following error will be shown:

Error occured: freemarker.template.TemplateModelException: get(tabView) failed on instance of org.openbravo.client.application.window.StandardWindowComponent
Workaround while the problem is not solved:
1) Download jmxterm-1.0.1-uber.jar
2) java -jar jmxterm-1.0.1-uber.jar
3) open <PID>
4) bean
Openbravo:context=<contexto>,name=ApplicationDictionaryCachedStructures
5) run resetCache

** to the step 3) open <PID>: execute the "jps" command. It returns an id, to use.
No tags attached.
related to defect 0040633 closed alostale Generation of Discounts and Promotions windows fails under some circumstances 
depends on backport 00413583.0PR19Q3 closed alostale error when opening some backoffice windows 
depends on backport 00413593.0PR19Q2.1 closed alostale error when opening some backoffice windows 
depends on backport 00413603.0PR19Q1.3 closed alostale error when opening some backoffice windows 
caused by design defect 0039670 closed alostale view generation scalability issues 
related to defect 0041892 closed alostale Masked String reference can leave ADCS in an inconsitent state 
? 10796_log (136,706) 2019-07-11 12:14
https://issues.openbravo.com/file_download.php?file_id=13105&type=bug
? 10881_log (2,059) 2019-07-11 12:14
https://issues.openbravo.com/file_download.php?file_id=13106&type=bug
log andino_test_openbravo.log (136,677) 2019-07-12 08:24
https://issues.openbravo.com/file_download.php?file_id=13113&type=bug
Issue History
2019-07-11 12:14LeyreNew Issue
2019-07-11 12:14LeyreAssigned To => platform
2019-07-11 12:14LeyreFile Added: 10796_log
2019-07-11 12:14LeyreModules => Core
2019-07-11 12:14LeyreResolution time => 1564610400
2019-07-11 12:14LeyreTriggers an Emergency Pack => No
2019-07-11 12:14LeyreFile Added: 10881_log
2019-07-11 12:15LeyreSummaryError when open a window in Backend => Error opening a window in Backend
2019-07-11 12:15LeyreDescription Updatedbug_revision_view_page.php?rev_id=19096#r19096
2019-07-11 12:33PracticsIssue Monitored: Practics
2019-07-12 08:24LeyreFile Added: andino_test_openbravo.log
2019-07-12 14:08alostaleRelationship addeddepends on 0039670
2019-07-12 14:08alostaleRelationship replacedrelated to 0039670
2019-07-12 14:08alostaleRelationship addedrelated to 0040633
2019-07-12 15:54ahernandezgilIssue Monitored: ahernandezgil
2019-07-15 12:22alostaleSummaryError opening a window in Backend => error when opening some backoffice windows
2019-07-15 12:57AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=19132#r19132
2019-07-15 12:57AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19134#r19134
2019-07-15 13:03AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19135#r19135
2019-07-15 14:05alostaleDescription Updatedbug_revision_view_page.php?rev_id=19136#r19136
2019-07-15 14:05alostaleProposed Solution updated
2019-07-15 14:06alostaleAssigned Toplatform => alostale
2019-07-15 14:06alostalePriorityhigh => immediate
2019-07-15 14:06alostaleReproducibilityalways => random
2019-07-15 14:08alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19137#r19137
2019-07-15 14:08alostaleReview Assigned To => AugustoMauch
2019-07-15 14:09alostaleRegression level => Production - Confirmed Stable
2019-07-15 14:09alostaleRegression date => 2018-11-22
2019-07-15 14:09alostaleRegression introduced in release => 3.0PR19Q1
2019-07-15 14:09alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/4d71d9e4d6d5c9be49d1a301da6dbeefeb5d9048 [^]
2019-07-15 14:10alostaleStatusnew => scheduled
2019-07-15 15:07martinsdanIssue Monitored: martinsdan
2019-07-15 15:14egoitzIssue Monitored: egoitz
2019-07-15 16:13txasuIssue Monitored: txasu
2019-07-15 16:35matias-bernalIssue Monitored: matias-bernal
2019-07-16 07:22hgbotCheckin
2019-07-16 07:22hgbotNote Added: 0113385
2019-07-16 07:23hgbotCheckin
2019-07-16 07:23hgbotNote Added: 0113386
2019-07-16 07:23hgbotStatusscheduled => resolved
2019-07-16 07:23hgbotResolutionopen => fixed
2019-07-16 07:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/15579b4991b60c9ab57f4e6b36d8d49fdbcfdbc5 [^]
2019-07-16 07:23hgbotCheckin
2019-07-16 07:23hgbotNote Added: 0113387
2019-07-16 07:43hgbotCheckin
2019-07-16 07:43hgbotNote Added: 0113388
2019-07-16 08:40alostaleRelationship replacedcaused by 0039670
2019-07-16 12:20jfrancesIssue Monitored: jfrances
2019-07-16 12:26AugustoMauchNote Added: 0113400
2019-07-16 12:26AugustoMauchStatusresolved => closed
2019-07-16 12:26AugustoMauchFixed in Version => 3.0PR19Q4
2019-08-22 14:44hudsonbotCheckin
2019-08-22 14:44hudsonbotNote Added: 0114146
2019-08-22 14:44hudsonbotCheckin
2019-08-22 14:44hudsonbotNote Added: 0114147
2019-08-22 14:44hudsonbotCheckin
2019-08-22 14:44hudsonbotNote Added: 0114148
2019-08-22 14:44hudsonbotCheckin
2019-08-22 14:44hudsonbotNote Added: 0114149
2019-09-26 17:09alostaleRelationship addedrelated to 0041892

Notes
(0113385)
hgbot   
2019-07-16 07:22   
Repository: erp/devel/pi
Changeset: b6525addd506e89d84c5f238ac1907eae5a99df3
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 15 12:18:33 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b6525addd506e89d84c5f238ac1907eae5a99df3 [^]

related to bug 41338: added test case

---
M modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/ADCSTest.java
M src-test/src/org/openbravo/test/base/TestConstants.java
---
(0113386)
hgbot   
2019-07-16 07:23   
Repository: erp/devel/pi
Changeset: 15579b4991b60c9ab57f4e6b36d8d49fdbcfdbc5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 15 12:50:46 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/15579b4991b60c9ab57f4e6b36d8d49fdbcfdbc5 [^]

fixed bug 41338: error when opening some backoffice windows

  Tabs that share the same table (ie. Purchase Invoice Header and Sales Invoice
  Header) could set ADCS to an incorrect state where one of those tabs is partially
  initialized. This cause the view for that tab not to be possible to get generated.

  Fixed by forcing complete tab initialization even the table for it was already
  initialized as it could have been done by another tab with the same table.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
---
(0113387)
hgbot   
2019-07-16 07:23   
Repository: erp/devel/pi
Changeset: 95e4ea70afe5ec3c9cffab0c5246c8e5924b3242
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 15 14:00:44 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/95e4ea70afe5ec3c9cffab0c5246c8e5924b3242 [^]

related to issue 41338: added test case

  Adds a test case which is more similar to reported steps to reproduce.

---
M modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/ADCSTest.java
M src-test/src/org/openbravo/test/base/TestConstants.java
---
(0113388)
hgbot   
2019-07-16 07:43   
Repository: erp/devel/pi
Changeset: 112f56ad6db511ca86ed6b47e247a103d1ef5fc5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jul 16 07:43:23 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/112f56ad6db511ca86ed6b47e247a103d1ef5fc5 [^]

related to issue 41338: reverted unintended change

---
M modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/ADCSTest.java
---
(0113400)
AugustoMauch   
2019-07-16 12:26   
Code reviewed and verified
(0114146)
hudsonbot   
2019-08-22 14:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test
(0114147)
hudsonbot   
2019-08-22 14:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test
(0114148)
hudsonbot   
2019-08-22 14:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test
(0114149)
hudsonbot   
2019-08-22 14:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test