[yancheng@yancheng jstock]$ ./jstock.sh
Warning: /bin/java does not exist
Exception in thread "Thread-5" java.lang.NullPointerException
NPE in RealTimeStockMonitor.
As a consequence, one of the thread within the thread pool will dead. No one will go n update a portion of stocks. Shall we consider to restart thread, which dead because of unexpected Exception? However, the real solution to this problem is, find out the root cause of NPE. Restarting dead thread is secondary solution, or just complement.