org.springframework.integration.MessagingException: Could not convert reply: no suitable HttpMessageConverter found for type [org.springframework.http.HttpStatus] and accept types [[text/plain, */*]]

Spring JIRA | Oleg Zhurakousky | 6 years ago
  1. 0

    In addition to https://jira.spring.io/browse/INT-3859 ticket after up gradation we are receiving new error, kindly assist: Spring integration version is 3.0.8.RELEASE: {noformat} 2015-11-18 06:28:09,575 ERROR LoggingHandler::handleMessageInternal > org.springframework.integration.MessagingException: failure occurred while polling for mail at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:73) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:111) at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:184) at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:51) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:143) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:141) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:273) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:268) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.mail.MessagingException: A79 NO Server Unavailable. 15; nested exception is: com.sun.mail.iap.CommandFailedException: A79 NO Server Unavailable. 15 at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2588) at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:519) at org.springframework.integration.mail.AbstractMailReceiver.openFolder(AbstractMailReceiver.java:237) at org.springframework.integration.mail.AbstractMailReceiver.receive(AbstractMailReceiver.java:257) at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:59) ... 20 more Caused by: com.sun.mail.iap.CommandFailedException: A79 NO Server Unavailable. 15 at com.sun.mail.iap.Protocol.handleResult(Protocol.java:341) at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:869) at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:821) at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:521) at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2639) at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2583) {noformat}

    Spring JIRA | 1 year ago | sb
    org.springframework.integration.MessagingException: failure occurred while polling for mail
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    It is impossible to invoke any operation with any argument type being a primitive. OperationInvokingMessageHandler.handleRequestMessage() finds the correct operation, but when matching the signature, comparing arguments, it will never match primitive types. {code:java} if (value != null && value.getClass().getName().equals(paramInfo.getType())) { } {code} You have no possibility to pass primitive types herein: {{value.getClass().getName()}} will return "java.lang.Boolean" not equal to {{paramInfo.getType()}} returning "boolean". The same applies to lont, int etc. E.g. it is impossible to call stopActiveComponents of integrationMBeanExporter ... {code:xml} <int:channel id="shutdownChannel" /> <int-jmx:operation-invoking-channel-adapter id="shutdownAdapter" channel="shutdownChannel" object-name="org.springframework.integration.monitor:name=integrationMBeanExporter,type=IntegrationMBeanExporter" operation-name="stopActiveComponents"/> {code} ... {code:java} List<Object> arguments = new LinkedList<Object>(); arguments.add(true); arguments.add(0); shutdownChannel.send(MessageBuilder.withPayload(arguments).build()); {code} Results in: {code} Exception in thread "Thread-1" org.springframework.integration.MessagingException: failed to find JMX operation 'stopActiveComponents' on MBean [org.springframework.integration.monitor:name=integrationMBeanExporter,type=IntegrationMBeanExporter] of type [org.springframework.integration.monitor.IntegrationMBeanExporter] with 2 parameters: [p2, p1] at org.springframework.integration.jmx.OperationInvokingMessageHandler.handleRequestMessage(OperationInvokingMessageHandler.java:154) ... {code}

    Spring JIRA | 3 years ago | sibidiba
    org.springframework.integration.MessagingException: failed to find JMX operation 'stopActiveComponents' on MBean [org.springframework.integration.monitor:name=integrationMBeanExporter,type=IntegrationMBeanExporter] of type [org.springframework.integration.monitor.IntegrationMBeanExporter] with 2 parameters: [p2, p1]
  4. 0

    Spring integration - imap - credentials issue

    Stack Overflow | 3 years ago | Urbanleg
    org.springframework.integration.MessagingException: failure occurred while polling for mail

    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. org.springframework.integration.MessagingException

      Could not convert reply: no suitable HttpMessageConverter found for type [org.springframework.http.HttpStatus] and accept types [[text/plain, */*]]

      at org.springframework.integration.http.inbound.HttpRequestHandlingMessagingGateway.writeResponse()
    2. org.springframework.integration
      HttpRequestHandlingMessagingGateway.handleRequest
      1. org.springframework.integration.http.inbound.HttpRequestHandlingMessagingGateway.writeResponse(HttpRequestHandlingMessagingGateway.java:130)
      2. org.springframework.integration.http.inbound.HttpRequestHandlingMessagingGateway.handleRequest(HttpRequestHandlingMessagingGateway.java:99)
      2 frames
    3. Spring
      HttpRequestHandlerServlet.service
      1. org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:67)
      1 frame