java.lang.NoSuchMethodError: org.springframework.data.cassandra.mapping.CassandraPersistentProperty.getActualType()Ljava/lang/Class;

Spring JIRA | Colin McQueen | 3 years ago
  1. 0

    {code} java.lang.NoSuchMethodError: org.springframework.data.cassandra.mapping.CassandraPersistentProperty.getActualType()Ljava/lang/Class; at org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty(CassandraTemplate.java:307) at org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty(CassandraTemplate.java:302) at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:240) at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:302) at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:321) at org.springframework.data.cassandra.core.CassandraTemplate.selectOneById(CassandraTemplate.java:282) at org.springframework.data.cassandra.repository.support.SimpleCassandraRepository.findOne(SimpleCassandraRepository.java:69) {code} Here is my code that causes the stacktrace above: Service Unit Test: {code} DateTime date = new DateTime(DateTimeZone.UTC).withDayOfMonth(24).withHourOfDay(19).withMinuteOfHour(1) .withSecondOfMinute(0).withMillisOfSecond(0); FooKey key = new FooKey(UUID.fromString("f73f4a00-9d88-11e3-be4b-009c02935f8e"), "2014", date.toDate()); Foo data = service.selectById(key); Assert.assertNotNull(data); {code} The service code: {code} @Service public class FooServiceImpl implements IFooService { @Autowired private IFooRepository repository; @Override public Foo save(final Foo entity) { return repository.save(entity); } @Override public void delete(final Foo entity) { repository.delete(entity); } @Override public Foo selectById(final FooKey id) { return repository.findOne(id); } } {code} Repository: {code} @Repository public interface IFooRepository extends CassandraRepository<Foo, FooKey> { } {code} I checked the source code in GitHub and it is missing that method. Edit: I would like to mention that this error happens on trying to find one entity or trying to delete an entity.

    Spring JIRA | 3 years ago | Colin McQueen
    java.lang.NoSuchMethodError: org.springframework.data.cassandra.mapping.CassandraPersistentProperty.getActualType()Ljava/lang/Class;
  2. 0

    {code} java.lang.NoSuchMethodError: org.springframework.data.cassandra.mapping.CassandraPersistentProperty.getActualType()Ljava/lang/Class; at org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty(CassandraTemplate.java:307) at org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty(CassandraTemplate.java:302) at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:240) at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:302) at org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:321) at org.springframework.data.cassandra.core.CassandraTemplate.selectOneById(CassandraTemplate.java:282) at org.springframework.data.cassandra.repository.support.SimpleCassandraRepository.findOne(SimpleCassandraRepository.java:69) {code} Here is my code that causes the stacktrace above: Service Unit Test: {code} DateTime date = new DateTime(DateTimeZone.UTC).withDayOfMonth(24).withHourOfDay(19).withMinuteOfHour(1) .withSecondOfMinute(0).withMillisOfSecond(0); FooKey key = new FooKey(UUID.fromString("f73f4a00-9d88-11e3-be4b-009c02935f8e"), "2014", date.toDate()); Foo data = service.selectById(key); Assert.assertNotNull(data); {code} The service code: {code} @Service public class FooServiceImpl implements IFooService { @Autowired private IFooRepository repository; @Override public Foo save(final Foo entity) { return repository.save(entity); } @Override public void delete(final Foo entity) { repository.delete(entity); } @Override public Foo selectById(final FooKey id) { return repository.findOne(id); } } {code} Repository: {code} @Repository public interface IFooRepository extends CassandraRepository<Foo, FooKey> { } {code} I checked the source code in GitHub and it is missing that method. Edit: I would like to mention that this error happens on trying to find one entity or trying to delete an entity.

    Spring JIRA | 3 years ago | Colin McQueen
    java.lang.NoSuchMethodError: org.springframework.data.cassandra.mapping.CassandraPersistentProperty.getActualType()Ljava/lang/Class;
  3. 0

    Class path contains multiple SLF4J bindings – Java – Fórum – Programujte.com

    programujte.com | 5 months ago
    java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.determineCommonAncestor(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring under Geronimo v2.1 with Jetty

    Stack Overflow | 5 years ago | bontade
    org.apache.xbean.recipe.ConstructionException: Error invoking constructor: public org.springframework.web.servlet.DispatcherServlet()
  6. 0

    This comes out of a DGI client ticket. For DGI folks heres the redmine: http://support.discoverygarden.ca/issues/1593 When I tried to do a Fedora rebuild on my development copy of the Alliance server setup I got this error in $FEDORA_HOME/server/logs/fedora-rebuild.log INFO 2011-11-16 19:46:28.281 [main] (Server) Initializing org.fcrepo.server.search.FieldSearchSQLModule INFO 2011-11-16 19:46:28.283 [main] (Server) Initializing org.fcrepo.server.utilities.rebuild.RebuildDOManager INFO 2011-11-16 19:46:28.290 [main] (Server) Initializing org.fcrepo.server.storage.ConnectionPoolManagerImpl INFO 2011-11-16 19:46:28.304 [main] (Server) Initializing org.fcrepo.server.validation.DOValidatorModule INFO 2011-11-16 19:46:28.306 [main] (Server) Initializing org.fcrepo.server.security.DefaultBackendSecurity INFO 2011-11-16 19:46:28.307 [main] (Server) Initializing org.fcrepo.server.messaging.MessagingModule INFO 2011-11-16 19:46:28.969 [main] (Server) Initializing org.fcrepo.server.storage.DefaultExternalContentManager INFO 2011-11-16 19:46:28.990 [main] (Server) Initializing org.fcrepo.server.management.BasicPIDGenerator INFO 2011-11-16 19:46:28.991 [main] (Server) Initializing org.fcrepo.server.storage.translation.DOTranslatorModule INFO 2011-11-16 19:46:29.123 [main] (Server) Initializing org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule INFO 2011-11-16 19:46:29.123 [main] (Server) Post-Initializing org.fcrepo.server.search.FieldSearchSQLModule INFO 2011-11-16 19:46:29.125 [main] (Server) Post-Initializing org.fcrepo.server.utilities.rebuild.RebuildDOManager INFO 2011-11-16 19:46:29.392 [main] (Server) Post-Initializing org.fcrepo.server.storage.ConnectionPoolManagerImpl INFO 2011-11-16 19:46:29.392 [main] (Server) Post-Initializing org.fcrepo.server.validation.DOValidatorModule INFO 2011-11-16 19:46:29.394 [main] (Server) Post-Initializing org.fcrepo.server.security.DefaultBackendSecurity INFO 2011-11-16 19:46:29.397 [main] (Server) Post-Initializing org.fcrepo.server.messaging.MessagingModule INFO 2011-11-16 19:46:29.397 [main] (Server) Post-Initializing org.fcrepo.server.storage.DefaultExternalContentManager INFO 2011-11-16 19:46:29.397 [main] (Server) Post-Initializing org.fcrepo.server.management.BasicPIDGenerator INFO 2011-11-16 19:46:29.400 [main] (Server) Post-Initializing org.fcrepo.server.storage.translation.DOTranslatorModule INFO 2011-11-16 19:46:29.400 [main] (Server) Post-Initializing org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule ERROR 2011-11-16 19:46:29.479 [main] (Server) Fatal error while starting server java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class; at org.springframework.core.convert.support.GenericConversionService.getRequiredTypeInfo(GenericConversionService.java:298) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.convert.support.GenericConversionService.addConverter(GenericConversionService.java:94) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.convert.support.DefaultConversionService.addDefaultConverters(DefaultConversionService.java:67) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.convert.support.DefaultConversionService.<init>(DefaultConversionService.java:40) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.env.AbstractPropertyResolver.<init>(AbstractPropertyResolver.java:41) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.env.PropertySourcesPropertyResolver.<init>(PropertySourcesPropertyResolver.java:36) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:61) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.core.env.DefaultEnvironment.<init>(DefaultEnvironment.java:96) [org.springframework.core-3.1.0.M1.jar:3.1.0.M1] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.<init>(AbstractBeanDefinitionReader.java:57) [org.springframework.beans-3.1.0.M1.jar:3.1.0.M1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.<init>(XmlBeanDefinitionReader.java:135) [org.springframework.beans-3.1.0.M1.jar:3.1.0.M1] at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:56) [org.springframework.beans-3.1.0.M1.jar:3.1.0.M1] at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:66) [org.springframework.beans-3.1.0.M1.jar:3.1.0.M1] at org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule.postInitModule(AkubraLowlevelStorageModule.java:64) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.Server.<init>(Server.java:633) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.utilities.rebuild.RebuildServer.<init>(RebuildServer.java:43) [fcrepo-server-3.4.2.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_29] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_29] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_29] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_29] at org.fcrepo.server.utilities.rebuild.RebuildServer.getRebuildInstance(RebuildServer.java:120) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.utilities.rebuild.Rebuild.getServer(Rebuild.java:173) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.utilities.rebuild.Rebuild.<init>(Rebuild.java:109) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.utilities.rebuild.Rebuild.main(Rebuild.java:394) [fcrepo-server-3.4.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_29] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_29] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_29] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_29] at org.fcrepo.server.utilities.rebuild.cli.CLILoader.main(CLILoader.java:77) [fcrepo-server-3.4.2-cli-loader-main.jar:na] INFO 2011-11-16 19:46:29.490 [main] (Server) Shutting down server INFO 2011-11-16 19:46:29.490 [main] (Server) Shutting down org.fcrepo.server.search.FieldSearchSQLModule INFO 2011-11-16 19:46:29.490 [main] (Server) Shutting down org.fcrepo.server.utilities.rebuild.RebuildDOManager INFO 2011-11-16 19:46:29.490 [main] (Server) Shutting down org.fcrepo.server.storage.ConnectionPoolManagerImpl INFO 2011-11-16 19:46:29.491 [main] (Server) Shutting down org.fcrepo.server.security.DefaultBackendSecurity INFO 2011-11-16 19:46:29.491 [main] (Server) Shutting down org.fcrepo.server.validation.DOValidatorModule INFO 2011-11-16 19:46:29.491 [main] (Server) Shutting down org.fcrepo.server.messaging.MessagingModule INFO 2011-11-16 19:46:32.900 [main] (Server) Shutting down org.fcrepo.server.storage.DefaultExternalContentManager INFO 2011-11-16 19:46:32.900 [main] (Server) Shutting down org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule INFO 2011-11-16 19:46:32.900 [main] (Server) Shutting down org.fcrepo.server.storage.translation.DOTranslatorModule INFO 2011-11-16 19:46:32.900 [main] (Server) Shutting down org.fcrepo.server.management.BasicPIDGenerator INFO 2011-11-16 19:46:32.900 [main] (Server) Server shutdown complete It turns out this is because they had the newest Spring framework installed (3.1.rc1) in order to run the listeners. They are on fedora 3.4.2. After moving the version of spring framework back to version 3.0.5 (the version that ships with fedora 3.4.2) then everything is fine. I have a thread going about this on the fedora mailing list: http://sourceforge.net/mailarchive/forum.php?thread_name=CADQQ8TMv44HD2JQeHxOz_SrHS2QURtrnFAbqMPCQHSFVdKMDwQ%40mail.gmail.com&forum_name=fedora-commons-users We will need to change the readme so that it tells what version of the spring framework to install for each version of fedora. I'm asking on the list if there is a better way to include the activemq stomp stuff.

    Sakai JIRA | 5 years ago | Jonathan Green
    java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class;

    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.cassandra.mapping.CassandraPersistentProperty.getActualType()Ljava/lang/Class;

      at org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty()
    2. Spring Data Cassandra - Core
      CassandraTemplate$1.doWithPersistentProperty
      1. org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty(CassandraTemplate.java:307)
      2. org.springframework.data.cassandra.core.CassandraTemplate$1.doWithPersistentProperty(CassandraTemplate.java:302)
      2 frames
    3. Spring Data Core
      BasicPersistentEntity.doWithProperties
      1. org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:240)
      1 frame
    4. Spring Data Cassandra - Core
      SimpleCassandraRepository.findOne
      1. org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:302)
      2. org.springframework.data.cassandra.core.CassandraTemplate.appendIdCriteria(CassandraTemplate.java:321)
      3. org.springframework.data.cassandra.core.CassandraTemplate.selectOneById(CassandraTemplate.java:282)
      4. org.springframework.data.cassandra.repository.support.SimpleCassandraRepository.findOne(SimpleCassandraRepository.java:69)
      4 frames