Help : VM 1.2 crashing
Hi,
I have the following problem:
We run a servlet which heavily uses database access via jdbc:odbc. It runs on WinNT and 2000 with JDK1.2 and JRun 2.3.3.
Now the problem is:
The VM is crashing (with Dr.Watson c00000005 - I think this mean Access violation or Segmentation fault) on always the same use case but it is not really reproducible. Sometimes it works fine (algorithm is correct), sometime the VM crashes as soon as the use case starts, sometimes the VM crashes as soon as the use is finished.
I am really helpless!!!!!
What can I do to track down this problem?
What are possible reasons for the VM to crash?
Where can I find additional help?
Hopefulle someone out there can help me.
The only reason a VM will crash is due to a bug. My best advice is for you to try a new version of the JDK, such as 1.3.1, and a newer version of JRun or other servlet engine (JRun 3.x has been out for many months), and see if the problem still occurs. If it does, go to the bug database at http://developer.java.sun.com/developer/bugParade/index.jshtml and see if someone has already reported the problem. If not, report it!
You mentioned database access via the JDBC-ODBC bridge driver. That is a Type 1 JDBC driver (part Java, part native driver) that translates JDBC calls to ODBC calls. The registered ODBC driver then translates the ODBC calls to native database calls. I suspect that the registered ODBC driver is the culprit. Try using another ODBC driver (newer version or different manufacturer) or try using a Type 2 JDBC driver (also a part Java, part native driver however there is one less layer of translation). A list of JDBC drivers provided by different vendors can be found on the following page: http://industry.java.sun.com/products/jdbc/drivers