java.lang.IllegalArgumentException

object is not an instance of declaring class

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web23125

  • object is not an instance of declaring class
  • object is not an instance of declaring class
  • object is not an instance of declaring class
  • Stack trace

    • java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_77] at org.axonframework.messaging.annotation.AnnotatedMessageHandlingMember.handle(AnnotatedMessageHandlingMember.java:91)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.SagaMethodMessageHandlingMember.handle(SagaMethodMessageHandlingMember.java:73)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.AnnotatedSaga.lambda$null$3(AnnotatedSaga.java:102)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.SagaLifecycle.executeWithResult(SagaLifecycle.java:64)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.AnnotatedSaga.lambda$handle$4(AnnotatedSaga.java:102)[axon-core-3.0-M5.jar:3.0-M5] at java.util.Optional.map(Optional.java:215)[na:1.8.0_77] at org.axonframework.eventhandling.saga.AnnotatedSaga.handle(AnnotatedSaga.java:100)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.AbstractSagaManager.doInvokeSaga(AbstractSagaManager.java:109)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.AbstractSagaManager.handle(AbstractSagaManager.java:71)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.saga.AbstractSagaManager.handle(AbstractSagaManager.java:39)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:57)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.AbstractEventProcessor.lambda$process$5(AbstractEventProcessor.java:124)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.BatchingUnitOfWork.executeWithResult(BatchingUnitOfWork.java:65)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.AbstractEventProcessor.process(AbstractEventProcessor.java:112)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.DirectEventProcessingStrategy.handle(DirectEventProcessingStrategy.java:27)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.SubscribingEventProcessor.lambda$start$0(SubscribingEventProcessor.java:104)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.AbstractEventBus.lambda$prepareCommit$10(AbstractEventBus.java:191)[axon-core-3.0-M5.jar:3.0-M5] at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:890)[na:1.8.0_77] at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404)[na:1.8.0_77] at org.axonframework.eventhandling.AbstractEventBus.prepareCommit(AbstractEventBus.java:191)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventsourcing.eventstore.AbstractEventStore.prepareCommit(AbstractEventStore.java:64)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.AbstractEventBus.doWithEvents(AbstractEventBus.java:179)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.eventhandling.AbstractEventBus.lambda$null$3(AbstractEventBus.java:131)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.MessageProcessingContext.notifyHandlers(MessageProcessingContext.java:68)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.DefaultUnitOfWork.notifyHandlers(DefaultUnitOfWork.java:88)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.AbstractUnitOfWork.changePhase(AbstractUnitOfWork.java:214)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.AbstractUnitOfWork.commitAsRoot(AbstractUnitOfWork.java:83)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.AbstractUnitOfWork.commit(AbstractUnitOfWork.java:71)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.messaging.unitofwork.DefaultUnitOfWork.executeWithResult(DefaultUnitOfWork.java:77)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:143)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:119)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.commandhandling.SimpleCommandBus.dispatch(SimpleCommandBus.java:89)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.commandhandling.gateway.AbstractCommandGateway.send(AbstractCommandGateway.java:79)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.commandhandling.gateway.DefaultCommandGateway.send(DefaultCommandGateway.java:90)[axon-core-3.0-M5.jar:3.0-M5] at org.axonframework.commandhandling.gateway.DefaultCommandGateway.sendAndWait(DefaultCommandGateway.java:108)[axon-core-3.0-M5.jar:3.0-M5] at com.mbenabda.tontine.interfaces.web.mini.app.configuration.mockData.MockDataInitilizingAppLifecycleListener.createTontine(MockDataInitilizingAppLifecycleListener.java:69)[classes/:na] at com.mbenabda.tontine.interfaces.web.mini.app.configuration.mockData.MockDataInitilizingAppLifecycleListener.initializeFakeData(MockDataInitilizingAppLifecycleListener.java:50)[classes/:na] at com.mbenabda.tontine.interfaces.web.mini.app.configuration.mockData.MockDataInitilizingAppLifecycleListener.onApplicationEvent(MockDataInitilizingAppLifecycleListener.java:40)[classes/:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 week ago
    Unknown user
    Once, 3 weeks ago
    2 times, 1 month ago
    2 times, 1 month ago
    Once, 2 months ago
    96 more bugmates