Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037532Openbravo ERPA. Platformpublic2017-12-20 20:062022-02-01 08:05
caristu 
Triage Platform Base 
urgentminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0037532: SessionHandler creates session without setting a connection when not using the Tomcat pool
SessionHandler creates the session without setting the database connection when the Tomcat Pool is not configured.
0) Apply the attached patch

1) Configure Openbravo to not make use of the Tomcat Connection Pool. In Openbravo.properties:

db.externalPoolClassName=

2) Login-in in Openbravo

3) Open the About pop-up. Notice that a NPE is thrown. This code does not fail having the Apache JDBC Connection Pool configured.
Decide if at this point[1] it makes sense to set the connection

[1] https://code.openbravo.com/erp/devel/pi/file/tip/src/org/openbravo/dal/core/SessionHandler.java#l249 [^]
No tags attached.
related to feature request 00380993.0PR18Q3 closed jarmendariz Openbravo ERP upgrade from <3.0PR15Q4 preserves old pool config 
has duplicate defect 0036580 acknowledged Triage Platform Base Modules Is not possible to reprocess a request if the Apache JDBC Connection Pool is not configured 
diff npe.diff (1,197) 2017-12-20 20:10
https://issues.openbravo.com/file_download.php?file_id=11383&type=bug
Issue History
2017-12-20 20:06caristuNew Issue
2017-12-20 20:06caristuAssigned To => platform
2017-12-20 20:06caristuModules => Core
2017-12-20 20:06caristuTriggers an Emergency Pack => No
2017-12-20 20:06caristuRelationship addedhas duplicate 0036580
2017-12-20 20:08caristuFile Added: npe.diff
2017-12-20 20:08caristuFile Deleted: npe.diff
2017-12-20 20:10caristuFile Added: npe.diff
2017-12-20 20:12caristuProposed Solution updated
2017-12-20 20:12caristuProposed Solution updated
2018-02-08 10:40caristuStatusnew => scheduled
2018-02-08 10:40caristuAssigned Toplatform => caristu
2018-02-08 10:40caristuAssigned Tocaristu => platform
2018-02-08 10:41caristuStatusscheduled => acknowledged
2018-05-25 14:07caristuSummarySessionHandler creates session without setting a connection when using the Apache JDBC Connection Pool => SessionHandler creates session without setting a connection when not using the Apache JDBC Connection Pool
2018-05-25 14:07caristuRelationship addedrelated to 0038099
2018-05-25 14:08caristuSummarySessionHandler creates session without setting a connection when not using the Apache JDBC Connection Pool => SessionHandler creates session without setting a connection when not using the Tomcat pool
2018-05-25 14:08caristuDescription Updatedbug_revision_view_page.php?rev_id=17190#r17190
2018-05-25 14:08caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17192#r17192
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.