title: Not enough bytes to read value of component 0 - Hector Composite column Read
body: <p>Facing an issue while reading from composite columns using hector api.</p>
  
  <p>My column family:</p>
  
  <pre><code>create column family step_wise_stats_cc with key_validation_class = 'CompositeType(UTF8Type, UTF8Type)' and comparator = UTF8Type and default_validation_class = UTF8Type;
  </code></pre>
  
  <p>Data:
  Row Key:{TYPE-1,SUB-TYPE-1}<br>
  Columns:Name1:Value1</p>
  
  <p>I am querying it like this:</p>
  
  <pre><code>Cluster cluster = HFactory.getOrCreateCluster("cls1", "localhost:9160");;
  Keyspace keyspace = HFactory.createKeyspace("ks1",cluster);;
  Serializer se = StringSerializer.get();
  
  Composite start = new Composite();
  start.addComponent(0, "TYPE-1", ComponentEquality.EQUAL);
  start.addComponent(1, "SUB-TYPE-1", ComponentEquality.EQUAL);
  Composite end = new Composite();
  end.addComponent(0, "TYPE-1", ComponentEquality.GREATER_THAN_EQUAL);
  start.addComponent(1, "SUB-TYPE-1", ComponentEquality.GREATER_THAN_EQUAL);
  
  SliceQuery&lt;String, Composite, String&gt; sliceQuery = HFactory.createSliceQuery(keyspace, se, CompositeSerializer.get(), se);;
  sliceQuery.setColumnFamily("cf1");
  sliceQuery.setKey("TYPE-1");
  sliceQuery.setRange(start, start, false, 999);
  
  QueryResult&lt;ColumnSlice&lt;Composite, String&gt;&gt; qr = sliceQuery.execute();
  </code></pre>
  
  <p>But getting below exception:
  me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestExc
  eption(why:Not enough bytes to read value of component 0)</p>
  
  <p>Any help?</p>