Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041358Openbravo ERPA. Platformpublic2019-07-11 12:142019-07-16 11:33
Production - Confirmed Stable
3.0PR19Q1 [^]
0041358: 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
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.0PR19Q3
2019-07-16 07:55hgbotCheckin
2019-07-16 07:55hgbotNote Added: 0113389
2019-07-16 07:55hgbotStatusscheduled => resolved
2019-07-16 07:55hgbotResolutionopen => fixed
2019-07-16 07:55hgbotFixed in SCM revision => [^]
2019-07-16 11:33AugustoMauchNote Added: 0113399
2019-07-16 11:33AugustoMauchStatusresolved => closed
2019-07-16 11:33AugustoMauchFixed in Version => 3.0PR19Q3

2019-07-16 07:55   
Repository: erp/backports/3.0PR19Q3
Changeset: f44622c52c2434aa94c99379cebda137e66b20cf
Author: Asier Lostalé <asier.lostale <at>>
Date: Tue Jul 16 07:55:10 2019 +0200
URL: [^]

fixed bug 41358: 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-test/org/openbravo/client/application/test/
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/
M src-test/src/org/openbravo/test/base/
2019-07-16 11:33   
Code reviewed and verified