Subject Re: [Firebird-Java] Re: how to insert??
Author Daniel Bertin
I was doing a select * after the insert;

stmt.execute();

// stmt.execute(sqlstring);

ResultSet rs = stmt.executeQuery("SELECT * FROM FEATURES");



// Display the SQL Results
while(rs.next()) {
System.out.println(rs.getString("TITLE"));
}


// Make sure our database resources are released
rs.close();
stmt.close();
con.close();







At 06:54 PM 7/31/2003 +0000, you wrote:
> > is this what you mean by stack trace?
>
>Yes.
>
> > Exception in thread "main" java.lang.NullPointerException
> > at
> >
>org.firebirdsql.jdbc.FBPreparedStatement.prepareFixedStatement(FBPreparedStatement.java:702)
>
> >
> > at
> > org.firebirdsql.jdbc.FBStatement.internalExecute(FBStatement.java:930)
> > at org.firebirdsql.jdbc.FBStatement.executeQuery(FBStatement.java:102)
> > at testjdbc.main(testjdbc.java:72)
>
>Can you post complete code of the main(String[]) method of
>testjdbc.java (or simply full testjdbc.java)? From the stack trace I
>see that for some reason Statement.executeQuery() is called, and it
>shouldn't.
>
>Best regards,
>Roman Rokytskyy
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><http://rd.yahoo.com/M=259538.3625325.4914071.1261774/D=egroupweb/S=1705006764:HM/A=1695348/R=0/SIG=11u38u3s2/*http://hits.411web.com/cgi-bin/hit?page=1374-105951838331032>22d78e.jpg
>22d7ec.jpg
>
>To unsubscribe from this group, send an email to:
>Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
>Your use of Yahoo! Groups is subject to the
><http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.