java.lang.IllegalArgumentException: message cannot be null

GitHub | b6arat6 | 3 months ago
  1. 0

    Re: Spam ToRepository/ToMultiRepository config problems

    james-server-dev | 9 years ago | Vincenzo Gianferrari Pini
    java.lang.IllegalArgumentException: Mail message to be spooled cannot be null.
  2. 0

    Spam ToRepository/ToMultiRepository config problems

    james-server-dev | 9 years ago | Kevin Jackson
    java.lang.IllegalArgumentException: Mail message to be spooled cannot be null.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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
    java.lang.IllegalArgumentException: message must not be null
  5. 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
    java.lang.IllegalArgumentException: message must not be null

    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

      message cannot be null

      at org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote.assertMessageNotNull()
    2. Jetty
      JsrAsyncRemote.sendBinary
      1. org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote.assertMessageNotNull(AbstractJsrRemote.java:69)
      2. org.eclipse.jetty.websocket.jsr356.JsrAsyncRemote.sendBinary(JsrAsyncRemote.java:61)
      2 frames
    3. com.apple.sample
      FileServer.onMessage
      1. com.apple.sample.websocket.endpoint.FileServer.onMessage(FileServer.java:56)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    5. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:71)
      2. org.eclipse.jetty.websocket.jsr356.annotations.OnMessageTextCallable.call(OnMessageTextCallable.java:63)
      3. org.eclipse.jetty.websocket.jsr356.annotations.JsrEvents.callText(JsrEvents.java:197)
      4. org.eclipse.jetty.websocket.jsr356.endpoints.JsrAnnotatedEventDriver.onTextMessage(JsrAnnotatedEventDriver.java:378)
      5. org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)
      6. org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66)
      7. org.eclipse.jetty.websocket.jsr356.endpoints.JsrAnnotatedEventDriver.onTextFrame(JsrAnnotatedEventDriver.java:360)
      8. org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162)
      9. org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:376)
      10. org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextIncomingFrame(AbstractExtension.java:176)
      11. org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextIncomingFrame(PerMessageDeflateExtension.java:105)
      12. org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.forwardIncoming(CompressExtension.java:142)
      13. org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.incomingFrame(PerMessageDeflateExtension.java:85)
      14. org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220)
      15. org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)
      16. org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256)
      17. org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:679)
      18. org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:511)
      19. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      20. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      21. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      21 frames
    6. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
      3. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
      3 frames
    7. Jetty
      QueuedThreadPool$2.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame