Quantcast

Could Not connect to cassandra-cli on windows

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Could Not connect to cassandra-cli on windows

Alaa Zubaidi
Hi,
Failing to connect to cassandra client: on windows

[default@unknown] connect localhost/9160
Exception connecting to localhost/9160. Reason: Connection refused: connect.

[default@unknown] connect xxx.xxx.x.xx/9160
Syntax error at position 0: no viable alternative at input 'connect'

[default@unknown] connect xxx.xxx.x.xx\9160
Syntax error at position 20: no viable alternative at character '\'

Any idea how to connect?

Thanks
Alaa



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Jim Ancona
On Mon, Nov 8, 2010 at 8:31 PM, Alaa Zubaidi <[hidden email]> wrote:

> Hi,
> Failing to connect to cassandra client: on windows
>
> [default@unknown] connect localhost/9160
> Exception connecting to localhost/9160. Reason: Connection refused: connect.
>
> [default@unknown] connect xxx.xxx.x.xx/9160
> Syntax error at position 0: no viable alternative at input 'connect'
>
> [default@unknown] connect xxx.xxx.x.xx\9160
> Syntax error at position 20: no viable alternative at character '\'
>
> Any idea how to connect?

In the first example, are you sure Cassandra was running on port 9160
on your local machine?

You could also try
cassandra-cli -host hostname -port port
e.g.
cassandra-cli -host localhost -port 9160

Jim
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Alaa Zubaidi
Thanks Jim,

It works when using it as arguments to cassandra-cli and using -port...
is this a bug??

E:\Cassandra\Cass07b3\apache-cassandra-0.7.0-beta3>bin\cassandra-cli.bat
-host 192.168.1.11 -port 9160
Starting Cassandra Client
Connected to: "Test Cluster" on 192.168.1.11/9160
Welcome to cassandra CLI.

Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.

Alaa

On 11/9/2010 8:30 AM, Jim Ancona wrote:

> On Mon, Nov 8, 2010 at 8:31 PM, Alaa Zubaidi<[hidden email]>  wrote:
>> Hi,
>> Failing to connect to cassandra client: on windows
>>
>> [default@unknown] connect localhost/9160
>> Exception connecting to localhost/9160. Reason: Connection refused: connect.
>>
>> [default@unknown] connect xxx.xxx.x.xx/9160
>> Syntax error at position 0: no viable alternative at input 'connect'
>>
>> [default@unknown] connect xxx.xxx.x.xx\9160
>> Syntax error at position 20: no viable alternative at character '\'
>>
>> Any idea how to connect?
> In the first example, are you sure Cassandra was running on port 9160
> on your local machine?
>
> You could also try
> cassandra-cli -host hostname -port port
> e.g.
> cassandra-cli -host localhost -port 9160
>
> Jim
>
>

--
Alaa Zubaidi
PDF Solutions, Inc.
333 West San Carlos Street, Suite 700
San Jose, CA 95110  USA
Tel: 408-283-5639 (or 408-280-7900 x5639)
fax: 408-938-6479
email: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Alaa Zubaidi
In reply to this post by Alaa Zubaidi
Hi,

I se this error while the application tries to connect to cassandra at
the same time from 2 different threads: any clues:

ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718
CustomTThreadPoolServer.java (line 222) Error occurred during processing
of message.
java.lang.StringIndexOutOfBoundsException: String index out of range:
-2147418111
     at java.lang.String.checkBounds(String.java:397)
     at java.lang.String.<init>(String.java:442)
     at
org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
     at
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
     at
org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
     at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
     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:662)
ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921
CustomTThreadPoolServer.java (line 218) Thrift error occurred during
processing of message.
org.apache.thrift.protocol.TProtocolException: Missing version in
readMessageBegin, old client?
     at
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
     at
org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
     at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
     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:662)

Thanks,
Alaa

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

aaron morton
What client, what version, what version of cassandra are you using ?

Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:

> Hi,
>
> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>
> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>    at java.lang.String.checkBounds(String.java:397)
>    at java.lang.String.<init>(String.java:442)
>    at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>    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:662)
> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>    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:662)
>
> Thanks,
> Alaa
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Alaa Zubaidi
Hi Aaron,
Thanks for the reply.
I am running 0.7.4 and NO client.
The error was reported by the application where it fails to connect and
it happens that 2 threads are trying to connect at the same time. and
when I checked the cassandra log I found these errors??

