Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030798Openbravo ERPA. Platformpublic2015-08-03 16:272015-11-16 08:51
shuehner 
Retail 
immediateminorhave not tried
closedfixed 
5
 
3.0PR15Q3.43.0PR15Q3.4 
marvintm
Core
No
0030798: Lots of errors in log during tomcat shutdown related to new import entry project
I.e. in the try-ret-modules test there are often or always many errors on tomcat shutdown which look related to the new import entry project.

Example:
https://ci.openbravo.com/job/try-ret-modules-pgsql/393/artifact/SANDBOX/tomcat-logs/try-ret-modules-pgsql.log [^]

Note: there are many (like 50) errors with all that content in that
2015-08-03 07:13:04,457 [Import Entry Archiver] ERROR org.openbravo.service.importprocess.ImportEntryArchiveManager - WELD-001303 No active contexts for scope type javax.enterprise.context.Dependent
org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.Dependent
    at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:596)
    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)
    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:653)
    at org.jboss.weld.bean.builtin.InstanceImpl.iterator(InstanceImpl.java:133)
    at org.openbravo.service.importprocess.ImportEntryArchiveManager$ImportEntryArchiveThread.run(ImportEntryArchiveManager.java:151)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

If that bug also happens in Q3 (probably likely) that this should be backported also.
run latest retail for in try-retail and check openbravo.log after the job finishes
No tags attached.
blocks defect 0030485 closed mtaal Retail Modules Lots of errors in log during tomcat shutdown related to new import entry project 
Issue History
2015-09-09 09:45marvintmTypedefect => backport
2015-09-09 09:45marvintmTarget Version => RR15Q3.1
2015-09-15 17:54marvintmProjectRetail Modules => Openbravo ERP
2015-09-15 17:55marvintmModules => Core
2015-09-15 17:55marvintmCategoryWeb POS => A. Platform
2015-09-15 17:55marvintmTarget VersionRR15Q3.1 =>
2015-11-04 12:13mtaalAssigned Tomtaal => Retail
2015-11-04 13:00shuehnerTarget Version => 3.0PR15Q3.4
2015-11-05 11:43hgbotCheckin
2015-11-05 11:43hgbotNote Added: 0081508
2015-11-05 11:43hgbotStatusscheduled => resolved
2015-11-05 11:43hgbotResolutionopen => fixed
2015-11-05 11:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.4/rev/14753c185bd512b409f7a299ce9bc739d3add171 [^]
2015-11-06 14:41alostaleReview Assigned Toalostale => marvintm
2015-11-15 12:57hgbotCheckin
2015-11-15 12:57hgbotNote Added: 0081854
2015-11-15 12:59mtaalNote Added: 0081855
2015-11-16 08:51marvintmStatusresolved => closed
2015-11-16 08:51marvintmFixed in Version => 3.0PR15Q3.4

Notes
(0081508)
hgbot   
2015-11-05 11:43   
Repository: erp/backports/3.0PR15Q3.4
Changeset: 14753c185bd512b409f7a299ce9bc739d3add171
Author: Antonio Moreno Perez <antonio.moreno <at> openbravo.com>
Date: Thu Nov 05 11:43:28 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.4/rev/14753c185bd512b409f7a299ce9bc739d3add171 [^]

Fixed issue 30798. Lots of errors in log during tomcat shutdown related to new import entry project.

---
M src/org/openbravo/service/importprocess/ImportEntryArchiveManager.java
M src/org/openbravo/service/importprocess/ImportEntryManager.java
---
(0081854)
hgbot   
2015-11-15 12:57   
Repository: erp/backports/3.0PR15Q3.4
Changeset: 3af9283018735bb5784cd6c256b4d4f0b2d8ba4d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Nov 15 12:50:48 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.4/rev/3af9283018735bb5784cd6c256b4d4f0b2d8ba4d [^]

Related to issue 30798: Lots of errors in log during tomcat shutdown related to new import entry project
Added additional checks to prevent log errors

---
M src/org/openbravo/service/importprocess/ImportEntryArchiveManager.java
M src/org/openbravo/service/importprocess/ImportEntryManager.java
---
(0081855)
mtaal   
2015-11-15 12:59   
Reviewed the changes done by Antonio, they look/work fine. Requested Antonio to look at my changeset, if he is fine the issue can be closed.