Can you replace your catch statements so that they
look like this
} catch (SQLException e1) {
System.err.println("Error in database " +
e1);
} catch (ClassNotFoundException e2) {
System.err.println("Cannot find database
driver " + e2);
}
I am not 100 % sure that this may solve your
problem...but can you have a go at this..