title: Astyanax: simple write throwing this exception: Not enough bytes to read value of component
body: <p>I am new to astyanax and trying some sample programs and getting this error. This is a simple write and looks like am doing some thing basic wrong. Not using composite keys.</p>
  
  <pre><code>Caused by: InvalidRequestException(why:Not enough bytes to read value of component 0)
      at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:20833)
      at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
      at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:964)
      at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:950)
      at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1$1.internalExecute(ThriftKeyspaceImpl.java:120)
      at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1$1.internalExecute(ThriftKeyspaceImpl.java:117)
      at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperationImpl.java:56)
  </code></pre>
  
  <p>Here's the code:</p>
  
  <pre><code>    AstyanaxContext&lt;Keyspace&gt; context = new AstyanaxContext.Builder()
          .forCluster(CLUSTER_NAME)
          .forKeyspace(keySpaceName)
          .withAstyanaxConfiguration(new AstyanaxConfigurationImpl()      
              .setDiscoveryType(NodeDiscoveryType.RING_DESCRIBE)
              .setCqlVersion("3.0.0")
              .setTargetCassandraVersion("1.2")
          )
          .withConnectionPoolConfiguration(new ConnectionPoolConfigurationImpl("MyConnectionPool")
              .setPort(50825)
              .setMaxConnsPerHost(10)
              .setSeeds("nodename:50825")
              .setConnectTimeout(20000)
          )
          .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
          .buildKeyspace(ThriftFamilyFactory.getInstance());
  
      context.start();
      System.out.println("getting context.. done ");
      Keyspace keyspace = context.getEntity();
      MutationBatch m = keyspace.prepareMutationBatch();
  
      ColumnFamily&lt;String, String&gt; colFam = new ColumnFamily&lt;String, String&gt;("test",
              StringSerializer.get(), StringSerializer.get());
  
      m.withRow(colFam, "abc")
          .putColumn("col2", "test1", null);
      m.execute();
  </code></pre>
  
  <p>Here's the table describe:</p>
  
  <pre><code>CREATE TABLE test (
   col1 text PRIMARY KEY,
   col2 text,
   col3 text
  ) WITH
   bloom_filter_fp_chance=0.010000 AND
   caching='KEYS_ONLY' AND
   comment='' AND
   dclocal_read_repair_chance=0.000000 AND
   gc_grace_seconds=864000 AND
   read_repair_chance=0.100000 AND
   replicate_on_write='true' AND
   populate_io_cache_on_flush='false' AND
   compaction={'class': 'SizeTieredCompactionStrategy'} AND
   compression={'sstable_compression': 'SnappyCompressor'};
  </code></pre>