java.lang.IllegalArgumentException: "tags" is not a column defined in this metadata

DataStax JIRA | Carlos S | 2 years ago
  1. 0

    *_Resolution_* The mapper now subscribes to schema change events and reacts to table and UDT removed / modified notifications: a warning is logged and, for modifications, the manager tries to replace the mapper or codec with a new one (which may or may not work depending on the nature of the change, and whether client code kept a reference to the old mapper instance). In addition, table/UDT names and column/field names are validated earlier, in a fail-fast attempt to detect wrong configurations. ---- *_Initial report_* I made some researches from forums,blogs, also see issue #JAVA-509 but there is resolved status. But, I'm getting this error in 2.2.3 version. Getting below error, but in table I can see "interface_name" is exists in UDT. {code} java.lang.IllegalArgumentException: "interface_name" is not a field defined in this UDT at com.datastax.driver.core.UDTValue.getAllIndexesOf(UDTValue.java:42) ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.AbstractData.getIndexOf(AbstractData.java:63) ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.AbstractGettableData.getBytesUnsafe(AbstractGettableData.java:123) ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.mapping.UDTMapper.toEntity(UDTMapper.java:91) ~[cassandra-driver-mapping-2.1.5.jar:na] at com.datastax.driver.mapping.UDTMapper.convertUDTsToEntities(UDTMapper.java:156) ~[cassandra-driver-mapping-2.1.5.jar:na] at com.datastax.driver.mapping.UDTMapper.convertUDTsToEntities(UDTMapper.java:179) ~[cassandra-driver-mapping-2.1.5.jar:na] at com.datastax.driver.mapping.ReflectionMapper$NestedUDTMapper.setValue(ReflectionMapper.java:180) ~[cassandra-driver-mapping-2.1.5.jar:na] at com.datastax.driver.mapping.Result.map(Result.java:43) ~[cassandra-driver-mapping-2.1.5.jar:na] at com.datastax.driver.mapping.Result.one(Result.java:65) ~[cassandra-driver-mapping-2.1.5.jar:na] at com.datastax.driver.mapping.Mapper.get(Mapper.java:342) ~[cassandra-driver-mapping-2.1.5.jar:na] {code}

    DataStax JIRA | 9 months ago | Zubaidullo
    java.lang.IllegalArgumentException: "interface_name" is not a field defined in this UDT
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    column_aliases is not a column defined in this metadata

    GitHub | 1 year ago | dipietro-salvatore
    com.yahoo.ycsb.DBException: java.lang.IllegalArgumentException: column_aliases is not a column defined in this metadata
  4. 0

    YCSB cassandra-cql IllegalArgumentException: replicate_on_write

    GitHub | 1 year ago | cgara
    com.yahoo.ycsb.DBException: java.lang.IllegalArgumentException: replicate_on_write is not a column defined in this metadata

    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

      "tags" is not a column defined in this metadata

      at com.datastax.driver.core.ColumnDefinitions.getAllIdx()
    2. DataStax Java Driver for Apache Cassandra - Core
      AbstractGettableData.getBytesUnsafe
      1. com.datastax.driver.core.ColumnDefinitions.getAllIdx(ColumnDefinitions.java:273)
      2. com.datastax.driver.core.ColumnDefinitions.getFirstIdx(ColumnDefinitions.java:279)
      3. com.datastax.driver.core.ArrayBackedRow.getIndexOf(ArrayBackedRow.java:69)
      4. com.datastax.driver.core.AbstractGettableData.getBytesUnsafe(AbstractGettableData.java:121)
      4 frames
    3. com.datastax.driver
      Mapper.get
      1. com.datastax.driver.mapping.Result.map(Result.java:41)
      2. com.datastax.driver.mapping.Result.one(Result.java:65)
      3. com.datastax.driver.mapping.Mapper.get(Mapper.java:342)
      3 frames