Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016090 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2011-03-01 12:22 | 2011-06-13 10:11 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | dalsasua | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0MP0 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 3f0c0c2ce654 | ||||
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 | 0016090: 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 | |
(0034807) dvpson (reporter) 2011-03-14 15:30 |
The same issue appears in 3.0 RC4, get the message could not initialise proxy - no session when trying to create a new organisation. |
(0035854) 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, ... |
(0036062) hgbot (developer) 2011-04-21 16:09 |
Repository: erp/devel/pi Changeset: 3f0c0c2ce65406f2c1fe3230d11db33a94a4a371 Author: David Alsasua <david.alsasua <at> openbravo.com> Date: Tue Apr 12 13:54:45 2011 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/3f0c0c2ce65406f2c1fe3230d11db33a94a4a371 [^] Fixes issue 16090. Re-readding the client object --- M src/org/openbravo/erpCommon/businessUtility/InitialOrgSetup.java --- |
(0036760) hudsonbot (developer) 2011-05-12 13:26 |
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/c40e579fcd38 [^] Maturity status: Test |
(0038281) jonalegriaesarte (reporter) 2011-06-13 10:11 |
Verified |
Issue History | |||
Date Modified | Username | Field | Change |
2011-03-01 12:22 | marvintm | New Issue | |
2011-03-01 12:22 | marvintm | Assigned To | => dalsasua |
2011-03-01 12:22 | marvintm | Modules | => Core |
2011-03-01 12:25 | dalsasua | Proposed Solution updated | |
2011-03-10 16:56 | xabiermerino | Priority | normal => high |
2011-03-10 16:56 | xabiermerino | version | => 2.50MP27 |
2011-03-10 16:56 | xabiermerino | Target Version | => 2.50MP29 |
2011-03-14 15:30 | dvpson | Note Added: 0034807 | |
2011-04-12 11:36 | dalsasua | Status | new => scheduled |
2011-04-12 11:36 | dalsasua | fix_in_branch | => pi |
2011-04-12 11:55 | dalsasua | fix_in_branch | pi => |
2011-04-12 11:55 | dalsasua | Steps to Reproduce Updated | View Revisions |
2011-04-12 15:02 | dalsasua | Note Added: 0035854 | |
2011-04-13 09:09 | dalsasua | Proposed Solution updated | |
2011-04-13 11:45 | xabiermerino | Severity | major => minor |
2011-04-21 16:09 | hgbot | Checkin | |
2011-04-21 16:09 | hgbot | Note Added: 0036062 | |
2011-04-21 16:09 | hgbot | Status | scheduled => resolved |
2011-04-21 16:09 | hgbot | Resolution | open => fixed |
2011-04-21 16:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3f0c0c2ce65406f2c1fe3230d11db33a94a4a371 [^] |
2011-05-12 13:26 | hudsonbot | Checkin | |
2011-05-12 13:26 | hudsonbot | Note Added: 0036760 | |
2011-06-13 10:11 | jonalegriaesarte | Note Added: 0038281 | |
2011-06-13 10:11 | jonalegriaesarte | Status | resolved => closed |
2011-06-13 10:11 | jonalegriaesarte | Fixed in Version | => 3.0MP0 |
Copyright © 2000 - 2009 MantisBT Group |