Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035177Openbravo ERPA. Platformpublic2017-02-07 08:592017-02-10 07:33
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR17Q13.0PR17Q1 
alostale
Core
Production - QA Approved
2016-09-08
3.0PR16Q4
https://code.openbravo.com/erp/devel/pi/rev/b4a8ad7a445ff946888867836f3c3c80cb988f2a [^]
No
0035177: Callout's pool should be initialized before executing them
Callout's pool should be initialized before executing them, in other case if the inherited myPool variable is used inside the execute method a NullPointerException will be thrown.
1) Apply the attached "calloutMyPool.diff" which adds a line which makes use of the myPool variable to show a message from the SE_InOut_Warehouse callout.

2) Compile and restart tomcat

3) Open the [Goods Shipment] window and notice that the NullPointerException is thrown in the log.
Initialize myPool in the init method of DelegateConnectionProvider.
No tags attached.
blocks defect 0035176 closed caristu Callout's pool should be initialized before executing them 
diff calloutMyPool.diff (807) 2017-02-07 09:48
https://issues.openbravo.com/file_download.php?file_id=10418&type=bug
Issue History
2017-02-07 09:00caristuTypedefect => backport
2017-02-07 09:00caristuTarget Version => 3.0PR17Q1
2017-02-07 09:48hgbotCheckin
2017-02-07 09:48hgbotNote Added: 0094111
2017-02-07 09:48hgbotStatusscheduled => resolved
2017-02-07 09:48hgbotResolutionopen => fixed
2017-02-07 09:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/d9244dfff23797bbad82c5086c9f5cfb77dee069 [^]
2017-02-07 09:48caristuFile Added: calloutMyPool.diff
2017-02-07 09:49caristuReview Assigned To => alostale
2017-02-07 10:08caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14502#r14502
2017-02-10 07:33alostaleNote Added: 0094196
2017-02-10 07:33alostaleStatusresolved => closed
2017-02-10 07:33alostaleFixed in Version => 3.0PR17Q1

Notes
(0094111)
hgbot   
2017-02-07 09:48   
Repository: erp/backports/3.0PR17Q1
Changeset: d9244dfff23797bbad82c5086c9f5cfb77dee069
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Feb 07 09:48:12 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/d9244dfff23797bbad82c5086c9f5cfb77dee069 [^]

fixes issue 35177: Initialize callout's connection pool on init

---
M src/org/openbravo/erpCommon/ad_callouts/DelegateConnectionProvider.java
---
(0094196)
alostale   
2017-02-10 07:33   
code reviewed + tested