Thanks
Alaa

On 8/17/2011 4:29 PM, aaron morton wrote:

> What client, what version, what version of cassandra are you using ?
>
> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>
>> Hi,
>>
>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>
>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>     at java.lang.String.checkBounds(String.java:397)
>>     at java.lang.String.<init>(String.java:442)
>>     at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>     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:662)
>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>     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:662)
>>
>> Thanks,
>> Alaa
>>
>
>

--
Alaa Zubaidi
PDF Solutions, Inc.
333 West San Carlos Street, Suite 700
San Jose, CA 95110  USA
Tel: 408-283-5639 (or 408-280-7900 x5639)
fax: 408-938-6479
email: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

aaron morton
IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?

Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:

> Hi Aaron,
> Thanks for the reply.
> I am running 0.7.4 and NO client.
> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>
> Thanks
> Alaa
>
> On 8/17/2011 4:29 PM, aaron morton wrote:
>> What client, what version, what version of cassandra are you using ?
>>
>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>
>> Cheers
>>
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>
>>> Hi,
>>>
>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>
>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>    at java.lang.String.checkBounds(String.java:397)
>>>    at java.lang.String.<init>(String.java:442)
>>>    at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>    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:662)
>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>    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:662)
>>>
>>> Thanks,
>>> Alaa
>>>
>>
>>
>
> --
> Alaa Zubaidi
> PDF Solutions, Inc.
> 333 West San Carlos Street, Suite 700
> San Jose, CA 95110  USA
> Tel: 408-283-5639 (or 408-280-7900 x5639)
> fax: 408-938-6479
> email: [hidden email]
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Alaa Zubaidi
Hi Aaron,
We are using Thrift 5..
             TSocket _tr = new TSocket(server.Host,
server.Port);//"localhost", 9160);
             _transport = new TFramedTransport(_tr);
             _protocol = new TBinaryProtocol(_transport);
             _client = new Cassandra.Client(_protocol);

Do you have any clue on what could cause the first exception?

Thanks and Regards.
Alaa

On 8/18/2011 3:59 AM, aaron morton wrote:

> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?
>
> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:
>
>> Hi Aaron,
>> Thanks for the reply.
>> I am running 0.7.4 and NO client.
>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>>
>> Thanks
>> Alaa
>>
>> On 8/17/2011 4:29 PM, aaron morton wrote:
>>> What client, what version, what version of cassandra are you using ?
>>>
>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>>
>>> Cheers
>>>
>>> -----------------
>>> Aaron Morton
>>> Freelance Cassandra Developer
>>> @aaronmorton
>>> http://www.thelastpickle.com
>>>
>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>>
>>>> Hi,
>>>>
>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>>
>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>>     at java.lang.String.checkBounds(String.java:397)
>>>>     at java.lang.String.<init>(String.java:442)
>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>     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:662)
>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>     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:662)
>>>>
>>>> Thanks,
>>>> Alaa
>>>>
>>>
>> --
>> Alaa Zubaidi
>> PDF Solutions, Inc.
>> 333 West San Carlos Street, Suite 700
>> San Jose, CA 95110  USA
>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>> fax: 408-938-6479
>> email: [hidden email]
>>
>>
>
>

--
Alaa Zubaidi
PDF Solutions, Inc.
333 West San Carlos Street, Suite 700
San Jose, CA 95110  USA
Tel: 408-283-5639 (or 408-280-7900 x5639)
fax: 408-938-6479
email: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

aaron morton
Not off the top of my head.

Can you get 0.7.8 running with a pre-packaged client ?

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 24/08/2011, at 12:16 PM, Alaa Zubaidi wrote:

