Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030485Retail ModulesWeb POSpublic2015-08-03 16:272015-09-15 13:03
shuehner 
mtaal 
immediateminorhave not tried
closedfixed 
5
 
RR15Q4 
marvintm
No
0030485: 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.
depends on backport 00307983.0PR15Q3.4 closed Retail Openbravo ERP Lots of errors in log during tomcat shutdown related to new import entry project 
has duplicate defect 00306473.0PR15Q4 closed mtaal Openbravo ERP Prevent NPE in log when shutting down 
has duplicate backport 0030682RR15Q4 closed mtaal Retail Modules Lots of errors in log during tomcat shutdown related to new import entry project 
blocks defect 0030603RR15Q4 closed Orekaria Retail Modules Stabilization: RR15Q4 related issues 
zip log files.zip (33,315) 2015-08-26 23:07
https://issues.openbravo.com/file_download.php?file_id=8386&type=bug
Issue History
2015-08-03 16:27shuehnerNew Issue
2015-08-03 16:27shuehnerAssigned To => Retail
2015-08-03 16:27shuehnerTriggers an Emergency Pack => No
2015-08-03 16:28shuehnerNote Added: 0079164
2015-08-03 16:28shuehnerPrioritynormal => immediate
2015-08-24 13:43mtaalNote Added: 0079636
2015-08-24 13:44mtaalRelationship addedhas duplicate 0030647
2015-08-24 13:52mtaalReview Assigned To => alostale
2015-08-24 13:52mtaalAssigned ToRetail => mtaal
2015-08-26 16:40OrekariaRelationship addedblocks 0030603
2015-08-26 22:46hgbotCheckin
2015-08-26 22:46hgbotNote Added: 0079764
2015-08-26 23:07mtaalFile Added: log files.zip
2015-08-26 23:07mtaalStatusnew => scheduled
2015-08-26 23:08mtaalNote Added: 0079766
2015-08-26 23:08mtaalStatusscheduled => resolved
2015-08-26 23:08mtaalFixed in Version => RR15Q4
2015-08-26 23:08mtaalResolutionopen => fixed
2015-08-27 06:28hudsonbotCheckin
2015-08-27 06:28hudsonbotNote Added: 0079767
2015-09-09 09:24mtaalRelationship replacedhas duplicate 0030682
2015-09-09 09:45marvintmStatusresolved => new
2015-09-09 09:45marvintmResolutionfixed => open
2015-09-09 09:45marvintmFixed in VersionRR15Q4 =>
2015-09-09 09:45marvintmStatusnew => scheduled
2015-09-09 09:45marvintmStatusscheduled => resolved
2015-09-09 09:45marvintmResolutionopen => fixed
2015-09-09 09:46marvintmFixed in Version => RR15Q4
2015-09-15 13:03marvintmReview Assigned Toalostale => marvintm
2015-09-15 13:03marvintmStatusresolved => closed

Notes
(0079164)
shuehner   
2015-08-03 16:28   
Marking as immediate as probably affects Q3 also which is very close to be published.
(0079636)
mtaal   
2015-08-24 13:43   
Other log statement:
680677 [Import Entry Manager Main] ERROR org.openbravo.service.importprocess.ImportEntryManager -
java.lang.NullPointerException
at org.openbravo.service.importprocess.ImportEntryManager$ImportEntryManagerThread.run(ImportEntryManager.java:488)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
(0079764)
hgbot   
2015-08-26 22:46   
Repository: erp/devel/pi
Changeset: 69d8860e9335c7a0e3239e8e7e827330180031f8
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Aug 24 15:20:53 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/69d8860e9335c7a0e3239e8e7e827330180031f8 [^]

Related to issue 30485: 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
---
(0079766)
mtaal   
2015-08-26 23:08   
The commit noted in the notes solves the issue. The attached log files.zip shows the result of several try builds, the errors did not re-appear in the try builds.
(0079767)
hudsonbot   
2015-08-27 06:28   
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/744a968b3198 [^]
Maturity status: Test