Quote:
Originally Posted by paulchwd
java.lang.NullPointerException
|
That simply means one of your variables is null when it shouldn't be. Without seeing the whole code, however, the cause of it is impossible to figure out. It shouldn't be too hard to track down, however.
Quote:
Originally Posted by paulchwd
and java.Sql does have a createStatement() method, its used to create a statement obj.
|
Kaja said that java.sql.
Statement has no createStatement method. And Kaja is right, because it doesn't - that method belongs in the java.sql.Connection class.
Quote:
Originally Posted by paulchwd
Statement stmt = new con.createStatement();
|
createStatement is a method, not a class, so you don't need the "new" operator preceding it.