com.impetus.kundera.configure.schema.SchemaGenerationException: Error occurred while creating table users

Google Groups | Giuseppe Alfieri | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Schema Generation Prepare Update trying to re-create table

    Google Groups | 1 year ago | Giuseppe Alfieri
    com.impetus.kundera.configure.schema.SchemaGenerationException: Error occurred while creating table users
  2. 0

    GitHub comment 770#129931791

    GitHub | 2 years ago | ivyblossom
    com.impetus.kundera.KunderaException: InvalidRequestException(why:INSERT statement are not allowed on counter tables, use UPDATE instead)

    Root Cause Analysis

    1. org.apache.cassandra.thrift.InvalidRequestException

      null

      at org.apache.cassandra.thrift.Cassandra$execute_cql3_query_result$execute_cql3_query_resultStandardScheme.read()
    2. Apache Cassandra
      Cassandra$execute_cql3_query_result.read
      1. org.apache.cassandra.thrift.Cassandra$execute_cql3_query_result$execute_cql3_query_resultStandardScheme.read(Cassandra.java:50297)[cassandra-thrift-2.1.3.jar:2.1.3]
      2. org.apache.cassandra.thrift.Cassandra$execute_cql3_query_result$execute_cql3_query_resultStandardScheme.read(Cassandra.java:50274)[cassandra-thrift-2.1.3.jar:2.1.3]
      3. org.apache.cassandra.thrift.Cassandra$execute_cql3_query_result.read(Cassandra.java:50189)[cassandra-thrift-2.1.3.jar:2.1.3]
      3 frames
    3. Apache Thrift
      TServiceClient.receiveBase
      1. org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)[libthrift-0.9.2.jar:0.9.2]
      1 frame
    4. Apache Cassandra
      Cassandra$Client.execute_cql3_query
      1. org.apache.cassandra.thrift.Cassandra$Client.recv_execute_cql3_query(Cassandra.java:1734)[cassandra-thrift-2.1.3.jar:2.1.3]
      2. org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassandra.java:1719)[cassandra-thrift-2.1.3.jar:2.1.3]
      2 frames
    5. kundera-cassandra
      CassandraSchemaManager.update
      1. com.impetus.client.cassandra.schemamanager.CassandraSchemaManager.createOrUpdateUsingCQL3(CassandraSchemaManager.java:814)[kundera-cassandra-3.1.jar:na]
      2. com.impetus.client.cassandra.schemamanager.CassandraSchemaManager.createColumnFamilies(CassandraSchemaManager.java:430)[kundera-cassandra-3.1.jar:na]
      3. com.impetus.client.cassandra.schemamanager.CassandraSchemaManager.createOrUpdateKeyspace(CassandraSchemaManager.java:279)[kundera-cassandra-3.1.jar:na]
      4. com.impetus.client.cassandra.schemamanager.CassandraSchemaManager.update(CassandraSchemaManager.java:627)[kundera-cassandra-3.1.jar:na]
      4 frames
    6. Kundera
      AbstractSchemaManager.exportSchema
      1. com.impetus.kundera.configure.schema.api.AbstractSchemaManager.handleOperations(AbstractSchemaManager.java:267)[kundera-core-3.1.jar:na]
      2. com.impetus.kundera.configure.schema.api.AbstractSchemaManager.exportSchema(AbstractSchemaManager.java:115)[kundera-core-3.1.jar:na]
      2 frames
    7. kundera-cassandra
      CassandraSchemaManager.exportSchema
      1. com.impetus.client.cassandra.schemamanager.CassandraSchemaManager.exportSchema(CassandraSchemaManager.java:166)[kundera-cassandra-3.1.jar:na]
      1 frame
    8. Kundera
      KunderaPersistence.createEntityManagerFactory
      1. com.impetus.kundera.configure.SchemaConfiguration.configure(SchemaConfiguration.java:188)[kundera-core-3.1.jar:na]
      2. com.impetus.kundera.configure.ClientMetadataBuilder.buildClientFactoryMetadata(ClientMetadataBuilder.java:48)[kundera-core-3.1.jar:na]
      3. com.impetus.kundera.persistence.EntityManagerFactoryImpl.configureClientFactories(EntityManagerFactoryImpl.java:408)[kundera-core-3.1.jar:na]
      4. com.impetus.kundera.persistence.EntityManagerFactoryImpl.configure(EntityManagerFactoryImpl.java:161)[kundera-core-3.1.jar:na]
      5. com.impetus.kundera.persistence.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:135)[kundera-core-3.1.jar:na]
      6. com.impetus.kundera.KunderaPersistence.createEntityManagerFactory(KunderaPersistence.java:85)[kundera-core-3.1.jar:na]
      6 frames
    9. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)[javaee-api-7.0.jar:na]
      2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)[javaee-api-7.0.jar:na]
      2 frames
    10. Unknown
      KunderaExample.main
      1. KunderaExample.main(KunderaExample.java:26)[test-classes/:na]
      1 frame