Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030647Openbravo ERPA. Platformpublic2015-08-24 13:162015-08-24 13:44
mtaal 
mtaal 
normalminorhave not tried
closedduplicate 
5
 
3.0PR15Q4 
alostale
Core
No
0030647: Prevent NPE in log when shutting down
When shutting down the application the following NPE's can be seen in the log:


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)
640352 [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)
980678 [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)
940352 [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)
1280678 [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)
1240386 [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)
1580709 [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)
1477317 [http-bio-8080-exec-28] INFO org.openbravo.mobile.core.MobileStaticResourceComponent - A new javascript file have been created: 7976e358c9acd6d5c8b3907a7175d4fc_WebPOS
Run retail and enter some tickets, then shut down tomcat. Sometimes the above errors will show up.

Is caused by the fact that the import thread is still running while the executorService is already set to null.
When the executorService is null then leave the running thread.
No tags attached.
duplicate of defect 0030485 closed mtaal Retail Modules Lots of errors in log during tomcat shutdown related to new import entry project 
Issue History
2015-08-24 13:16mtaalNew Issue
2015-08-24 13:16mtaalAssigned To => mtaal
2015-08-24 13:16mtaalModules => Core
2015-08-24 13:16mtaalTriggers an Emergency Pack => No
2015-08-24 13:16mtaalReview Assigned To => alostale
2015-08-24 13:44mtaalRelationship addedduplicate of 0030485
2015-08-24 13:44mtaalStatusnew => closed
2015-08-24 13:44mtaalResolutionopen => duplicate

There are no notes attached to this issue.