org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.aggregator.AggregatingMessageHandler#0]

Spring JIRA | Gary Russell | 4 years ago
  1. 0

    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.

    Spring JIRA | 4 years ago | Gary Russell
    org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.aggregator.AggregatingMessageHandler#0]
  2. 0

    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.

    Spring JIRA | 4 years ago | Gary Russell
    org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.aggregator.AggregatingMessageHandler#0]
  3. 0

    Error while Implementing HATEOAS in Spring

    Stack Overflow | 3 years ago | Sunil Ks
    java.lang.IllegalStateException: Could not find current request via RequestContextHolder
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using g.applyLayout in controller breaks unit test

    Stack Overflow | 3 years ago | BillGoneMad
    java.lang.IllegalStateException: Cannot return Sitemesh factory it has not been set!
  6. 0

    Rearding spring error : Resource must exist: [class path resource [X:/Content/E/data/FIXED.dat]

    Stack Overflow | 4 years ago | Kosuri Naresh
    java.lang.IllegalStateException: Resource must exist: [class path resource [X:/Content/E/data/FIXED.dat**]]
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.IllegalStateException

    Could not locate created date for groupId=SMS_EXACTTARGET_100

    at org.springframework.util.Assert.state()
  2. Spring Core
    Assert.state
    1. org.springframework.util.Assert.state(Assert.java:384)
    1 frame
  3. org.springframework.integration
    JdbcMessageStore.getMessageGroup
    1. org.springframework.integration.jdbc.JdbcMessageStore.getMessageGroup(JdbcMessageStore.java:422)
    1 frame
  4. Spring Integration Core
    AbstractMessageChannel.send
    1. org.springframework.integration.aggregator.AbstractCorrelatingMessageHandler.handleMessageInternal(AbstractCorrelatingMessageHandler.java:204)
    2. org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73)
    3. org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:115)
    4. org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:102)
    5. org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
    6. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157)
    7. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128)
    7 frames
  5. org.springone2gx_2011.integration
    AggregatorDemo.main
    1. org.springone2gx_2011.integration.aggregator.AggregatorDemo.main(AggregatorDemo.java:48)
    1 frame