Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0016758 | Openbravo ERP | A. Platform | public | 2011-03-01 12:22 | 2011-04-15 14:46 | |||||||
Reporter | marvintm | |||||||||||
Assigned To | dalsasua | |||||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 2.50MP27 | |||||||||||
Target Version | 2.50MP29 | Fixed in Version | 2.50MP29 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0016758: An exception is always raised when executing Initial Org Setup | |||||||||||
Description | When an organization is created using the Initial Organization Setup process, an exception is always raised: a3196480 213420 [http-8080-4] 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:57) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.openbravo.model.ad.utility.Image$$EnhancerByCGLIB$$892906a0.getBindaryData(<generated>) at org.openbravo.erpCommon.businessUtility.InitialOrgSetup.addImages(InitialOrgSetup.java:532) at org.openbravo.erpCommon.businessUtility.InitialOrgSetup.createOrganization(InitialOrgSetup.java:183) at org.openbravo.erpCommon.ad_forms.InitialOrgSetup.doPost(InitialOrgSetup.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225) at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:456) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) The reason seems to be that the connection was committed and closed before the addImages() method is called, thus when that method tries to read the information about the standard images, it fails. | |||||||||||
Steps To Reproduce | Create an organization using the Initial Organization Setup process, choosing a reference data item different from core, and watch the tomcat log. | |||||||||||
Proposed Solution | --- a/src/org/openbravo/erpCommon/businessUtility/InitialOrgSetup.java +++ b/src/org/openbravo/erpCommon/businessUtility/InitialOrgSetup.java @@ -152,10 +152,11 @@ OBDal.getInstance().flush(); OBDal.getInstance().commitAndClose(); org = OBDal.getInstance().get(Organization.class, strOrgId); + client = org.getClient(); if (strcLocationId != null && !strcLocationId.equals("")) try { InitialSetupUtility.updateOrgLocation(org, | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2011-04-12 11:36 | dalsasua | Type | defect => backport | |||||||||
2011-04-12 11:36 | dalsasua | fix_in_branch | => 2.50 | |||||||||
2011-04-12 11:56 | dalsasua | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=1814#r1814 | |||||||||
2011-04-12 15:02 | dalsasua | Note Added: 0035853 | ||||||||||
2011-04-13 09:07 | dalsasua | Proposed Solution updated | ||||||||||
2011-04-13 09:12 | hgbot | Checkin | ||||||||||
2011-04-13 09:12 | hgbot | Note Added: 0035884 | ||||||||||
2011-04-13 09:12 | hgbot | Status | scheduled => resolved | |||||||||
2011-04-13 09:12 | hgbot | Resolution | open => fixed | |||||||||
2011-04-13 09:12 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/332d1690cfa828ee0b91cdd95312d007880ad749 [^] | |||||||||
2011-04-13 11:31 | dalsasua | Status | resolved => new | |||||||||
2011-04-13 11:31 | dalsasua | Resolution | fixed => open | |||||||||
2011-04-13 11:31 | dalsasua | OBNetwork customer | Yes => No | |||||||||
2011-04-13 11:31 | dalsasua | OBNetwork customer | No => Yes | |||||||||
2011-04-13 11:32 | dalsasua | Status | new => scheduled | |||||||||
2011-04-13 11:32 | dalsasua | fix_in_branch | 2.50 => pi | |||||||||
2011-04-13 11:32 | dalsasua | Status | scheduled => resolved | |||||||||
2011-04-13 11:32 | dalsasua | Resolution | open => fixed | |||||||||
2011-04-13 11:44 | xabiermerino | Status | resolved => new | |||||||||
2011-04-13 11:44 | xabiermerino | Resolution | fixed => open | |||||||||
2011-04-13 11:44 | xabiermerino | Severity | major => minor | |||||||||
2011-04-13 11:44 | xabiermerino | Status | new => scheduled | |||||||||
2011-04-13 11:44 | xabiermerino | fix_in_branch | pi => | |||||||||
2011-04-13 11:44 | xabiermerino | Status | scheduled => resolved | |||||||||
2011-04-13 11:44 | xabiermerino | Resolution | open => fixed | |||||||||
2011-04-15 14:45 | jonalegriaesarte | Note Added: 0035988 | ||||||||||
2011-04-15 14:45 | jonalegriaesarte | Status | resolved => closed | |||||||||
2011-04-15 14:46 | jonalegriaesarte | Fixed in Version | => 2.50MP29 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|