Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030406Openbravo ERPA. Platformpublic2015-07-22 10:562015-08-20 23:16
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
 
inigosanchez
Core
No
0030406: NPE when stopping Tomcat if there are no ImportEntry services available
When trying to stop Tomcat a NPE is thrown in case there are no ImportEntry services available.

It is caused by ContextListener trying to stop those services which are null.
-Install a clean pi (without reatail modules)
-Start tomcat
-Stop tomcat
  -> See openbravo.log:
SEVERE: Exception sending context destroyed event to listener instance of class org.openbravo.service.importprocess.ImportProcessContextListener
java.lang.NullPointerException
    at org.openbravo.service.importprocess.ImportEntryManager.shutdown(ImportEntryManager.java:226)
    at org.openbravo.service.importprocess.ImportEntryManager$Proxy$_$$_WeldClientProxy.shutdown(ImportEntryManager$Proxy$_$$_WeldClientProxy.java)
    at org.openbravo.service.importprocess.ImportProcessContextListener.contextDestroyed(ImportProcessContextListener.java:42)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
No tags attached.
related to feature request 0029766RR15Q3 closed mtaal Retail Modules Retail Operations Buffer: store all transactions in operations table before processing 
Issue History
2015-07-22 10:56alostaleNew Issue
2015-07-22 10:56alostaleAssigned To => platform
2015-07-22 10:56alostaleModules => Core
2015-07-22 10:56alostaleTriggers an Emergency Pack => No
2015-07-22 10:56alostaleRelationship addedrelated to 0029766
2015-07-22 10:57alostaleReview Assigned To => inigosanchez
2015-07-22 11:03hgbotCheckin
2015-07-22 11:03hgbotNote Added: 0079024
2015-07-22 11:03hgbotStatusnew => resolved
2015-07-22 11:03hgbotResolutionopen => fixed
2015-07-22 11:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/dcf8b6e81b7b01c3c54a37e2780bd43f7720e6a5 [^]
2015-07-22 12:40alostaleAssigned Toplatform => alostale
2015-07-27 10:43inigosanchezNote Added: 0079069
2015-07-27 10:43inigosanchezStatusresolved => closed
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079502

Notes
(0079024)
hgbot   
2015-07-22 11:03   
Repository: erp/devel/pi
Changeset: dcf8b6e81b7b01c3c54a37e2780bd43f7720e6a5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jul 22 11:02:34 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/dcf8b6e81b7b01c3c54a37e2780bd43f7720e6a5 [^]

fixed bug 30406: NPE when stopping Tomcat if no ImportEntry service available

  Check if ImportEntry service is present before trying to shutdown it

---
M src/org/openbravo/service/importprocess/ImportEntryArchiveManager.java
M src/org/openbravo/service/importprocess/ImportEntryManager.java
---
(0079069)
inigosanchez   
2015-07-27 10:43   
Code reviewed and verified in pi@f9a8f174d429
(0079502)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test