DevTest Kafka step configured with only receive and key correlation fails with NullPointerException

book

Article ID: 223397

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Using key correlation in a Kafka step works OK if both Send and Receive are ticked in the step. 
But if the message is sent to the Kafka topic by another application (not this DevTest step), then trying to read the message with a specific key in the correlation section fails with: 
Unexpected error: null
java.lang.NullPointerException
 at com.itko.lisa.messaging.providers.kafka.correlation.KafkaPayloadCorrelationScheme.getPayloadForScheme(KafkaPayloadCorrelationScheme.java:86)
 at com.itko.lisa.messaging.correlation.AbstractPayloadCorrelationScheme.getRequestCorrelationId(AbstractPayloadCorrelationScheme.java:428)
 at com.itko.lisa.messaging.correlation.AbstractPayloadCorrelationScheme.postConfigureReceiveOperation(AbstractPayloadCorrelationScheme.java:377)
 at com.itko.lisa.messaging.builder.AbstractSendReceiveOperation.doExecute(AbstractSendReceiveOperation.java:180)

Environment

Release : 10.6

Component : CA Service Virtualization

Resolution

Please open a support case and request the patch for defect DE511408