Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035178Openbravo ERPA. Platformpublic2017-02-07 08:592017-02-10 07:35
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR16Q4.33.0PR16Q4.3 
alostale
Core
Production - QA Approved
2016-09-08
3.0PR16Q4
https://code.openbravo.com/erp/devel/pi/rev/b4a8ad7a445ff946888867836f3c3c80cb988f2a [^]
No
0035178: 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:50
https://issues.openbravo.com/file_download.php?file_id=10419&type=bug
Issue History
2017-02-07 09:00caristuTypedefect => backport
2017-02-07 09:00caristuTarget Version => 3.0PR16Q4.3
2017-02-07 09:50caristuFile Added: calloutMyPool.diff
2017-02-07 09:57hgbotCheckin
2017-02-07 09:57hgbotNote Added: 0094112
2017-02-07 09:57hgbotStatusscheduled => resolved
2017-02-07 09:57hgbotResolutionopen => fixed
2017-02-07 09:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/1b9ee78082ee692d0d71f39e0b641eb9ce4ecdf7 [^]
2017-02-07 10:04caristuReview Assigned To => alostale
2017-02-07 10:08caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14504#r14504
2017-02-10 07:35alostaleNote Added: 0094197
2017-02-10 07:35alostaleStatusresolved => closed
2017-02-10 07:35alostaleFixed in Version => 3.0PR16Q4.3

Notes
(0094112)
hgbot   
2017-02-07 09:57   
Repository: erp/backports/3.0PR16Q4.3
Changeset: 1b9ee78082ee692d0d71f39e0b641eb9ce4ecdf7
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Feb 07 09:57:04 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/1b9ee78082ee692d0d71f39e0b641eb9ce4ecdf7 [^]

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

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