> 
> 685 [main] INFO org.apache.cassandra.cql.jdbc.CassandraConnection - Connected to localhost:9160 using Keyspace demo and CQL version 2.0.0
>  Connected
>  ABC
>  Exception in thread "main" java.lang.NoSuchFieldError: schema
>  at org.apache.cassandra.cql.jdbc.CassandraResultSet.(CassandraResultSet.java:121)
>  at org.apache.cassandra.cql.jdbc.CassandraStatement.doExecute(CassandraStatement.java:167)
>  at org.apache.cassandra.cql.jdbc.CassandraStatement.executeQuery(CassandraStatement.java:227)
>  at App.main(App.java:32)
> 
> 
> 

this is the code :

```
try 
{ 
    Class.forName("org.apache.cassandra.cql.jdbc.CassandraDriver"); 
    Connection conn = DriverManager.getConnection("jdbc:cassandra://localhost:9160/demo"); 

    if (conn != null)
    {
            System.out.println("Connected");
    }

    //String sql = "INSERT INTO employee (eid,eadd,ename,esal,sex) VALUES (2499,'bangalore','amit',10000,'male')"; 
    Statement stmt = conn.createStatement(); 

    //stmt.execute(sql);
    System.out.println("ABC");
    String sql="select *  from employee";       
    ResultSet rs=stmt.executeQuery(sql);
    //System.out.println(rs);
    //System.out.println("value inserted");
    while(rs.next()) 
         {

            System.out.println("id="+rs.getString(1));

            System.out.println();

        }
} 

```