cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Kanta Mainali (Commented) (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-4117) show keyspaces command in cli causes error and does not show keyspaces other than system
Date Thu, 05 Apr 2012 03:56:41 GMT


Manoj Kanta Mainali commented on CASSANDRA-4117:

I figured out to print the whole stack trace and here it is:

	at java.nio.Buffer.limit(
	at org.apache.cassandra.db.marshal.AbstractCompositeType.getBytes(
	at org.apache.cassandra.db.marshal.AbstractCompositeType.getWithShortLength(
	at org.apache.cassandra.db.marshal.AbstractCompositeType.getString(
	at org.apache.cassandra.cli.CliClient.describeColumnFamily(
	at org.apache.cassandra.cli.CliClient.describeKeySpace(
	at org.apache.cassandra.cli.CliClient.executeShowKeySpaces(
	at org.apache.cassandra.cli.CliClient.executeCLIStatement(
	at org.apache.cassandra.cli.CliMain.processStatementInteractive(
	at org.apache.cassandra.cli.CliMain.main(

> show keyspaces command in cli causes error and does not show keyspaces other than system
> ----------------------------------------------------------------------------------------
>                 Key: CASSANDRA-4117
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
> I have been working with 1.1.0-beta2 version and I am not able to see the created keyspaces
via show keyspaces in cli.
> After initiating the cassandra-cli, I did the following
> 1. create keyspace foo;
> 2. use foo;
> 3. create column family foo;
> 4. show keyspaces;
> Only the result for the system keyspace is shown.
> I added some debug statements in the code and I can see that in the executeShowKeySpaces
in CliClient, the size of keySpaces retrieved is equal to the number of keyspaces in the cluster,i.e.
in my case equal to 2, however only null is displayed after printing the system keyspaces.
> I added a try catch statement around the for loop in the method and printed the exception
messages in the cli and got following 
> When printing the exception e itself : 
> java.lang.IllegalArgumentException
> When printing the e.getStackTrace()[0] and e.getStackTrace()[1]:
> java.nio.Buffer.limit(
> org.apache.cassandra.db.marshal.AbstractCompositeType.getBytes(
> I would love to post the whole stack trace, but at the moment I am not sure how I can
do that through sessionState.out.println

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message