> Hi Aaron,
> We are using Thrift 5..
>            TSocket _tr = new TSocket(server.Host, server.Port);//"localhost", 9160);
>            _transport = new TFramedTransport(_tr);
>            _protocol = new TBinaryProtocol(_transport);
>            _client = new Cassandra.Client(_protocol);
>
> Do you have any clue on what could cause the first exception?
>
> Thanks and Regards.
> Alaa
>
> On 8/18/2011 3:59 AM, aaron morton wrote:
>> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?
>>
>> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.
>>
>> Cheers
>>
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:
>>
>>> Hi Aaron,
>>> Thanks for the reply.
>>> I am running 0.7.4 and NO client.
>>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>>>
>>> Thanks
>>> Alaa
>>>
>>> On 8/17/2011 4:29 PM, aaron morton wrote:
>>>> What client, what version, what version of cassandra are you using ?
>>>>
>>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>>>
>>>> Cheers
>>>>
>>>> -----------------
>>>> Aaron Morton
>>>> Freelance Cassandra Developer
>>>> @aaronmorton
>>>> http://www.thelastpickle.com
>>>>
>>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>>>
>>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>>>    at java.lang.String.checkBounds(String.java:397)
>>>>>    at java.lang.String.<init>(String.java:442)
>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>    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:662)
>>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>    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:662)
>>>>>
>>>>> Thanks,
>>>>> Alaa
>>>>>
>>>>
>>> --
>>> Alaa Zubaidi
>>> PDF Solutions, Inc.
>>> 333 West San Carlos Street, Suite 700
>>> San Jose, CA 95110  USA
>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>> fax: 408-938-6479
>>> email: [hidden email]
>>>
>>>
>>
>>
>
> --
> Alaa Zubaidi
> PDF Solutions, Inc.
> 333 West San Carlos Street, Suite 700
> San Jose, CA 95110  USA
> Tel: 408-283-5639 (or 408-280-7900 x5639)
> fax: 408-938-6479
> email: [hidden email]
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Alaa Zubaidi
Hi Aaron,
I cannot at this point of time..

Thanks for your help..
Alaa

On 8/24/2011 2:30 AM, aaron morton wrote:

> Not off the top of my head.
>
> Can you get 0.7.8 running with a pre-packaged client ?
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 24/08/2011, at 12:16 PM, Alaa Zubaidi wrote:
>
>> Hi Aaron,
>> We are using Thrift 5..
>>             TSocket _tr = new TSocket(server.Host, server.Port);//"localhost", 9160);
>>             _transport = new TFramedTransport(_tr);
>>             _protocol = new TBinaryProtocol(_transport);
>>             _client = new Cassandra.Client(_protocol);
>>
>> Do you have any clue on what could cause the first exception?
>>
>> Thanks and Regards.
>> Alaa
>>
>> On 8/18/2011 3:59 AM, aaron morton wrote:
>>> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?
>>>
>>> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.
>>>
>>> Cheers
>>>
>>> -----------------
>>> Aaron Morton
>>> Freelance Cassandra Developer
>>> @aaronmorton
>>> http://www.thelastpickle.com
>>>
>>> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:
>>>
>>>> Hi Aaron,
>>>> Thanks for the reply.
>>>> I am running 0.7.4 and NO client.
>>>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>>>>
>>>> Thanks
>>>> Alaa
>>>>
>>>> On 8/17/2011 4:29 PM, aaron morton wrote:
>>>>> What client, what version, what version of cassandra are you using ?
>>>>>
>>>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>>>>
>>>>> Cheers
>>>>>
>>>>> -----------------
>>>>> Aaron Morton
>>>>> Freelance Cassandra Developer
>>>>> @aaronmorton
>>>>> http://www.thelastpickle.com
>>>>>
>>>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>>>>
>>>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>>>>     at java.lang.String.checkBounds(String.java:397)
>>>>>>     at java.lang.String.<init>(String.java:442)
>>>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>>>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>     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:662)
>>>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>>>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>     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:662)
>>>>>>
>>>>>> Thanks,
>>>>>> Alaa
>>>>>>
>>>> --
>>>> Alaa Zubaidi
>>>> PDF Solutions, Inc.
>>>> 333 West San Carlos Street, Suite 700
>>>> San Jose, CA 95110  USA
>>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>>> fax: 408-938-6479
>>>> email: [hidden email]
>>>>
>>>>
>>>
>> --
>> Alaa Zubaidi
>> PDF Solutions, Inc.
>> 333 West San Carlos Street, Suite 700
>> San Jose, CA 95110  USA
>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>> fax: 408-938-6479
>> email: [hidden email]
>>
>>
>
>

