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

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

    Select all from one alias does not work

    GitHub | 5 months ago | vania-pooh
    java.lang.IllegalArgumentException: Table "i" does not exist
  2. 0

    From the [user mailing list|https://groups.google.com/a/lists.datastax.com/d/msg/java-driver-user/Hlf907jcWk0/CyXO2HGKCAAJ]: 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(AnnotationParser.java:131) at com.datastax.driver.mapping.MappingManager.getMapper(MappingManager.java:226) at com.datastax.driver.mapping.MappingManager.mapper(MappingManager.java:182) at com.datastax.driver.mapping.MappingManager$mapper.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) 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 | 3 months ago | Alexandre Dutra
    java.lang.IllegalArgumentException: Column metaclass does not exist in table users
  3. 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']
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Manual for the sample client app

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

    Twitter Analysis with Apache Storm | Treselle Systems

    treselle.com | 11 months ago
    java.lang.RuntimeException: java.lang.IllegalArgumentException: screenName 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
      SelectTask.lambda$processSelectionMap$18
      1. org.meridor.perspective.sql.impl.table.TableName.fromString(TableName.java:45)
      2. org.meridor.perspective.sql.impl.task.SelectTask.lambda$processSelectionMap$18(SelectTask.java:80)
      2 frames
    3. Java RT
      LinkedHashMap$LinkedKeySet.forEach
      1. java.util.LinkedHashMap$LinkedKeySet.forEach(LinkedHashMap.java:555)
      1 frame
    4. org.meridor.perspective
      SelectTask.init
      1. org.meridor.perspective.sql.impl.task.SelectTask.processSelectionMap(SelectTask.java:72)
      2. org.meridor.perspective.sql.impl.task.SelectTask.init(SelectTask.java:42)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    6. Spring Beans
      DefaultListableBeanFactory.getBean
      1. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)
      2. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
      3. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
      9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:219)
      10. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:351)
      10 frames
    7. Spring Context
      AbstractApplicationContext.getBean
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1069)
      1 frame
    8. org.meridor.perspective
      QueryResource.lambda$query$8
      1. org.meridor.perspective.sql.impl.QuerySchedulerImpl.schedule(QuerySchedulerImpl.java:91)
      2. org.meridor.perspective.sql.impl.QueryProcessorImpl.parseSQL(QueryProcessorImpl.java:58)
      3. org.meridor.perspective.sql.impl.QueryProcessorImpl.process(QueryProcessorImpl.java:30)
      4. org.meridor.perspective.rest.resources.QueryResource.lambda$query$8(QueryResource.java:37)
      4 frames
    9. Java RT
      ReferencePipeline$7$1.accept
      1. java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
      1 frame