incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dnalls...@taz.qinetiq.com
Subject Re: InvalidRequestException when inserting - why?
Date Fri, 01 Jul 2011 20:26:45 GMT
Quoting Jonathan Ellis <jbellis@gmail.co

I posted the whole message that I saw on the console (which stopped dead in the
middle of the hex value), but I think our logger must be truncating it, which
is why it seemed unclear:

A bit of grepping suggests that the exception is from the following code in
org.apache.cassandra.thrift.ThriftValidation:

catch (MarshalException me)
  {
     throw new InvalidRequestException(String.format("[%s][%s][%s] = [%s] failed
validation (%s)", keyspace,  column_family,                                     
         ByteBufferUtil.bytesToHex(column.name),                                
       ByteBufferUtil.bytesToHex(column.value),
me.getMessage()));
  }


> On Fri, Jul 1, 2011 at 7:12 AM,  <dnallsopp@taz.qinetiq.com> wrote:
> > I assume there's something wrong with the data (the column has
> validation_class:
> > UTF8Type, so is it because I'm inserting non-UTF8 bytes?) but the exception
> > doesn't explain.
>
> That would do it, but it looks like you've cut off the rest of the
> exception message so it's hard to say.



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

This email and any attachments to it may be confidential and are
intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient of this email, you must neither
take any action based upon its contents, nor copy or show it to anyone.
Please contact the sender if you believe you have received this email in
error. QinetiQ may monitor email traffic data and also the content of
email for the purposes of security. QinetiQ Limited (Registered in
England & Wales: Company Number: 3796233) Registered office: Cody Technology 
Park, Ively Road, Farnborough, Hampshire, GU14 0LX http://www.qinetiq.com.

Mime
View raw message