--
Alaa Zubaidi
PDF Solutions, Inc.
333 West San Carlos Street, Suite 700
San Jose, CA 95110  USA
Tel: 408-283-5639 (or 408-280-7900 x5639)
fax: 408-938-6479
email: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

aaron morton
With a fresh cassandra install and a pre built client what error do you get ?

Can you connect with node tool ? If not what error ?

What about the cassandra CLI ?


-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 25/08/2011, at 2:51 AM, Alaa Zubaidi wrote:

> Hi Aaron,
> I cannot at this point of time..
>
> Thanks for your help..
> Alaa
>
> On 8/24/2011 2:30 AM, aaron morton wrote:
>> Not off the top of my head.
>>
>> Can you get 0.7.8 running with a pre-packaged client ?
>>
>> Cheers
>>
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 24/08/2011, at 12:16 PM, Alaa Zubaidi wrote:
>>
>>> Hi Aaron,
>>> We are using Thrift 5..
>>>            TSocket _tr = new TSocket(server.Host, server.Port);//"localhost", 9160);
>>>            _transport = new TFramedTransport(_tr);
>>>            _protocol = new TBinaryProtocol(_transport);
>>>            _client = new Cassandra.Client(_protocol);
>>>
>>> Do you have any clue on what could cause the first exception?
>>>
>>> Thanks and Regards.
>>> Alaa
>>>
>>> On 8/18/2011 3:59 AM, aaron morton wrote:
>>>> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?
>>>>
>>>> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.
>>>>
>>>> Cheers
>>>>
>>>> -----------------
>>>> Aaron Morton
>>>> Freelance Cassandra Developer
>>>> @aaronmorton
>>>> http://www.thelastpickle.com
>>>>
>>>> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:
>>>>
>>>>> Hi Aaron,
>>>>> Thanks for the reply.
>>>>> I am running 0.7.4 and NO client.
>>>>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>>>>>
>>>>> Thanks
>>>>> Alaa
>>>>>
>>>>> On 8/17/2011 4:29 PM, aaron morton wrote:
>>>>>> What client, what version, what version of cassandra are you using ?
>>>>>>
>>>>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> -----------------
>>>>>> Aaron Morton
>>>>>> Freelance Cassandra Developer
>>>>>> @aaronmorton
>>>>>> http://www.thelastpickle.com
>>>>>>
>>>>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>>>>>
>>>>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>>>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>>>>>    at java.lang.String.checkBounds(String.java:397)
>>>>>>>    at java.lang.String.<init>(String.java:442)
>>>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>>>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>>    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:662)
>>>>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>>>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>>>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>>    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:662)
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Alaa
>>>>>>>
>>>>> --
>>>>> Alaa Zubaidi
>>>>> PDF Solutions, Inc.
>>>>> 333 West San Carlos Street, Suite 700
>>>>> San Jose, CA 95110  USA
>>>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>>>> fax: 408-938-6479
>>>>> email: [hidden email]
>>>>>
>>>>>
>>>>
>>> --
>>> Alaa Zubaidi
>>> PDF Solutions, Inc.
>>> 333 West San Carlos Street, Suite 700
>>> San Jose, CA 95110  USA
>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>> fax: 408-938-6479
>>> email: [hidden email]
>>>
>>>
>>
>>
>
> --
> Alaa Zubaidi
> PDF Solutions, Inc.
> 333 West San Carlos Street, Suite 700
> San Jose, CA 95110  USA
> Tel: 408-283-5639 (or 408-280-7900 x5639)
> fax: 408-938-6479
> email: [hidden email]
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

Alaa Zubaidi
Hi Aaron,
I can connect with node tool and CLI with no errors, its only when I
have multiple connection (threads) through the C# application..

Alaa

On 8/25/2011 2:42 PM, aaron morton wrote:

