Connecting to SQL server hangs forever.
When I execute this line
Connection conn = DriverManager.getConnection(url, user, password);
in java 1.7.013 the application hangs forever if the username, password or database name are incorrect.
If the username, password or database name are correct then the connection works fine.
There should be a message in the first case(wrong password...).
I tested this for com.mysql.jdbc.Driver and org.postgresql.Driver.
Regards,
Victor S.