sngular / kloadgen

KLoadGen is kafka load generator plugin for jmeter designed to work with AVRO, JSON and PROTOL-BUFFERS schema Registries.
http://sngular.com
Mozilla Public License 2.0
206 stars 42 forks source link

[Issue]: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target #419

Open SatishShihani opened 11 months ago

SatishShihani commented 11 months ago

What happened?

I have done the Kloadgen setup for Jmeter as documented in 'https://github.com/sngular/kloadgen/wiki/installation'. The first attempt was downloading kloadgen-5.6.7.jar file directly from the link https://mvnrepository.com/artifact/com.sngular/kloadgen/5.6.7 and keeping it in lib/ext folder. Schema and Jmeterplan.zip

After that when I added 2 things in jmeter -Schema Registry Config Element and KLG - Value Schema File Serializer Config and tried the 'Test registry' after providing all the necessary keystore/truststore path and passwords, Always getting error as - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The second attempt I did by generating build jar file using cmd and maven. All the time the build fails with the error:

[ERROR] Failed to execute goal on project kloadgen: Could not resolve dependencies for project com.sngular:kloadgen:jar:5.6.7: Failed to collect dependencies at io.confluent:kafka-schema-registry-client:jar:7.1.1: Failed to read artifact descriptor for io.confluent:kafka-schema-registry-client:jar:7.1.1: The following artifacts could not be resolved: io.confluent:kafka-schema-registry-client:pom:7.1.1 (absent): Could not transfer artifact io.confluent:kafka-schema-registry-client:pom:7.1.1 from/to confluent (https://packages.confluent.io/maven/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Please assist!

KloadGen Version

kloadgen 5.6.7

Relevant log output

No response

Have you added your JMX Testplan or a replica?

Have you added your Schema or a replica?

github-actions[bot] commented 11 months ago

Thank you for collaborating with the project by giving us feedback! In case it applies, it would be helpful if you could attach an example AVRO and an example test plan for us to reproduce the error. Cheers!

SatishShihani commented 11 months ago

AVRO.zip

Attached the avro. The example test plan has already attached with previous message. Thanks

ramilsngular commented 10 months ago

Thanks for your message, we are currently working on it.

ramilsngular commented 9 months ago

Hi!

I have created a branch (#427 , named "419 pkix path building failed"), with a fix to gather in the Schema Registry Config Element the necessary properties to connect with the schema registry.

Please, try to connect to your schema registry, verify using this branch and tell us what you get.

Cheers.