java.lang.IllegalArgumentException: Table "i" does not exist

GitHub | vania-pooh | 7 months ago
  1. 0

    Select all from one alias does not work

    GitHub | 7 months ago | vania-pooh
    java.lang.IllegalArgumentException: Table "i" does not exist
  2. 0
    I was missing a partitioning column because I did not specify the "basePath" option on read
  3. 0

    From the [user mailing list|]: bq. We implement our @Table mappings as Groovy classes. This has worked fine with previous releases of the MappingManager thru release 3.0.3. With the latest 3.1.0 release, it appears MappingManager requires there to be a column defined for the Groovy MetaClass property. Comparing the source between 3.0.3 and 3.1.0, it looks like reflective inspection of the entity class has changed considerably within com.datastax.driver.mapping.AnnotationParser#parseEntity. The new 3.1.0 source utilizes com.datastax.driver.mapping.ReflectionUtils.scanFieldsAndProperties which picks up the MetaClass property. Creation of the Mapper fails since the actual table metadata does not include a corresponding column for the Groovy class's MetaClass. Indeed, a simple class such as {code} @Table(name = "users") class User { @PartitionKey @Column(name = "user_id") def UUID userId def String name } {code} Will fail with: {code} Exception in thread "main" java.lang.IllegalArgumentException: Column metaclass does not exist in table users at com.datastax.driver.mapping.AnnotationParser.parseEntity( at com.datastax.driver.mapping.MappingManager.getMapper( at com.datastax.driver.mapping.MappingManager.mapper( at com.datastax.driver.mapping.MappingManager$ Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall( at at at com.datastax.driver.mapping.User.main(User.groovy:42) {code} This is because Groovy adds a {{metaClass}} property to Groovy classes. The most simple fix is to explicitly exclude this property in {{ReflectionUtils}}. In the meanwhile, the following workaround seems to work: {code} @Transient def MetaClass metaClass = super.metaClass; {code}

    DataStax JIRA | 4 months ago | Alexandre Dutra
    java.lang.IllegalArgumentException: Column metaclass does not exist in table users
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate - Cannot set named parameter on SQLQuery

    Stack Overflow | 1 year ago | gwg
    java.lang.IllegalArgumentException: Parameter value does not exist as a named parameter in [SELECT * FROM :table WHERE :field = ':value']
  6. 0

    Manual for the sample client app

    GitHub | 3 years ago | rkfg
    java.lang.IllegalArgumentException: File does not exist.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Table "i" does not exist

      at org.meridor.perspective.sql.impl.table.TableName.fromString()
    2. org.meridor.perspective
      1. org.meridor.perspective.sql.impl.table.TableName.fromString(
      2. org.meridor.perspective.sql.impl.task.SelectTask.lambda$processSelectionMap$18(
      2 frames
    3. Java RT
      1. java.util.LinkedHashMap$LinkedKeySet.forEach(
      1 frame
    4. org.meridor.perspective
      1. org.meridor.perspective.sql.impl.task.SelectTask.processSelectionMap(
      2. org.meridor.perspective.sql.impl.task.SelectTask.init(
      2 frames
    5. Java RT
      1. sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(
      3. java.lang.reflect.Method.invoke(
      3 frames
    6. Spring Beans
      1. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(
      2. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(
      3. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(
      10 frames
    7. Spring Context
      1 frame
    8. org.meridor.perspective
      1. org.meridor.perspective.sql.impl.QuerySchedulerImpl.schedule(
      2. org.meridor.perspective.sql.impl.QueryProcessorImpl.parseSQL(
      3. org.meridor.perspective.sql.impl.QueryProcessorImpl.process(
      4 frames
    9. Java RT
      1 frame