Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036065Openbravo ERPA. Platformpublic2017-05-22 16:522023-07-04 12:34
javietxe 
Triage Platform Base 
highmajoralways
newopen 
5
 
 
Core
No
0036065: [SERQA 2875] Exceptions in onTransactionCompleted
When implementing an event handler in java, if the method onTransactionCompleted is implemented and an exception happens, the database transaction is never closed.

The transaction must be closed.
1) Implement a event handler reading any entity.
2) put this code on it:

public void onTransactionCompleted(@Observes TransactionCompletedEvent event) {
    throw new NullPointerException();
  }

3) See that the transaction is not closed.
Capture the exceptions in a centralized way in a parent class or document that in onTransactionCompleted method no exception throwing is allowed.
No tags attached.
Issue History
2017-05-22 16:52javietxeNew Issue
2017-05-22 16:52javietxeAssigned To => platform
2017-05-22 16:52javietxeModules => Core
2017-05-22 16:52javietxeResolution time => 1496613600
2017-05-22 16:52javietxeTriggers an Emergency Pack => No
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.