java.lang.IllegalArgumentException: object is not an instance of declaring class

Google Groups | Mehdi Ben Abdallah | 2 months ago
  1. 0

    v3 M5 : IllegalArgumentException when using Sagas in a spring app with in memory building blocks

    Google Groups | 2 months ago | Mehdi Ben Abdallah
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  2. 0

    RequestFactory with Use of Locator

    Google Groups | 5 years ago | hkropp
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  3. 0

    RequestFactory with Use of Locator

    Google Groups | 5 years ago | hkropp
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    What is wrong with my Method.invoke call?

    Stack Overflow | 9 months ago | Steffen Heil
    java.lang.IllegalArgumentException: argument type mismatch
  6. 0

    Vararg method call on mock object fails when used org.mockito.AdditionalAnswers#delegatesTo

    GitHub | 7 months ago | andreyrmg
    java.lang.IllegalArgumentException: wrong number of arguments
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.IllegalArgumentException

    object is not an instance of declaring class

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