Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030647
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2015-08-24 13:162015-08-24 13:44
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version3.0PR15Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030647: Prevent NPE in log when shutting down

DescriptionWhen 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
Steps To ReproduceRun 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.
Proposed SolutionWhen the executorService is null then leave the running thread.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0030485 closedmtaal Retail Modules Lots of errors in log during tomcat shutdown related to new import entry project 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-08-24 13:16 mtaal New Issue
2015-08-24 13:16 mtaal Assigned To => mtaal
2015-08-24 13:16 mtaal Modules => Core
2015-08-24 13:16 mtaal Triggers an Emergency Pack => No
2015-08-24 13:16 mtaal Review Assigned To => alostale
2015-08-24 13:44 mtaal Relationship added duplicate of 0030485
2015-08-24 13:44 mtaal Status new => closed
2015-08-24 13:44 mtaal Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker