Hi,
I modified the code and found where is the bug. When I run the jar program in console window.
The pop up ConfirmDialog box displayed and the console window printed:
Starting Data Exchange ...
New an instance. //able to new an instance
Prepare to connect DB. //able to call the DBConnection method.
Prepare to get connection pool. //prepare get connection with the pool
It does NOT show "Got connection pool." and print the following error:
java.lang.NullPointerException
java.util.Timer@141b571
I used MSSQL 2000
JDBC driver and it does not has problem when I run the program in JBuilder.
Did it lose the DataEx main object or it is the
thread problem? What are the potential problems and how can I debug it?
Thanks for any kind advice.
Here is the updated code:
:roll: