try{ conn = new Database("oracle").connect(); conn.setNetworkTimeout(null, 30000); //I don't have an Executor, so the field is set to null System.out.println(Switch.date() + " -> Database Connection Initialized"); } catch(SQLException ex){ Logger.getLogger(Switch.class.getName()).log(Level.SEVERE, null, ex); }
Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setNetworkTimeout(Ljava/util/concurrent/Executor;I)V at ke.co.smart.Switch.<init>(Switch.java:524) at ke.co.smart.Switch.main(Switch.java:161) Java Result: 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)