Re: accessing records problem

2014-02-10 Thread Zorro
Bob M schreef op 10-2-2014 10:19: Hi I am calling derby within a larger java program Step1: I allocate a database Connection object Step2: I allocate a Statement object in the connection Step 3: I execute a SQL SELECT query, the query result is returned in a ResultSet

RE: accessing records problem

2014-02-10 Thread Henderson, Roy
Should it not perhaps be while(k 100) since you start from 0 and post-increment? What value does k have when you get the NPE? -Original Message- From: Bob M [mailto:rgmatth...@orcon.net.nz] Sent: 10 February 2014 09:20 To: derby-user@db.apache.org Subject: accessing records problem Hi

Re: accessing records problem

2014-02-10 Thread Bob M
After the rs = s.executeQuery line I try to print out a message This message does not get printed out! OK so if s= null is incorrect, then what should I set s to ? Bob M -- View this message in context: http://apache-database.10148.n7.nabble.com/accessing-records-problem-tp136964p136969.html

RE: accessing records problem

2014-02-10 Thread Bob M
yes - it should be while k 100 what value does k get to? I am not sure but I do not seem to be able to retrieve the 100 records correctly Bob M -- View this message in context: http://apache-database.10148.n7.nabble.com/accessing-records-problem-tp136964p136970.html Sent from the Apache

Re: accessing records problem

2014-02-10 Thread Zorro
Bob M schreef op 10-2-2014 13:52: After the rs = s.executeQuery line I try to print out a message This message does not get printed out! OK so if s= null is incorrect, then what should I set s to ? Bob M |s = connection.createStatement() in which connection| is the Connection object