DEVTEST : Getting double responses from Kafka Virtual Service on the Send/Receive-Topic
search cancel

DEVTEST : Getting double responses from Kafka Virtual Service on the Send/Receive-Topic

book

Article ID: 402369

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

For one of the Kafka Virtual services, we are getting a double responses from the VS ; First response contains NULL message without headers, the second response has everything. 

 

First Message:

Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.kafka.common.header.Header.value()" because the return value of 

Second Message:

18/Jun/2025 15:22:21,617 [INFO ] [noBeanNameSet-0-C-1] - Kafka Headers : [{client-reply-destination=tts.kafka.public.111, partner=178440, request-id={{msg.Headers.request-id}}, version=1.0}]
18/Jun/2025 15:22:21,617 [INFO ] [noBeanNameSet-0-C-1] - [VaUpdateAMSResponseProcessor::process] - Received message :: {
  "tracking_id": "76bb3822f25fc2555b",
  "acc_identifier": "2024086222",
  "status": "ACK"
 

Environment

All supported DevTest versions

Cause

2 Virtual Services were listening on the same Send/Receive-Kafka Topic.  One VS sends a valid response, and the other sends a no match found -Null response. 

Resolution

Stopped the second VS that was listening on the same Kafka Topic.

We are now seeing only one Valid Response for each request.