Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029622Openbravo ERPA. Platformpublic2015-04-17 11:082018-01-03 12:39
egoitz 
jarmendariz 
normalminoralways
closedfixed 
5
 
3.0PR18Q1 
caristu
Core
No
0029622: The heartbeat background process fails if the ad_session table is empty
If the ad_session table is truncated before the heatbeat backgroud process is excuted it fails.
-Schedule the heatbeat process to be execute every minute.
-Logout
-Wait a couple of minutes
-Truncate the ad_session table
-wait a couple of minutes
-Loging and check the process monitor window.
The last executions have finished with errors:

bc4ec62b 2015-04-13 04:45:03,207 [DefaultQuartzScheduler_Worker-4] ERROR
org.openbravo.erpCommon.ad_process.HeartbeatProcess -
java.lang.NullPointerException
    at java.util.Calendar.setTime(Calendar.java:1092)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:876)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:869)
    at java.text.DateFormat.format(DateFormat.java:333)
    at org.openbravo.erpCommon.utility.SystemInfo.load(SystemInfo.java:217)
    at org.openbravo.erpCommon.utility.SystemInfo.load(SystemInfo.java:113)
    at
org.openbravo.erpCommon.ad_process.HeartbeatProcess.createQueryStr(HeartbeatProcess.java:221
)
No tags attached.
related to defect 0034453 closed inigosanchez transaction is leaked if HeartbeatProcess fails 
Issue History
2015-04-17 11:08egoitzNew Issue
2015-04-17 11:08egoitzAssigned To => platform
2015-04-17 11:08egoitzModules => Core
2015-04-17 11:08egoitzTriggers an Emergency Pack => No
2015-04-20 09:14alostaleStatusnew => acknowledged
2015-04-20 09:14alostalePrioritynone => normal
2016-12-16 12:40caristuRelationship addedrelated to 0034453
2017-12-13 19:27caristuAssigned Toplatform => jarmendariz
2017-12-14 14:09jarmendarizStatusacknowledged => scheduled
2017-12-19 08:53hgbotCheckin
2017-12-19 08:53hgbotNote Added: 0101113
2017-12-19 08:53hgbotStatusscheduled => resolved
2017-12-19 08:53hgbotResolutionopen => fixed
2017-12-19 08:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ce1ca4d6985cc48c778a8ed854be864b63b359db [^]
2017-12-19 08:57hgbotCheckin
2017-12-19 08:57hgbotNote Added: 0101114
2017-12-19 08:58caristuReview Assigned To => caristu
2017-12-19 08:58caristuNote Added: 0101115
2017-12-19 08:58caristuStatusresolved => closed
2017-12-19 08:58caristuFixed in Version => 3.0PR18Q1
2018-01-03 12:39hudsonbotCheckin
2018-01-03 12:39hudsonbotNote Added: 0101530
2018-01-03 12:39hudsonbotCheckin
2018-01-03 12:39hudsonbotNote Added: 0101531

Notes
(0101113)
hgbot   
2017-12-19 08:53   
Repository: erp/devel/pi
Changeset: ce1ca4d6985cc48c778a8ed854be864b63b359db
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Mon Dec 18 17:35:46 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ce1ca4d6985cc48c778a8ed854be864b63b359db [^]

Fixed bug 29622: Exception in Heartbeat process having AD_Session table empty.

The exception was caused when trying to parse the first and
last login date when AD_Session table is empty.

Now we handle this case and return an empty string when parsing a
null Date object.

---
M src/org/openbravo/erpCommon/utility/SystemInfo.java
---
(0101114)
hgbot   
2017-12-19 08:57   
Repository: erp/devel/pi
Changeset: bcebf5ea2f9600fbab552d62cd6e5215f79f535d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Dec 19 08:57:19 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bcebf5ea2f9600fbab552d62cd6e5215f79f535d [^]

related to issue 29622: wrong first/last login value retrieval for warn logging

---
M src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
---
(0101115)
caristu   
2017-12-19 08:58   
Code reviewed + testing OK.
(0101530)
hudsonbot   
2018-01-03 12:39   
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/c81e0d3cbab5 [^]
Maturity status: Test
(0101531)
hudsonbot   
2018-01-03 12:39   
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/c81e0d3cbab5 [^]
Maturity status: Test