Hi, I hope somebody can help me. I'm doing this project for my school, but I'm having an error. It seems that the error is produced when SELECT is executed. Here is the error message: "java.lang.NullPointerException"
Here is the piece of code where the error is generated.
 
 try
  { 
    stmt = con.createStatement();
   rs = stmt.executeQuery(SQL);
   rsmd = rs.getMetaData();
    column_count = rsmd.getColumnCount();
   column_name = new String[column_count];
  }
  catch (Exception e)
   {
   System.out.println(SQL + ";" + e.toString());
   finalize();
 
}
 
 
Please send me any feedback. I do not really know what is happening.

Reply via email to