Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40DF611AF0 for ; Sun, 27 Apr 2014 03:56:39 +0000 (UTC) Received: (qmail 8922 invoked by uid 500); 27 Apr 2014 03:56:36 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 8317 invoked by uid 500); 27 Apr 2014 03:56:28 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 8309 invoked by uid 99); 27 Apr 2014 03:56:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2014 03:56:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of clohfink@blackbirdit.com designates 209.85.213.170 as permitted sender) Received: from [209.85.213.170] (HELO mail-ig0-f170.google.com) (209.85.213.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2014 03:56:21 +0000 Received: by mail-ig0-f170.google.com with SMTP id uq10so3605753igb.5 for ; Sat, 26 Apr 2014 20:55:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=mCWhwBqQ6Q1W3np0jEt8oF3K8zAUjQUviZz78KpuN58=; b=Nqz/8JsNMt0DLVwiPtmyfS+BtTr4zF0ScNkCiQa8QBVww39QvS6biCQ+LDKd2V4H29 Q3CyT4tn4mVACMRcNiddcg6fsg3KHVnF/XL6CvWwI8Uhrh2HX9ncFdihkp+3mUGstSLi eTYwhe97+ejBtISSK1xz+NlIqPJhi7j4AP3YZuCWm0BIRZLP/GUW2pqm7FBF1s25fssb ELaKNstj+dyY683vfsIZo7S2+Ol5mlqqM57b4ZMU2jL0dQjneWXv8k7Y1apwuKwxSCR6 CZhnzDHsifdj5Q8BGz30Inevcx0ctnGJm5pEPoY3eGn1k+GKFmiWR7lknfsYrqM4FBAk FpAA== X-Gm-Message-State: ALoCoQn27y6s9qTtjrAZFpsJDE67ngJMMvYE7r5wZn0iY15NhypG96P67Hnt6AL52ux9hB4U0vhP X-Received: by 10.42.23.82 with SMTP id r18mr15860184icb.43.1398570958067; Sat, 26 Apr 2014 20:55:58 -0700 (PDT) Received: from [10.10.10.100] (97-86-246-164.dhcp.roch.mn.charter.com. [97.86.246.164]) by mx.google.com with ESMTPSA id p9sm12107953igj.16.2014.04.26.20.55.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Apr 2014 20:55:57 -0700 (PDT) From: Chris Lohfink Content-Type: multipart/alternative; boundary="Apple-Mail=_F64E76C5-D71F-4F7A-A623-D26C46DBF6FF" Message-Id: <2A0B98F5-8EE0-4C66-9B65-7A7D976E5D3B@blackbirdit.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: : Read a negative frame size (-2113929216)! Date: Sat, 26 Apr 2014 22:55:55 -0500 References: <1E1149A1-B950-4F55-8DE1-4C4B95D5736E@blackbirdit.com> To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_F64E76C5-D71F-4F7A-A623-D26C46DBF6FF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Try running with "-version:class" added to your jvm options on your = client. Can you give the output for the jar files for thrift/cassandra? = (i.e. cassandra, cassandra-thrift, and thrift lib) --- Chris Lohfink On Apr 25, 2014, at 11:30 PM, Vivek Mishra = wrote: > TSocket socket =3D new TSocket(host, = Integer.parseInt(port)); > TTransport transport =3D new TFramedTransport(socket); > TProtocol protocol =3D new TBinaryProtocol(transport, = true, true); > cassandra_client =3D new Cassandra.Client(protocol); >=20 >=20 > cassandra_client.execute_cql3_query( > = ByteBuffer.wrap(queryBuilder.toString().getBytes(Constants.CHARSET_UTF8)),= Compression.NONE, > ConsistencyLevel.ONE); >=20 >=20 >=20 > On Sat, Apr 26, 2014 at 5:19 AM, Alex Popescu = wrote: > Can you share the relevant code snippet that leads to this exception? >=20 >=20 > On Fri, Apr 25, 2014 at 4:47 PM, Vivek Mishra = wrote: > datastax java driver 2.0.1 >=20 >=20 >=20 >=20 > On Sat, Apr 26, 2014 at 1:35 AM, Chris Lohfink = wrote: > what client are you using? >=20 > On Apr 25, 2014, at 3:01 PM, Vivek Mishra = wrote: >=20 >> It's a simple cql3 query to create keyspace. >>=20 >> -Vivek >>=20 >>=20 >> On Sat, Apr 26, 2014 at 1:28 AM, Chris Lohfink = wrote: >> Did you send an enormous write or batch write and it wrapped? Or is = your client trying to use non-framed transport? >>=20 >> Chris >>=20 >> On Apr 25, 2014, at 2:50 PM, Vivek Mishra = wrote: >>=20 >> > This is what i am getting with Cassandra 2.0.7 with Thrift. >> > >> > >> > Caused by: org.apache.thrift.transport.TTransportException: Read a = negative frame size (-2113929216)! >> > at = org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.ja= va:133) >> > at = org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:10= 1) >> > at = org.apache.thrift.transport.TTransport.readAll(TTransport.java:84) >> > at = org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:36= 2) >> > at = org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:28= 4) >> > at = org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtoco= l.java:191) >> > at = org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69) >> > >> > Any pointer/suggestions? >> > >> > -Vivek >>=20 >>=20 >=20 >=20 >=20 >=20 >=20 > --=20 >=20 > :- a) >=20 >=20 > Alex Popescu > Sen. Product Manager @ DataStax > @al3xandru >=20 --Apple-Mail=_F64E76C5-D71F-4F7A-A623-D26C46DBF6FF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Try = running with "-version:class" added to your jvm options on your client. =  Can you give the output for the jar files for thrift/cassandra? =  (i.e. cassandra, cassandra-thrift, and thrift = lib)

---
Chris = Lohfink

On Apr 25, 2014, at 11:30 PM, Vivek Mishra = <mishra.vivs@gmail.com>= wrote:

          =   TSocket socket =3D new TSocket(host, = Integer.parseInt(port));
          =   TTransport transport =3D new = TFramedTransport(socket);
          =   TProtocol protocol =3D new TBinaryProtocol(transport, true, = true);
            cassandra_client =3D new = Cassandra.Client(protocol);


 =           = cassandra_client.execute_cql3_query(
      =               = ByteBuffer.wrap(queryBuilder.toString().getBytes(Constants.CHARSET_UTF8)),= Compression.NONE,
                  =   ConsistencyLevel.ONE);



On Sat, Apr 26, = 2014 at 5:19 AM, Alex Popescu <alexp@datastax.com> wrote:
Can = you share the relevant code snippet that leads to this = exception?


On Fri, Apr 25, = 2014 at 4:47 PM, Vivek Mishra <mishra.vivs@gmail.com> wrote:
datastax java driver = 2.0.1




On Sat, Apr 26, 2014 at 1:35 AM, = Chris Lohfink <clohfink@blackbirdit.com> wrote:
what client are you = using?

On Apr 25, 2014, at 3:01 PM, = Vivek Mishra <mishra.vivs@gmail.com> wrote:

It's a simple cql3 query = to create keyspace.

-Vivek


On Sat, Apr 26, = 2014 at 1:28 AM, Chris Lohfink <clohfink@blackbirdit.com> wrote:
Did you send an = enormous write or batch write and it wrapped?  Or is your client = trying to use non-framed transport?

Chris

On Apr 25, 2014, at 2:50 PM, Vivek Mishra <mishra.vivs@gmail.com> wrote:

> This is what i am getting with Cassandra 2.0.7 with Thrift.
>
>
> Caused by: org.apache.thrift.transport.TTransportException: Read a = negative frame size (-2113929216)!
>       at = org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.ja= va:133)
>       at = org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:10= 1)
>       at = org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
>       at = org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:36= 2)
>       at = org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:28= 4)
>       at = org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtoco= l.java:191)
>       at = org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
>
> Any pointer/suggestions?
>
> -Vivek







--

:- = a)


Alex Popescu
Sen. Product Manager @ DataStax
@al3xandru


= --Apple-Mail=_F64E76C5-D71F-4F7A-A623-D26C46DBF6FF--