Cita: private static Connection conn = null;
...
try
{
Class.forName(driver).newInstance();
Connection conn = DriverManager.getConnection(url,"root","");
System.out.println("creada la conexion");
}
...
stmt = conn.createStatement();
...
Cuando ejecutas "conn.createStatement();".... ¿Que objeto conn estás usando?