In my
jdbc application I am getting above error, Can you please tell me what is the main reason behind it.
private static void initializeConnection() {
try {
EnvironmentProperties envProperties = DatabaseProperties.envProperties;
String str = envProperties.getDbdriver() + " "
+ envProperties.getDburl() + envProperties.getUserName()
+ envProperties.getPassword();
logger.info(str);
Class.forName(envProperties.getDbdriver());
DBManager.connection = DriverManager.getConnection(
envProperties.getDburl(), envProperties.getUserName(),
envProperties.getPassword());
logger.info("CREATED THE SUCCESSFUL DB CONNECTION!");
} catch (ClassNotFoundException classE) {
logger.error(classE);
// classE.printStackTrace();
} catch (SQLException sqlE) {
logger.error(sqlE);
// sqlE.printStackTrace();
} catch (Exception e) {
logger.error(e);
// e.printStackTrace();
}
}