What is your table spec ? 
Do you have the full stack trace from the exception ? 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 29/01/2013, at 8:15 AM, Andy Cobley <acob...@computing.dundee.ac.uk> wrote:

> I have the following code in my app using the JDBC (cassandra-jdbc-1.1.2.jar) 
> drivers to CQL:
> 
> try {
>       rs= stmt.executeQuery("SELECT * FROM users");
> }catch(Exception et){
>       System.out.println("Can not execute statement "+et);
> }
> 
> When connecting to a CQL2 server (cassandra 1.1.5) the code works as expected 
> returning a result set .  When connecting to CQL3 (Cassandra 1.2) I catch the 
> following exception:
> 
> Can not execute statement java.lang.NullPointerException
> 
> The Select statement (Select * from users) does work from CQLSH as expected.  
> Is there a problem with my code or something else ?
> 
> Andy C
> School of Computing
> University of Dundee.
> 
> 
> 
> The University of Dundee is a Scottish Registered Charity, No. SC015096.

Reply via email to