Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016758 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | have not tried | 2011-03-01 12:22 | 2011-04-15 14:46 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | dalsasua | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 2.50MP29 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 332d1690cfa8 | ||||
Projection | none | ETA | none | Target Version | 2.50MP29 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.50MP27 | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
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, | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0035853) dalsasua (reporter) 2011-04-12 15:02 |
No other areas affected. To test, just launch initial organization setup with several configurations: with/out address, with/out modules and accounting, ... |
(0035884) hgbot (developer) 2011-04-13 09:12 |
Repository: erp/stable/2.50 Changeset: 332d1690cfa828ee0b91cdd95312d007880ad749 Author: David Alsasua <david.alsasua <at> openbravo.com> Date: Tue Apr 12 15:01:41 2011 +0200 URL: http://code.openbravo.com/erp/stable/2.50/rev/332d1690cfa828ee0b91cdd95312d007880ad749 [^] Fixes issue 16758. Re-readding the client object --- M src/org/openbravo/erpCommon/businessUtility/InitialOrgSetup.java --- |
(0035988) jonalegriaesarte (reporter) 2011-04-15 14:45 |
Verified |
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 | View Revisions |
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: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 |
Copyright © 2000 - 2009 MantisBT Group |