java.lang.IllegalStateException

tip

If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.

tip

Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Error while Implementing HATEOAS in Spring
    via Stack Overflow by Sunil Ks
    ,
  • ImageMagick again
    via by Aliaksandr Barysiuk,
  • When Polling for Mail messages (Pop3) the following error is logged repeatedly: {code} 17:51:07.412 ERROR [task-scheduler-1][org.springframework.integration.handler.LoggingHandler] java.lang.IllegalStateException: Pseudo Transactional Message Source returned null resource at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.doPoll(SourcePollingChannelAdapter.java:111) 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: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:680) {code}
    via by Gunnar Hillert,
  • Somehow, I ended with the following database contents... {code} mysql> select * from INT_GROUP_TO_MESSAGE; +--------------------------------------+--------------------------------------+ | GROUP_KEY | MESSAGE_ID | +--------------------------------------+--------------------------------------+ | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 120f3ad1-f835-4b5c-819f-fd87348168df | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 4e101564-22e2-4fbd-9023-dddd5a3f82e3 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 587dea4d-7f7e-4ba0-b62e-62a27a2d11a7 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 5909040e-e087-4182-8b35-84708c1f0c1c | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 6bbfe805-0e5a-41b5-8808-a2850d8833e2 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 8943ab5c-fbed-4f5f-896e-a9d9c650d218 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 91b1d168-0cb2-45c7-89ce-25960224c302 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | 94b4f142-79f7-4174-89d4-2466562cb5dc | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | a5680193-025a-4f8d-af4e-d22a767634cf | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | a5f32113-a8dd-4427-b86d-ef63c85c9e2b | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | ba30c0c1-84ec-4334-99a1-e0c12f3b5f49 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | cb40be33-d017-4464-aee8-11e91b73c8bf | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | e6a859a8-b662-47c9-9244-f6279a5b0567 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | f172f11b-6554-494f-a7aa-36beac891523 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | f7c8002b-4ff7-4564-a2ce-fab74ac83ff1 | | 6d565bf1-ebe4-3fda-b0fc-042cee02dcfe | fceda501-5ff0-42f0-a33f-e58ec9103911 | +--------------------------------------+--------------------------------------+ 16 rows in set (0.00 sec) mysql> select * from INT_MESSAGE_GROUP; Empty set (0.00 sec) mysql> select MESSAGE_ID, REGION, CREATED_DATE from INT_MESSAGE; +--------------------------------------+---------+---------------------+ | MESSAGE_ID | REGION | CREATED_DATE | +--------------------------------------+---------+---------------------+ | f7c8002b-4ff7-4564-a2ce-fab74ac83ff1 | DEFAULT | 2012-09-19 10:46:27 | +--------------------------------------+---------+---------------------+ 1 row in set (0.00 sec) {code} This causes... {code} Exception in thread "main" org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.aggregator.AggregatingMessageHandler#0] at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:79) at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:115) at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:102) at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at org.springone2gx_2011.integration.aggregator.AggregatorDemo.main(AggregatorDemo.java:48) Caused by: java.lang.IllegalStateException: Could not locate created date for groupId=SMS_EXACTTARGET_100 at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.integration.jdbc.JdbcMessageStore.getMessageGroup(JdbcMessageStore.java:422) at org.springframework.integration.aggregator.AbstractCorrelatingMessageHandler.handleMessageInternal(AbstractCorrelatingMessageHandler.java:204) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) ... 6 more {code} because there is no group for the message. Given that the message store is not inherently Transactional, it needs to handle these data conditions.
    via by Gary Russell,
    • java.lang.IllegalStateException: no-arg receive is not supported, because no pollable reply channel has been configured at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.integration.gateway.AbstractMessagingGateway.receive(AbstractMessagingGateway.java:113) at org.springframework.integration.httpinvoker.HttpInvokerIntegrationTests.inboundReception(HttpInvokerIntegrationTests.java:29)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    tvrmsmithtvrmsmith
    23 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    AxeloAxelo
    1 times, last one,
    olle.hallinolle.hallin
    2 times, last one,
    62 more bugmates