Skip to content

Issue with Gateway when using in combination with Integration flow or a channel #2731

Closed
@sirimamilla

Description

@sirimamilla

When Spring Integration Java DSL gateway is used in combination with Channel or Subflow, success case works perfectly fine. But when ever error occurs in the subflow or flow called by channel, below error is thrown and the caller will not get any response after that.
Error:

Reply message received but the receiving thread has already received a reply:ErrorMessage [payload=org.springframework.messaging.MessageHandlingException: HTTP request execution failed for URI [http://mwgtc-tibla59u.nam.nsroot.net:16250/private/v1/rewards/memberships?cardNumber=0004547502000000635]; nested exception is org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 Internal Server Error, failedMessage=GenericMessage [payload=com.citi.gcg.nga.cache.esbcahe.CacheElements$CardListingCredit@5637d1de, headers={businesscode=GCB, gatherResultChannel=f22c8e4a-0c6d-4817-a0db-ad4e217af4dd:2, sequenceDetails=[[b11d796e-9bf7-a0d9-1b4b-776873ab0a42, 1, 1]], errorChannel=org.springframework.messaging.core.GenericMessagingTemplate$TemporaryReplyChannel@3f8377dd, sequenceSize=1, countrycode=SG, jms_destination=Queue[sample.queue], jms_timestamp=1548837920152, sid=3b9f7209-113c-4adf-91ec-a3970810f414MBK, ReqPayload=com.citi.gcg.rewards.pwp.rewardsinquiry.request.RewardsInquiryRequest@36d4e584, jmsInboundMessageHandlerReplyChannel=org.springframework.messaging.core.GenericMessagingTemplate$TemporaryReplyChannel@f1302bd, jms_replyTo=Queue[$TMP$.JNDI_MWDIT2_G2C_01.1C7C5B6D250614E50.40], RestFlowOrignalErrorChannel=org.springframework.messaging.core.GenericMessagingTemplate$TemporaryReplyChannel@3f8377dd, correlationId=b6446b8f-c456-1bce-0a7b-cb085c303f67, CardListingCredit=com.citi.gcg.nga.cache.esbcahe.CacheElements$CardListingCredit@5637d1de, id=d5d7aa98-524d-5d5c-bc1e-ef68913c393d, contentType=application/json;charset=UTF-8, jms_expiration=0, jms_messageId=ID:JNDI_MWDIT2_G2C_01.1C7C5B6D250614E4F:40, timestamp=1548837923242, sequenceNumber=1, CustomerCache=com.citi.gcg.nga.cache.customer.Customer@e10aaa6, priority=4, replyChannel=org.springframework.messaging.core.GenericMessagingTemplate$TemporaryReplyChannel@3f8377dd, CardCache=com.citi.gcg.nga.cache.esbcahe.CacheElements@f4e8265, jms_redelivered=false, jms_deliveryMode=2, OriginalReplyChannel=jmsInboundResponseHandler.input, channelName=rewardsInquiry.input, SessionCache=com.citi.gcg.nga.cache.account.Accounts@42af56b8, channelid=MBK}], headers={id=c656bffb-dbb9-df3d-01a3-d5bfc36d8aa3, timestamp=1548837923966}]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions