java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;

Spring JIRA | Noriaki Tatsumi | 1 year ago
  1. 0

    Calling cassandraOperations.insertAsynchronously with a Cassandra entity, a write listener, and write options keeps resulting to the below exception. I'm using spring-data-cassandra 1.2.0.RELEASE with Spring 4.1.5.RELEASE. No other spring-data artifacts are in the project dependency. {code} [INFO] [talledLocalContainer] SEVERE: Servlet.service() for servlet [spring-rest] in context with path [/Contrast] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;] with root cause [INFO] [talledLocalContainer] java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object; [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty(MappingCassandraConverter.java:244) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty(MappingCassandraConverter.java:239) [INFO] [talledLocalContainer] at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:257) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter.writeInsertFromWrapper(MappingCassandraConverter.java:239) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter.writeInsertFromObject(MappingCassandraConverter.java:233) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter.write(MappingCassandraConverter.java:222) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.core.CassandraTemplate.createInsertQuery(CassandraTemplate.java:841) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.core.CassandraTemplate.doInsertAsync(CassandraTemplate.java:649) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.core.CassandraTemplate.insertAsynchronously(CassandraTemplate.java:307) ... {code}

    Spring JIRA | 1 year ago | Noriaki Tatsumi
    java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;
  2. 0

    Calling cassandraOperations.insertAsynchronously with a Cassandra entity, a write listener, and write options keeps resulting to the below exception. I'm using spring-data-cassandra 1.2.0.RELEASE with Spring 4.1.5.RELEASE. No other spring-data artifacts are in the project dependency. {code} [INFO] [talledLocalContainer] SEVERE: Servlet.service() for servlet [spring-rest] in context with path [/Contrast] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;] with root cause [INFO] [talledLocalContainer] java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object; [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty(MappingCassandraConverter.java:244) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty(MappingCassandraConverter.java:239) [INFO] [talledLocalContainer] at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:257) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter.writeInsertFromWrapper(MappingCassandraConverter.java:239) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter.writeInsertFromObject(MappingCassandraConverter.java:233) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.convert.MappingCassandraConverter.write(MappingCassandraConverter.java:222) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.core.CassandraTemplate.createInsertQuery(CassandraTemplate.java:841) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.core.CassandraTemplate.doInsertAsync(CassandraTemplate.java:649) [INFO] [talledLocalContainer] at org.springframework.data.cassandra.core.CassandraTemplate.insertAsynchronously(CassandraTemplate.java:307) ... {code}

    Spring JIRA | 1 year ago | Noriaki Tatsumi
    java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;
  3. 0

    Spring Data Cassandra issue when trying to connect from another Spring app configuration/Context

    Stack Overflow | 2 years ago | Rajiv Srivastava
    java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;] with root cause java.lang.NoSuchMethodError: org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error creating bean with name 'mongoTemplate' while connecting mongodb through Spring

    Stack Overflow | 2 months ago | anukuls
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoTemplate' defined in com.storeApp.config.SpringMongoConfig1: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.mongodb.core.MongoTemplate]: Factory method 'mongoTemplate' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.data.util.ClassTypeInformation.from(Ljava/lang/Class;)Lorg/springframework/data/util/ClassTypeInformation;
  6. 0

    Spring Data java.lang.NoSuchMethodError

    Stack Overflow | 2 years ago | user962206
    java.lang.NoSuchMethodError: org.springframework.data.util.ClassTypeInformation.from(Ljava/lang/Class;)Lorg/springframework/data/util/ClassTypeInformation;

    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.NoSuchMethodError

      org.springframework.data.mapping.model.BeanWrapper.getProperty(Lorg/springframework/data/mapping/PersistentProperty;Ljava/lang/Class;)Ljava/lang/Object;

      at org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty()
    2. Spring Data Cassandra - Core
      MappingCassandraConverter$2.doWithPersistentProperty
      1. org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty(MappingCassandraConverter.java:244)
      2. org.springframework.data.cassandra.convert.MappingCassandraConverter$2.doWithPersistentProperty(MappingCassandraConverter.java:239)
      2 frames
    3. Spring Data Core
      BasicPersistentEntity.doWithProperties
      1. org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:257)
      1 frame
    4. Spring Data Cassandra - Core
      CassandraTemplate.insertAsynchronously
      1. org.springframework.data.cassandra.convert.MappingCassandraConverter.writeInsertFromWrapper(MappingCassandraConverter.java:239)
      2. org.springframework.data.cassandra.convert.MappingCassandraConverter.writeInsertFromObject(MappingCassandraConverter.java:233)
      3. org.springframework.data.cassandra.convert.MappingCassandraConverter.write(MappingCassandraConverter.java:222)
      4. org.springframework.data.cassandra.core.CassandraTemplate.createInsertQuery(CassandraTemplate.java:841)
      5. org.springframework.data.cassandra.core.CassandraTemplate.doInsertAsync(CassandraTemplate.java:649)
      6. org.springframework.data.cassandra.core.CassandraTemplate.insertAsynchronously(CassandraTemplate.java:307)
      6 frames