> With a fresh cassandra install and a pre built client what error do you get ?
>
> Can you connect with node tool ? If not what error ?
>
> What about the cassandra CLI ?
>
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 25/08/2011, at 2:51 AM, Alaa Zubaidi wrote:
>
>> Hi Aaron,
>> I cannot at this point of time..
>>
>> Thanks for your help..
>> Alaa
>>
>> On 8/24/2011 2:30 AM, aaron morton wrote:
>>> Not off the top of my head.
>>>
>>> Can you get 0.7.8 running with a pre-packaged client ?
>>>
>>> Cheers
>>>
>>> -----------------
>>> Aaron Morton
>>> Freelance Cassandra Developer
>>> @aaronmorton
>>> http://www.thelastpickle.com
>>>
>>> On 24/08/2011, at 12:16 PM, Alaa Zubaidi wrote:
>>>
>>>> Hi Aaron,
>>>> We are using Thrift 5..
>>>>             TSocket _tr = new TSocket(server.Host, server.Port);//"localhost", 9160);
>>>>             _transport = new TFramedTransport(_tr);
>>>>             _protocol = new TBinaryProtocol(_transport);
>>>>             _client = new Cassandra.Client(_protocol);
>>>>
>>>> Do you have any clue on what could cause the first exception?
>>>>
>>>> Thanks and Regards.
>>>> Alaa
>>>>
>>>> On 8/18/2011 3:59 AM, aaron morton wrote:
>>>>> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?
>>>>>
>>>>> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.
>>>>>
>>>>> Cheers
>>>>>
>>>>> -----------------
>>>>> Aaron Morton
>>>>> Freelance Cassandra Developer
>>>>> @aaronmorton
>>>>> http://www.thelastpickle.com
>>>>>
>>>>> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:
>>>>>
>>>>>> Hi Aaron,
>>>>>> Thanks for the reply.
>>>>>> I am running 0.7.4 and NO client.
>>>>>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>>>>>>
>>>>>> Thanks
>>>>>> Alaa
>>>>>>
>>>>>> On 8/17/2011 4:29 PM, aaron morton wrote:
>>>>>>> What client, what version, what version of cassandra are you using ?
>>>>>>>
>>>>>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>>>>>>
>>>>>>> Cheers
>>>>>>>
>>>>>>> -----------------
>>>>>>> Aaron Morton
>>>>>>> Freelance Cassandra Developer
>>>>>>> @aaronmorton
>>>>>>> http://www.thelastpickle.com
>>>>>>>
>>>>>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>>>>>>
>>>>>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>>>>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>>>>>>     at java.lang.String.checkBounds(String.java:397)
>>>>>>>>     at java.lang.String.<init>(String.java:442)
>>>>>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>>>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>>>>>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>>>     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:662)
>>>>>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>>>>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>>>>>>     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>>>>>>     at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>>>     at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>>>     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:662)
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Alaa
>>>>>>>>
>>>>>> --
>>>>>> Alaa Zubaidi
>>>>>> PDF Solutions, Inc.
>>>>>> 333 West San Carlos Street, Suite 700
>>>>>> San Jose, CA 95110  USA
>>>>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>>>>> fax: 408-938-6479
>>>>>> email: [hidden email]
>>>>>>
>>>>>>
>>>> --
>>>> Alaa Zubaidi
>>>> PDF Solutions, Inc.
>>>> 333 West San Carlos Street, Suite 700
>>>> San Jose, CA 95110  USA
>>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>>> fax: 408-938-6479
>>>> email: [hidden email]
>>>>
>>>>
>>>
>> --
>> Alaa Zubaidi
>> PDF Solutions, Inc.
>> 333 West San Carlos Street, Suite 700
>> San Jose, CA 95110  USA
>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>> fax: 408-938-6479
>> email: [hidden email]
>>
>>
>
>

--
Alaa Zubaidi
PDF Solutions, Inc.
333 West San Carlos Street, Suite 700
San Jose, CA 95110  USA
Tel: 408-283-5639 (or 408-280-7900 x5639)
fax: 408-938-6479
email: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could Not connect to cassandra-cli on windows

aaron morton
Does each c# thread have it's own connection ?

Does it work in a single threaded environment ?

Cheer
s
-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 29/08/2011, at 1:31 AM, Alaa Zubaidi wrote:

