Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041359Openbravo ERPA. Platformpublic2019-07-11 12:142019-07-16 11:19
Leyre 
alostale 
immediatemajorrandom
closedfixed 
5
 
3.0PR19Q2.13.0PR19Q2.1 
AugustoMauch
Core
Production - Confirmed Stable
2018-11-22
3.0PR19Q1
https://code.openbravo.com/erp/devel/pi/rev/4d71d9e4d6d5c9be49d1a301da6dbeefeb5d9048 [^]
No
0041359: 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.
blocks defect 0041338 closed alostale error when opening some backoffice windows 
Issue History
2019-07-15 14:10alostaleTypedefect => backport
2019-07-15 14:10alostaleTarget Version => 3.0PR19Q2.1
2019-07-16 08:25hgbotCheckin
2019-07-16 08:25hgbotNote Added: 0113391
2019-07-16 08:25hgbotStatusscheduled => resolved
2019-07-16 08:25hgbotResolutionopen => fixed
2019-07-16 08:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/87c115a338c25a44e2e36ed1d802493f731409cd [^]
2019-07-16 11:19AugustoMauchNote Added: 0113398
2019-07-16 11:19AugustoMauchStatusresolved => closed
2019-07-16 11:19AugustoMauchFixed in Version => 3.0PR19Q2.1

Notes
(0113391)
hgbot   
2019-07-16 08:25   
Repository: erp/backports/3.0PR19Q2.1
Changeset: 87c115a338c25a44e2e36ed1d802493f731409cd
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jul 16 08:25:41 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/87c115a338c25a44e2e36ed1d802493f731409cd [^]

fixed bug 41359: 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
M src-test/src/org/openbravo/test/base/TestConstants.java
A modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/ADCSTest.java
---
(0113398)
AugustoMauch   
2019-07-16 11:19   
Code reviewed and verified