View Single Post
Old Mar 7th, 2007, 4:02 AM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by paulchwd View Post
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 View Post
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 View Post
Statement stmt = new con.createStatement();
createStatement is a method, not a class, so you don't need the "new" operator preceding it.
Arevos is offline   Reply With Quote