Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033490Openbravo ERPA. Platformpublic2016-07-18 11:382016-08-11 18:40
alostale 
alostale 
immediatecriticalsometimes
closedfixed 
5
 
3.0PR16Q4 
caristu
Core
Pre packaging ( pi )
2016-07-08
pi
https://code.openbravo.com/erp/devel/pi/rev/772761fc1df8 [^]
No
0033490: can't create/edit record depending on the order windows are opened
Depending on the order different windows are opened/operated, it is possible to reach a situation where it is not possible to create/edit rows in some of them.

This is mainly reproducible when trying to create a new record in a tab that shares the same table than another tab that has been previously opened in the same session.
1. In an instance with NO module in development
2. Login as Openbravo Admin
3. Open Sales Order window
4. Open Purchase Order window
5. Create new record
    ERRORS:
      -UI: does not show default values
      -logs: ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)
    at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
    at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
    at org.openbravo.model.ad.datamodel.Table_$$_javassist_322.getDataOriginType(Table_$$_javassist_322.java)
    at org.openbravo.client.application.window.FormInitializationComponent.execute(FormInitializationComponent.java:147)
No tags attached.
caused by defect 00332003.0PR16Q4 closed alostale getId in DAL proxy loads object in memory 
Issue History
2016-07-18 11:38alostaleNew Issue
2016-07-18 11:38alostaleAssigned To => alostale
2016-07-18 11:38alostaleModules => Core
2016-07-18 11:38alostaleRegression level => Pre packaging ( pi )
2016-07-18 11:38alostaleRegression date => 2016-07-08
2016-07-18 11:38alostaleRegression introduced in release => pi
2016-07-18 11:38alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/772761fc1df8 [^]
2016-07-18 11:38alostaleTriggers an Emergency Pack => No
2016-07-18 11:39alostaleRelationship addedcaused by 0033200
2016-07-18 11:41alostaleReview Assigned To => caristu
2016-07-18 11:46hgbotCheckin
2016-07-18 11:46hgbotNote Added: 0088549
2016-07-18 11:46hgbotStatusnew => resolved
2016-07-18 11:46hgbotResolutionopen => fixed
2016-07-18 11:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/172bf8f14427197f393e59e6e1253a997c54b446 [^]
2016-07-26 09:03caristuNote Added: 0088655
2016-07-26 09:03caristuStatusresolved => closed
2016-07-26 09:03caristuFixed in Version => 3.0PR16Q4
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089017

Notes
(0088549)
hgbot   
2016-07-18 11:46   
Repository: erp/devel/pi
Changeset: 172bf8f14427197f393e59e6e1253a997c54b446
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 18 11:45:42 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/172bf8f14427197f393e59e6e1253a997c54b446 [^]

fixed bug 33490: can't create/edit record depending on how windows are opened

  Depending on the order different windows were opened/operated within the same
  session, it was not possible to edit/crete records in some of these windows.

  The problem was on how data was cached in ADCS. If more than one tab shared
  the same table, tab.getTable was only initialized for the 1st one because
  tab.getTable.getId() was used to check whether it was already in cache. This
  code before made the table to be fully initialized, but now it only gets the
  id from proxy.

  Fixed by forcing table initialization.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
---
(0088655)
caristu   
2016-07-26 09:03   
Code review + testing OK in pi@c1dff2b0991a
(0089017)
hudsonbot   
2016-08-11 18:40   
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/edaa05b1fb18 [^]
Maturity status: Test