java.lang.IllegalArgumentException: "interface_name" is not a field defined in this UDT

DataStax JIRA | Zubaidullo | 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

    *_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 | 1 year 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

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      "interface_name" is not a field defined in this UDT

      at com.datastax.driver.core.UDTValue.getAllIndexesOf()
    2. DataStax Java Driver for Apache Cassandra - Core
      AbstractGettableData.getBytesUnsafe
      1. com.datastax.driver.core.UDTValue.getAllIndexesOf(UDTValue.java:42)[cassandra-driver-core-2.1.5.jar:na]
      2. com.datastax.driver.core.AbstractData.getIndexOf(AbstractData.java:63)[cassandra-driver-core-2.1.5.jar:na]
      3. com.datastax.driver.core.AbstractGettableData.getBytesUnsafe(AbstractGettableData.java:123)[cassandra-driver-core-2.1.5.jar:na]
      3 frames
    3. com.datastax.driver
      Mapper.get
      1. com.datastax.driver.mapping.UDTMapper.toEntity(UDTMapper.java:91)[cassandra-driver-mapping-2.1.5.jar:na]
      2. com.datastax.driver.mapping.UDTMapper.convertUDTsToEntities(UDTMapper.java:156)[cassandra-driver-mapping-2.1.5.jar:na]
      3. com.datastax.driver.mapping.UDTMapper.convertUDTsToEntities(UDTMapper.java:179)[cassandra-driver-mapping-2.1.5.jar:na]
      4. com.datastax.driver.mapping.ReflectionMapper$NestedUDTMapper.setValue(ReflectionMapper.java:180)[cassandra-driver-mapping-2.1.5.jar:na]
      5. com.datastax.driver.mapping.Result.map(Result.java:43)[cassandra-driver-mapping-2.1.5.jar:na]
      6. com.datastax.driver.mapping.Result.one(Result.java:65)[cassandra-driver-mapping-2.1.5.jar:na]
      7. com.datastax.driver.mapping.Mapper.get(Mapper.java:342)[cassandra-driver-mapping-2.1.5.jar:na]
      7 frames