org.springframework.integration.MessageDeliveryException: failed to send Message to channel 'gemfireBackedChannel'

Spring JIRA | Jim Stabile | 5 years ago
  1. 0

    When using a simple gemfire message store, first msg is received successfully, then continuously getting two exceptions. Just started happening when upgrading to 2.1M3 1. From thread doing a queue.send(): {code} org.springframework.integration.MessageDeliveryException: failed to send Message to channel 'gemfireBackedChannel' at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:165) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at com.vmware.vshield.vsm.auditing.service.impl.AuditingServiceImpl.log(AuditingServiceImpl.java:50) at com.vmware.vshield.vsm.auditing.service.impl.AuditLogGenerator$AuditLogThread.run(AuditLogGenerator.java:49) Caused by: java.lang.IllegalArgumentException: Object of class [null] must be an instance of interface org.springframework.integration.Message at org.springframework.util.Assert.isInstanceOf(Assert.java:337) at org.springframework.util.Assert.isInstanceOf(Assert.java:319) at org.springframework.integration.store.AbstractKeyValueMessageStore.getRawMessage(AbstractKeyValueMessageStore.java:277) at org.springframework.integration.store.AbstractKeyValueMessageStore.getMessage(AbstractKeyValueMessageStore.java:50) at org.springframework.integration.store.AbstractKeyValueMessageStore.buildMessageGroup(AbstractKeyValueMessageStore.java:242) at org.springframework.integration.store.AbstractKeyValueMessageStore.getMessageGroup(AbstractKeyValueMessageStore.java:87) at org.springframework.integration.store.AbstractKeyValueMessageStore.addMessageToGroup(AbstractKeyValueMessageStore.java:99) at org.springframework.integration.store.MessageGroupQueue.offer(MessageGroupQueue.java:86) at org.springframework.integration.store.MessageGroupQueue.put(MessageGroupQueue.java:169) at org.springframework.integration.store.MessageGroupQueue.put(MessageGroupQueue.java:37) at org.springframework.integration.channel.QueueChannel.doSend(QueueChannel.java:79) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) {code} 2. From second thread (poller) attempting to get the next msg from the queue: {code} 09:59:31.488 ERROR task-scheduler-2 LoggingHandler:126 - java.lang.IllegalArgumentException: message must not be null at org.springframework.util.Assert.notNull(Assert.java:112) at org.springframework.integration.support.MessageBuilder.fromMessage(MessageBuilder.java:74) at org.springframework.integration.store.AbstractKeyValueMessageStore.normalizeMessage(AbstractKeyValueMessageStore.java:207) at org.springframework.integration.store.AbstractKeyValueMessageStore.pollMessageFromGroup(AbstractKeyValueMessageStore.java:186) at org.springframework.integration.store.MessageGroupQueue.poll(MessageGroupQueue.java:105) at org.springframework.integration.store.MessageGroupQueue.poll(MessageGroupQueue.java:37) at org.springframework.integration.channel.QueueChannel.doReceive(QueueChannel.java:94) at org.springframework.integration.channel.AbstractPollableChannel.receive(AbstractPollableChannel.java:57) at org.springframework.integration.endpoint.PollingConsumer.doPoll(PollingConsumer.java:58) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:144) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:207) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:202) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:51) 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:207) 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:619) {code}

    Spring JIRA | 5 years ago | Jim Stabile
    org.springframework.integration.MessageDeliveryException: failed to send Message to channel 'gemfireBackedChannel'
  2. 0

    When using a simple gemfire message store, first msg is received successfully, then continuously getting two exceptions. Just started happening when upgrading to 2.1M3 1. From thread doing a queue.send(): {code} org.springframework.integration.MessageDeliveryException: failed to send Message to channel 'gemfireBackedChannel' at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:165) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at com.vmware.vshield.vsm.auditing.service.impl.AuditingServiceImpl.log(AuditingServiceImpl.java:50) at com.vmware.vshield.vsm.auditing.service.impl.AuditLogGenerator$AuditLogThread.run(AuditLogGenerator.java:49) Caused by: java.lang.IllegalArgumentException: Object of class [null] must be an instance of interface org.springframework.integration.Message at org.springframework.util.Assert.isInstanceOf(Assert.java:337) at org.springframework.util.Assert.isInstanceOf(Assert.java:319) at org.springframework.integration.store.AbstractKeyValueMessageStore.getRawMessage(AbstractKeyValueMessageStore.java:277) at org.springframework.integration.store.AbstractKeyValueMessageStore.getMessage(AbstractKeyValueMessageStore.java:50) at org.springframework.integration.store.AbstractKeyValueMessageStore.buildMessageGroup(AbstractKeyValueMessageStore.java:242) at org.springframework.integration.store.AbstractKeyValueMessageStore.getMessageGroup(AbstractKeyValueMessageStore.java:87) at org.springframework.integration.store.AbstractKeyValueMessageStore.addMessageToGroup(AbstractKeyValueMessageStore.java:99) at org.springframework.integration.store.MessageGroupQueue.offer(MessageGroupQueue.java:86) at org.springframework.integration.store.MessageGroupQueue.put(MessageGroupQueue.java:169) at org.springframework.integration.store.MessageGroupQueue.put(MessageGroupQueue.java:37) at org.springframework.integration.channel.QueueChannel.doSend(QueueChannel.java:79) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) {code} 2. From second thread (poller) attempting to get the next msg from the queue: {code} 09:59:31.488 ERROR task-scheduler-2 LoggingHandler:126 - java.lang.IllegalArgumentException: message must not be null at org.springframework.util.Assert.notNull(Assert.java:112) at org.springframework.integration.support.MessageBuilder.fromMessage(MessageBuilder.java:74) at org.springframework.integration.store.AbstractKeyValueMessageStore.normalizeMessage(AbstractKeyValueMessageStore.java:207) at org.springframework.integration.store.AbstractKeyValueMessageStore.pollMessageFromGroup(AbstractKeyValueMessageStore.java:186) at org.springframework.integration.store.MessageGroupQueue.poll(MessageGroupQueue.java:105) at org.springframework.integration.store.MessageGroupQueue.poll(MessageGroupQueue.java:37) at org.springframework.integration.channel.QueueChannel.doReceive(QueueChannel.java:94) at org.springframework.integration.channel.AbstractPollableChannel.receive(AbstractPollableChannel.java:57) at org.springframework.integration.endpoint.PollingConsumer.doPoll(PollingConsumer.java:58) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:144) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:207) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:202) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:51) 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:207) 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:619) {code}

    Spring JIRA | 5 years ago | Jim Stabile
    org.springframework.integration.MessageDeliveryException: failed to send Message to channel 'gemfireBackedChannel'
  3. 0

    ERROR: 'ContentNegotiatingViewResolver'of Spring 3.0.3 MVC Portlet+JSON

    Stack Overflow | 6 years ago | Paarth
    java.lang.IllegalArgumentException: Object of class [org.springframework.web.portlet.context.PortletRequestAttributes] must be an instance of class org.springframework.web.context.request.ServletRequestAttributes
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, when I try to login to our local Jenkins instance and have the "Remember me" box ticked, I'm greeted in Jenkins with the following stack trace: {code} java.lang.IllegalArgumentException: Object of class [java.lang.String] must be an instance of interface org.acegisecurity.userdetails.UserDetails at org.springframework.util.Assert.isInstanceOf(Assert.java:337) at org.springframework.util.Assert.isInstanceOf(Assert.java:319) at hudson.security.TokenBasedRememberMeServices2.loginSuccess(TokenBasedRememberMeServices2.java:105) at org.acegisecurity.ui.AbstractProcessingFilter.successfulAuthentication(AbstractProcessingFilter.java:488) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:266) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:74) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} I was able to reproduce this for various users. After this message, I can use Jenkins normally but have to log in on the next browser start. If I leave the box unticked I don't get this message. These are the settings in the Crowd Global Security tab: {panel} TCP port for JNLP slave agents: Random Disable Remember me: Unticked Use nested groups: Unticked Use SSO: Unticked {panel}

    Jenkins JIRA | 3 years ago | Patrick Stegmann
    java.lang.IllegalArgumentException: Object of class [java.lang.String] must be an instance of interface org.acegisecurity.userdetails.UserDetails
  6. 0

    Get this reliably if I choose "remember me" after upgrading to latest crowd2 auth plugin: java.lang.IllegalArgumentException: Object of class [java.lang.String] must be an instance of interface org.acegisecurity.userdetails.UserDetails at org.springframework.util.Assert.isInstanceOf(Assert.java:337) at org.springframework.util.Assert.isInstanceOf(Assert.java:319) at hudson.security.TokenBasedRememberMeServices2.loginSuccess(TokenBasedRememberMeServices2.java:105) at org.acegisecurity.ui.AbstractProcessingFilter.successfulAuthentication(AbstractProcessingFilter.java:488) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:266) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:74) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    Jenkins JIRA | 3 years ago | Nathan Neulinger
    java.lang.IllegalArgumentException: Object of class [java.lang.String] must be an instance of interface org.acegisecurity.userdetails.UserDetails

  1. tvrmsmith 1 times, last 3 weeks ago
