org.springframework.integration.message.MessageHandlingException: error occurred in message handler [ServiceActivator for [org.springframework.integration.handler.MessageMappingMethodInvoker@87e704]]

Spring JIRA | John Turner | 8 years ago
  1. 0

    I am playing around with Spring Integration and developed a small project that simulates a request-response integration. I created test cases to execute the communication through local channels, JBoss MQ JMS and ActiveMQ JMS. The local and JBoss MQ JMS test cases execute as expected but there are intermittent exceptions (see below) when i execute the ActiveMQ JMS test. 27-Mar-2009 17:41:08 org.springframework.integration.handler.LoggingHandler handleMessageInternal SEVERE: org.springframework.integration.message.MessageHandlingException: error occurred in message handler [ServiceActivator for [org.springframework.integration.handler.MessageMappingMethodInvoker@87e704]] at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:54) at org.springframework.integration.endpoint.PollingConsumer.doPoll(PollingConsumer.java:59) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.innerPoll(AbstractPollingEndpoint.java:232) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.poll(AbstractPollingEndpoint.java:216) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:209) at org.springframework.integration.scheduling.SimpleTaskScheduler$ErrorHandlingRunnableWrapper.run(SimpleTaskScheduler.java:307) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135) at org.springframework.integration.scheduling.SimpleTaskScheduler$TriggeredTask.run(SimpleTaskScheduler.java:256) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Failed to convert argument type. at org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:81) at org.springframework.integration.handler.MessageMappingMethodInvoker.doInvokeMethod(MessageMappingMethodInvoker.java:132) at org.springframework.integration.handler.MessageMappingMethodInvoker.invokeMethod(MessageMappingMethodInvoker.java:100) at org.springframework.integration.handler.ServiceActivatingHandler.handleRequestMessage(ServiceActivatingHandler.java:49) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:90) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:48) ... 12 more Caused by: org.springframework.beans.TypeMismatchException: Failed to convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]: no matching editors or conversion strategy found at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:50) at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:41) at org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:78) ... 17 more Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:107) at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:47) ... 19 more

    Spring JIRA | 8 years ago | John Turner
    org.springframework.integration.message.MessageHandlingException: error occurred in message handler [ServiceActivator for [org.springframework.integration.handler.MessageMappingMethodInvoker@87e704]]
  2. 0

    I am playing around with Spring Integration and developed a small project that simulates a request-response integration. I created test cases to execute the communication through local channels, JBoss MQ JMS and ActiveMQ JMS. The local and JBoss MQ JMS test cases execute as expected but there are intermittent exceptions (see below) when i execute the ActiveMQ JMS test. 27-Mar-2009 17:41:08 org.springframework.integration.handler.LoggingHandler handleMessageInternal SEVERE: org.springframework.integration.message.MessageHandlingException: error occurred in message handler [ServiceActivator for [org.springframework.integration.handler.MessageMappingMethodInvoker@87e704]] at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:54) at org.springframework.integration.endpoint.PollingConsumer.doPoll(PollingConsumer.java:59) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.innerPoll(AbstractPollingEndpoint.java:232) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.poll(AbstractPollingEndpoint.java:216) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:209) at org.springframework.integration.scheduling.SimpleTaskScheduler$ErrorHandlingRunnableWrapper.run(SimpleTaskScheduler.java:307) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135) at org.springframework.integration.scheduling.SimpleTaskScheduler$TriggeredTask.run(SimpleTaskScheduler.java:256) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Failed to convert argument type. at org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:81) at org.springframework.integration.handler.MessageMappingMethodInvoker.doInvokeMethod(MessageMappingMethodInvoker.java:132) at org.springframework.integration.handler.MessageMappingMethodInvoker.invokeMethod(MessageMappingMethodInvoker.java:100) at org.springframework.integration.handler.ServiceActivatingHandler.handleRequestMessage(ServiceActivatingHandler.java:49) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:90) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:48) ... 12 more Caused by: org.springframework.beans.TypeMismatchException: Failed to convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]: no matching editors or conversion strategy found at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:50) at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:41) at org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:78) ... 17 more Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:107) at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:47) ... 19 more

    Spring JIRA | 8 years ago | John Turner
    org.springframework.integration.message.MessageHandlingException: error occurred in message handler [ServiceActivator for [org.springframework.integration.handler.MessageMappingMethodInvoker@87e704]]
  3. 0

    [SPR-4006] InitDestroyAnnotationPostProcessor triggers "No bean class specified on bean definition" - Spring JIRA

    spring.io | 11 months ago
    java.lang.IllegalArgumentException: Cannot convert value of type to required type : no matching editors or conversion strategy found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [SPR-4006] InitDestroyAnnotationPostProcessor triggers "No bean class specified on bean definition" - Spring JIRA

    spring.io | 11 months ago
    java.lang.IllegalArgumentException: Cannot convert value of type to required type : no matching editors or conversion strategy found
  6. 0

    Failed to convert property value of type[il.siqee.common.logging.custom.CustomLogger] to required type [il.siqee.common.logging.custom.CustomLogger]

    Stack Overflow | 1 year ago | Justin
    java.lang.IllegalArgumentException: Cannot convert value of type [il.siqee.common.logging.custom.CustomLogger] to required type [il.siqee.common.logging.custom.CustomLogger] for property 'customLogger': no matching editors or conversion strategy found

    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

      Cannot convert value of type [org.springframework.integration.message.GenericMessage] to required type [ie.springit.eai.loanbroker.model.LoanApplication]: no matching editors or conversion strategy found

      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary()
    2. Spring Beans
      SimpleTypeConverter.convertIfNecessary
      1. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
      2. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:107)
      3. org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:47)
      4. org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:41)
      4 frames
    3. Spring Integration Core
      SimpleTaskScheduler$ErrorHandlingRunnableWrapper.run
      1. org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:78)
      2. org.springframework.integration.handler.MessageMappingMethodInvoker.doInvokeMethod(MessageMappingMethodInvoker.java:132)
      3. org.springframework.integration.handler.MessageMappingMethodInvoker.invokeMethod(MessageMappingMethodInvoker.java:100)
      4. org.springframework.integration.handler.ServiceActivatingHandler.handleRequestMessage(ServiceActivatingHandler.java:49)
      5. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:90)
      6. org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:48)
      7. org.springframework.integration.endpoint.PollingConsumer.doPoll(PollingConsumer.java:59)
      8. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.innerPoll(AbstractPollingEndpoint.java:232)
      9. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.poll(AbstractPollingEndpoint.java:216)
      10. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:209)
      11. org.springframework.integration.scheduling.SimpleTaskScheduler$ErrorHandlingRunnableWrapper.run(SimpleTaskScheduler.java:307)
      11 frames
    4. Java RT
      FutureTask.runAndReset
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
      3 frames
    5. Spring Integration Core
      SimpleTaskScheduler$TriggeredTask.run
      1. org.springframework.integration.scheduling.SimpleTaskScheduler$TriggeredTask.run(SimpleTaskScheduler.java:256)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      3. java.lang.Thread.run(Thread.java:595)
      3 frames