springframework.beans.BeanInstantiationException: Failed to instantiate [org .axonframework.eventsourcing.EventSourcingRepository]: Factory method 'eventSourcingRepository' threw exception; nested exception is java.lang. NoSuchMethodError: com.thoughtworks.xstream.XStream.addImmutableType(Ljava/ lang/Class;Z)V

Google Groups | Mellow Hide | 7 months 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

    Exception using JpaEventStorageEngine or JdbcEventStorageEngine

    Google Groups | 7 months ago | Mellow Hide
    springframework.beans.BeanInstantiationException: Failed to instantiate [org .axonframework.eventsourcing.EventSourcingRepository]: Factory method 'eventSourcingRepository' threw exception; nested exception is java.lang. NoSuchMethodError: com.thoughtworks.xstream.XStream.addImmutableType(Ljava/ lang/Class;Z)V
  2. 0

    Axon Release candidates asking for eventStorageEngine

    Google Groups | 3 months ago | Richard Valdivieso
    org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.axonframework.eventsourcing.eventstore.EventStorageEngine]: Factory method 'eventStorageEngine' threw exception; nested exception is java.lang.NoSuchMethodError: com.thoughtworks.xstream.XStream.addImmutableType(Ljava/lang/Class;Z)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.thoughtworks.xstream.XStream. addImmutableType(Ljava/lang/Class;Z)V

      at org.axonframework.serialization.AbstractXStreamSerializer.<init>()
    2. org.axonframework.serialization
      XStreamSerializer.<init>
      1. org.axonframework.serialization.AbstractXStreamSerializer.<init>(AbstractXStreamSerializer.java:129)[axon-core-3.0-M3.jar:3.0-M3]
      2. org.axonframework.serialization.AbstractXStreamSerializer.<init>(AbstractXStreamSerializer.java:103)[axon-core-3.0-M3.jar:3.0-M3]
      3. org.axonframework.serialization.AbstractXStreamSerializer.<init>(AbstractXStreamSerializer.java:78)[axon-core-3.0-M3.jar:3.0-M3]
      4. org.axonframework.serialization.AbstractXStreamSerializer.<init>(AbstractXStreamSerializer.java:67)[axon-core-3.0-M3.jar:3.0-M3]
      5. org.axonframework.serialization.xml.XStreamSerializer.<init>(XStreamSerializer.java:49)[axon-core-3.0-M3.jar:3.0-M3]
      5 frames
    3. org.axonframework.eventsourcing
      JpaEventStorageEngine.<init>
      1. org.axonframework.eventsourcing.eventstore.AbstractEventStorageEngine.<init>(AbstractEventStorageEngine.java:37)[axon-core-3.0-M3.jar:3.0-M3]
      2. org.axonframework.eventsourcing.eventstore.BatchingEventStorageEngine.<init>(BatchingEventStorageEngine.java:40)[axon-core-3.0-M3.jar:3.0-M3]
      3. org.axonframework.eventsourcing.eventstore.jpa.JpaEventStorageEngine.<init>(JpaEventStorageEngine.java:37)[axon-core-3.0-M3.jar:3.0-M3]
      3 frames
    4. com.test.icd
      ApplicationConfiguration$$EnhancerBySpringCGLIB$$4042e104$$FastClassBySpringCGLIB$$adac035f.invoke
      1. com.test.icd.vehicleservice.ApplicationConfiguration.eventSourcingRepository(ApplicationConfiguration.java:55)[main/:na]
      2. com.test.icd.vehicleservice.ApplicationConfiguration$$EnhancerBySpringCGLIB$$4042e104.CGLIB$eventSourcingRepository$3(<generated>)[main/:na]
      3. com.test.icd.vehicleservice.ApplicationConfiguration$$EnhancerBySpringCGLIB$$4042e104$$FastClassBySpringCGLIB$$adac035f.invoke(<generated>)[main/:na]
      3 frames
    5. Spring Core
      MethodProxy.invokeSuper
      1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    6. Spring Context
      ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
      1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    7. com.test.icd
      ApplicationConfiguration$$EnhancerBySpringCGLIB$$4042e104.eventSourcingRepository
      1. com.test.icd.vehicleservice.ApplicationConfiguration$$EnhancerBySpringCGLIB$$4042e104.eventSourcingRepository(<generated>)[main/:na]
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_25]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_25]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_25]
      4. java.lang.reflect.Method.invoke(Method.java:483)[na:1.8.0_25]
      4 frames
    9. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      11 frames
    10. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    11. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      6 frames
    12. com.test.icd
      DeliveryServiceApplication.main
      1. com.test.icd.vehicleservice.DeliveryServiceApplication.main(DeliveryServiceApplication.java:10)[main/:na]
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_25]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_25]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_25]
      4. java.lang.reflect.Method.invoke(Method.java:483)[na:1.8.0_25]
      4 frames
    14. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)[idea_rt.jar:na]
      1 frame