8 unregistered visitors
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 of class [null] must be an instance of interface org.springframework.integration.Message

    at org.springframework.util.Assert.isInstanceOf()
  2. Spring Core
    Assert.isInstanceOf
    1. org.springframework.util.Assert.isInstanceOf(Assert.java:337)
    2. org.springframework.util.Assert.isInstanceOf(Assert.java:319)
    2 frames
  3. Spring Integration Core
    AbstractMessageChannel.send
    1. org.springframework.integration.store.AbstractKeyValueMessageStore.getRawMessage(AbstractKeyValueMessageStore.java:277)
    2. org.springframework.integration.store.AbstractKeyValueMessageStore.getMessage(AbstractKeyValueMessageStore.java:50)
    3. org.springframework.integration.store.AbstractKeyValueMessageStore.buildMessageGroup(AbstractKeyValueMessageStore.java:242)
    4. org.springframework.integration.store.AbstractKeyValueMessageStore.getMessageGroup(AbstractKeyValueMessageStore.java:87)
    5. org.springframework.integration.store.AbstractKeyValueMessageStore.addMessageToGroup(AbstractKeyValueMessageStore.java:99)
    6. org.springframework.integration.store.MessageGroupQueue.offer(MessageGroupQueue.java:86)
    7. org.springframework.integration.store.MessageGroupQueue.put(MessageGroupQueue.java:169)
    8. org.springframework.integration.store.MessageGroupQueue.put(MessageGroupQueue.java:37)
    9. org.springframework.integration.channel.QueueChannel.doSend(QueueChannel.java:79)
    10. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157)
    10 frames