> Hi Aaron,
> I can connect with node tool and CLI with no errors, its only when I have multiple connection (threads) through the C# application..
>
> Alaa
>
> On 8/25/2011 2:42 PM, aaron morton wrote:
>> With a fresh cassandra install and a pre built client what error do you get ?
>>
>> Can you connect with node tool ? If not what error ?
>>
>> What about the cassandra CLI ?
>>
>>
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 25/08/2011, at 2:51 AM, Alaa Zubaidi wrote:
>>
>>> Hi Aaron,
>>> I cannot at this point of time..
>>>
>>> Thanks for your help..
>>> Alaa
>>>
>>> On 8/24/2011 2:30 AM, aaron morton wrote:
>>>> Not off the top of my head.
>>>>
>>>> Can you get 0.7.8 running with a pre-packaged client ?
>>>>
>>>> Cheers
>>>>
>>>> -----------------
>>>> Aaron Morton
>>>> Freelance Cassandra Developer
>>>> @aaronmorton
>>>> http://www.thelastpickle.com
>>>>
>>>> On 24/08/2011, at 12:16 PM, Alaa Zubaidi wrote:
>>>>
>>>>> Hi Aaron,
>>>>> We are using Thrift 5..
>>>>>            TSocket _tr = new TSocket(server.Host, server.Port);//"localhost", 9160);
>>>>>            _transport = new TFramedTransport(_tr);
>>>>>            _protocol = new TBinaryProtocol(_transport);
>>>>>            _client = new Cassandra.Client(_protocol);
>>>>>
>>>>> Do you have any clue on what could cause the first exception?
>>>>>
>>>>> Thanks and Regards.
>>>>> Alaa
>>>>>
>>>>> On 8/18/2011 3:59 AM, aaron morton wrote:
>>>>>> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ?
>>>>>>
>>>>>> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version.
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> -----------------
>>>>>> Aaron Morton
>>>>>> Freelance Cassandra Developer
>>>>>> @aaronmorton
>>>>>> http://www.thelastpickle.com
>>>>>>
>>>>>> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote:
>>>>>>
>>>>>>> Hi Aaron,
>>>>>>> Thanks for the reply.
>>>>>>> I am running 0.7.4 and NO client.
>>>>>>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors??
>>>>>>>
>>>>>>> Thanks
>>>>>>> Alaa
>>>>>>>
>>>>>>> On 8/17/2011 4:29 PM, aaron morton wrote:
>>>>>>>> What client, what version, what version of cassandra are you using ?
>>>>>>>>
>>>>>>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8.
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>>
>>>>>>>> -----------------
>>>>>>>> Aaron Morton
>>>>>>>> Freelance Cassandra Developer
>>>>>>>> @aaronmorton
>>>>>>>> http://www.thelastpickle.com
>>>>>>>>
>>>>>>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues:
>>>>>>>>>
>>>>>>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message.
>>>>>>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111
>>>>>>>>>    at java.lang.String.checkBounds(String.java:397)
>>>>>>>>>    at java.lang.String.<init>(String.java:442)
>>>>>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339)
>>>>>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210)
>>>>>>>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>>>>    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:662)
>>>>>>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message.
>>>>>>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
>>>>>>>>>    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
>>>>>>>>>    at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543)
>>>>>>>>>    at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206)
>>>>>>>>>    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:662)
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Alaa
>>>>>>>>>
>>>>>>> --
>>>>>>> Alaa Zubaidi
>>>>>>> PDF Solutions, Inc.
>>>>>>> 333 West San Carlos Street, Suite 700
>>>>>>> San Jose, CA 95110  USA
>>>>>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>>>>>> fax: 408-938-6479
>>>>>>> email: [hidden email]
>>>>>>>
>>>>>>>
>>>>> --
>>>>> Alaa Zubaidi
>>>>> PDF Solutions, Inc.
>>>>> 333 West San Carlos Street, Suite 700
>>>>> San Jose, CA 95110  USA
>>>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>>>> fax: 408-938-6479
>>>>> email: [hidden email]
>>>>>
>>>>>
>>>>
>>> --
>>> Alaa Zubaidi
>>> PDF Solutions, Inc.
>>> 333 West San Carlos Street, Suite 700
>>> San Jose, CA 95110  USA
>>> Tel: 408-283-5639 (or 408-280-7900 x5639)
>>> fax: 408-938-6479
>>> email: [hidden email]
>>>
>>>
>>
>>
>
> --
> Alaa Zubaidi
> PDF Solutions, Inc.
> 333 West San Carlos Street, Suite 700
> San Jose, CA 95110  USA
> Tel: 408-283-5639 (or 408-280-7900 x5639)
> fax: 408-938-6479
> email: [hidden email]
>
>

Loading...