Feedback
Did this article resolve your question/issue?

   

Article

Cassandra JDBC driver 6.0 does not work for any keyspaces when you create a keyspace with name starting with a number

Information

 
TitleCassandra JDBC driver 6.0 does not work for any keyspaces when you create a keyspace with name starting with a number
URL Namecassandra-jdbc-driver-6-0-does-not-work-for-any-keyspaces-when-you-create-a-keyspace-name-starting-with-a-number
Article Number000113638
EnvironmentProduct: Progress DataDirect for JDBC for Cassandra Driver
Version : 6.0.0.000265
OS: JAVA
Database : Cassandra
Application: All supported applications
Question/Problem Description

After creating a keyspace with a name starting with a number, like 1111tenant, the user could not connect to any of the old keyspaces, which were working fine before.
The following error was observed, given in the "Error Message" section below, when trying to connect and access the tables defined in earlier created keyspaces.

Steps to Reproduce(1) Create key space with a name starting with some alphabet e.g, tenant01.
(2) Create some table in the key space tenant01 and insert some data in it.
(3) Access the table in the keyspace tenant01. Everything will work as expected.
(4) Create key space with a name starting with some number e.g., 1111tenant.
(5) Then try to connect to keyspace tenant01. This will fail to connect and the following error occurs:
Exception class name:class java.sql.SQLException
Msg: [DataDirect][Cassandra JDBC Driver][Cassandra]general error
SQLState:HY000
java.sql.SQLException: [DataDirect][Cassandra JDBC Driver][Cassandra]general error
at com.ddtek.jdbc.cassandrabase.ddcl.b(Unknown Source)
at com.ddtek.jdbc.cassandrabase.ddcl.a(Unknown Source)
at com.ddtek.jdbc.cassandrabase.ddck.b(Unknown Source)
at com.ddtek.jdbc.cassandrabase.ddck.a(Unknown Source)
at com.ddtek.jdbc.cassandracloud.ddq.a(Unknown Source)
at com.ddtek.jdbc.cassandracloud.ddq.a(Unknown Source)
at com.ddtek.jdbc.cassandra.CassandraImplConnection.a(Unknown Source)
at com.ddtek.jdbc.cassandrabase.BaseConnection.b(Unknown Source)
at com.ddtek.jdbc.cassandrabase.BaseConnection.m(Unknown Source)
at com.ddtek.jdbc.cassandrabase.BaseConnection.e(Unknown Source)
at com.ddtek.jdbc.cassandrabase.BaseConnection.a(Unknown Source)
at com.ddtek.jdbc.cassandrabase.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at driverVersion.main(driverVersion.java:123)
Caused by: com.ddtek.cassandracloud.sql.ddai: general error
at com.ddtek.cassandracloud.sql.ddbm.(Unknown Source)
at com.ddtek.cassandracloud.sql.ddbm.a(Unknown Source)
... 10 more
Clarifying Information
Error MessageSQLState: HY000
Message: [DataDirect][Cassandra JDBC Driver][Cassandra]general error
Vendor: -458
Defect NumberDefect XDBC-15664
Enhancement Number
Cause
The detailed cause analysis is given in the internal comment section.
Resolution
Fixed in hot fix 6.0.0.000273.

Refer to "Connect for JDBC hot fix download and install instructions” for instructions on how to download and install the hot fix.
Workaround
Notes
Last Modified Date9/25/2019 2:57 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.