I hava a two classes MainDataBase(parent) and SignUpDatabase.When i call methods of SignUpDatabase seperately,its working fine and when i call two methods same time it shows error.
My classes are :
Parent Class is

This is a JVM crash. Usually I would recommend updating to a more recent JDK (a good idea anyway) and if the problem still occurs sending it to Sun (now Oracle, I guess). But given where it is aborting I suspect that your NIC driver might be bad. Try updating the driver to the latest level. If that does not solve the problem, try to code on another machine. If the problem happens there also, send the issue to Sun/Oracle.

Another possibility: what database are you using and what driver? Be very specific as to which driver. If could be the driver that is crashing.

Post by:faisal hameed
, Ranch Hand

Feb 14, 2010 08:38:01

I am using sql server 2000 and jdk version 1.6.If there is problem of jdbc driver then why single method works fine??

Post by:Jeanne Boyarsky
, Sheriff

Feb 14, 2010 08:47:47

Faisal,
Different code gets executed when you do different things. The face that it worked for something doesn't mean it isn't the driver.

I don't think this is your problem, but note that closing the statement/connection should be in different try/catch blocks. If closing the Statement fails, you still want to close the Connection.

Post by:faisal hameed
, Ranch Hand

Feb 14, 2010 14:45:06

I found its solution by putting con = null; just after con.close(); in method closeConnection();
But i dont know how works?