Getting MySQL error stack trace on Oracle JDBC Connection
I am facing very odd error while making Oracle JDBC connection using a connection string. I am giving username as "sys"(which should be sys as sysdba) and ideally, it should come through ojdbc6.jar but in my case, it is coming from mysql-connector-java-8.0.11.jar which is also included in my project. Please help as I have to keep both the jars in my project. When I remove the mysql-connector-java-8.0.11.jar, I get the expected oracle error mentioned below. private static Connection createConnectionOracle() { Connection conn = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); conn =