cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Grossman <richie...@gmail.com>
Subject Exception on get_range_slice No idea !!
Date Sun, 13 Dec 2009 22:29:19 GMT
Hi,

I've build a DB as I've made with 0.4.2 now with this code :

               final SliceRange sliceRange = new
SliceRange(limitsChannel[0].getBytes("UTF-8"),
limitsChannel[1].getBytes("UTF-8"), false, headendsChannelList.size());
                SlicePredicate predicateKeys = new SlicePredicate(null,
sliceRange);
                ColumnParent parent = new ColumnParent("channelShowDate",
null);
                List<KeySlice> keysSlice = null;

                keysSlice = clientCassandra.get_range_slice("Keyspace1",
parent, predicateKeys, String.valueOf(startDate.getTime()),
                        String.valueOf(endDate.getTime()), (int) diffMillis,
ConsistencyLevel.QUORUM);

I get this :

ERROR [ROW-READ-STAGE:2] 2009-12-14 00:23:11,372
DebuggableThreadPoolExecutor.java (line 127) Error in ThreadPoolExecutor
java.lang.RuntimeException: java.lang.NullPointerException
    at
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:53)
    at
org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:38)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NullPointerException
    at org.apache.cassandra.db.Row.addColumnFamily(Row.java:96)
    at
org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1469)
    at
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:39)
    ... 4 more
ERROR [ROW-READ-STAGE:2] 2009-12-14 00:23:11,388 CassandraDaemon.java (line
71) Fatal exception in thread Thread[ROW-READ-STAGE:2,5,main]
java.lang.RuntimeException: java.lang.NullPointerException
    at
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:53)
    at
org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:38)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NullPointerException
    at org.apache.cassandra.db.Row.addColumnFamily(Row.java:96)
    at
org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1469)
    at
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:39)
    ... 4 more

The point that seems to be very strange is : at
org.apache.cassandra.db.Row.addColumnFamily(Row.java:96)

why If I make a get_range_slice I call a addColumnFamily it's just a query
!!

Please help it's really critical for us to fix this

Thanks for any help

Richard

Mime
View raw message