Hello, I'm facing an issue while verifying kafka m...
# pact-jvm
g
Hello, I'm facing an issue while verifying kafka messages using pact
Copy code
[from Pact Broker <http://localhost:9292/pacts/provider/jsonKafkaProviderApp/consumer/jsonKafkaConsumerApp/pact-version/cad7af5d7c576d3aa19e56a755683a7e811ee5a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT0xMCZzW11bY3ZdPTEwJnA9dHJ1ZQ>]
  A simple message
    generates a message which
      Verification Failed - Failed to invoke provider method 'verifySimpleMessageEvent'

Pending Failures:

1) A simple message

    1.1)       Failed to invoke provider method 'verifySimpleMessageEvent'
I am getting the above error when even i try to verify a kafka message. Below is the function 'verifySimpleMessageEvent'
@PactVerifyProvider("A simple message")
MessageAndMetadata verifySimpleMessageEvent() {
Map<String, Object> metadata = new HashMap<String, Object>() {
{
put(KEY_CONTENT_TYPE, JSON_CONTENT_TYPE);
}
};
return new MessageAndMetadata(new byte[] {}, metadata);
}
m
Might be worth sharing any relevant logs to help us understand why it couldn’t execute that method
g
Here you can find the complete log of mvn clean verify
m
thanks
1. 145103.647 [main] WARN au.com.dius.pact.provider.junitsupport.loader.PactBrokerLoader - Failed to instantiate the value resolver, using the default
I don’t know what it means exactly, but it is a warning
There is a stacktrace that follows that seems plausibly related to this - maybe that’s why it can’t invoke the method. Can you share the full class details?
g
This is the class