RE: kloadgen unsupported serializer

"Gregg, John E." <[email protected]> Fri, 28 Mar 2025 21:47:14 +0000
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <MN2PR11MB4728F8C933601B72CEDE63F6BFA02@MN2PR11MB4728.namprd11.prod.outlook.com>
--_000_MN2PR11MB4728F8C933601B72CEDE63F6BFA02MN2PR11MB4728namp_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I got lucky and upgraded from KLoadGen 5.6.12 to 5.6.13 and the problem wen=
t away.

Thanks


From: Gregg, John E. <[email protected]>
Sent: Friday, March 28, 2025 10:18 AM
To: JMeter Users List <[email protected]>
Subject: kloadgen unsupported serializer

Friends, I'm using JMeter 5.=E2=80=8A6 with KLoadGen. I'm trying to configu=
re a producer to use Avro for the value but string serializer for the key. =
Is that supported? It works fine from my java code but the plugin doesn't l=
ike it. My config has schema


Friends,



I'm using JMeter 5.6 with KLoadGen.



I'm trying to configure a producer to use Avro for the value but string ser=
ializer for the key.  Is that supported?  It works fine from my java code b=
ut the plugin doesn't like it.



My config has schema registry, producer, and KLG - Value Schema Serializer =
Config, which seems to be the value.  In addition, I've tried no key serial=
izer, KLG - Key Schema Serializer Config (but I don't really want this,) an=
d KLG - Simple Key Config.



With KLG - Simple Key Config, I tried setting the key class type to string =
and the serializer to StringSerializer.  In this case, I get this partial s=
tack trace:



com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer

    at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(Sampl=
erUtil.java:427) ~[kloadgen-5.6.12.jar:?]

    at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaPro=
ducerSampler.java:73) ~[kloadgen-5.6.12.jar:?]



I get that same error with no key serializer at all.



With the key schema serialization config, I get the same message but from a=
 different location in the code:



com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer

    at com.sngular.kloadgen.sampler.SamplerUtil.getBaseLoadGenerator(Sample=
rUtil.java:471) ~[kloadgen-5.6.12.jar:?]

    at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(Sampl=
erUtil.java:425) ~[kloadgen-5.6.12.jar:?]

    at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaPro=
ducerSampler.java:73) ~[kloadgen-5.6.12.jar:?]



What am I doing wrong?



Thanks



--_000_MN2PR11MB4728F8C933601B72CEDE63F6BFA02MN2PR11MB4728namp_--