Open nrellanti opened 1 year ago
Hello @nrellanti ,
That is odd. Is trying to send a protobuff using an Avro serializator. The testplan has not changed right? Can you please provide it? or a similar "clean" one to analice it?
Hi @jemacineiras, I'm also getting the same error while we are publishing only using the Protobuf Serializer as below.
@jemacineiras , getting below error now with new code.
2023-11-14 11:57:56,080 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'Java Request'.
java.lang.ClassCastException: class com.squareup.wire.schema.internal.parser.ProtoFileElement cannot be cast to class org.apache.avro.Schema (com.squareup.wire.schema.internal.parser.ProtoFileElement and org.apache.avro.Schema are in unnamed module of loader org.apache.jmeter.DynamicClassLoader @5c647e05)
at com.sngular.kloadgen.processor.objectcreatorfactory.impl.AvroObjectCreatorFactory.
Hi all, Latest master should work as expected. If still failing please let me know.
Cheers
Hello @jemacineiras, Generated jar file from the Master and tested in Mac and Windows
Tested in Mac with JMeter 5.6.2 2023-11-16 09:25:33,400 ERROR c.s.k.p.o.ObjectCreatorFactoryHelper: Please, make sure that the schema sources fed are correct com.sngular.kloadgen.exception.KLoadGenException: Subject ' "google/type/money.proto"' not found.; error code: 40401 at com.sngular.kloadgen.schemaregistry.impl.ConfluentSchemaRegistry.getSchemaBySubject(ConfluentSchemaRegistry.java:80) ~[kloadgen.jar:1.22]
Tested in Window with JMeter 5.6.2 Problem loading XML from:'C:\Users\xxxxxx\Downloads\apache-jmeter-5.6.2\bin\xxxxxxxxxxx.jmx'. Cause: CannotResolveClassException: com.sngular.kloadgen.config.schemaregistry.SchemaRegistryConfigElement
Hello @jemacineiras, Any update on this bug, or do you have any updated plugins to support this type of proto files? Please suggest!!!
Hi @nrellanti last time we checked this branch should be working as expected. My guess is still failiing?
Hello @jemacineiras , yes it is failing, I checked both in windows and Mac machines with latest version of JMeter 5.6.2. Could you please have a look the logs posted in the previous chat.
@jemacineiras Thank you! I will test next week and get back to you the updated result
Hello @jemacineiras,
I'm getting below error when I tested with branch #332 code
2024-01-12 11:32:58,844 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'Java Request'. com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(SamplerUtil.java:427) ~[kloadgen-5.6.14.jar:?] at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaProducerSampler.java:73) ~[kloadgen-5.6.14.jar:?] at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:194) ~[ApacheJMeter_java.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) [ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) [ApacheJMeter_core.jar:5.6.2] at java.lang.Thread.run(Thread.java:840) [?:?
Hello @jemacineiras , Thank you for Fix, I will test and update the results here.
Hello @jemacineiras , Getting below errors
2024-01-23 11:12:34,945 INFO o.a.j.e.StandardJMeterEngine: Running the test! 2024-01-23 11:12:34,946 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2024-01-23 11:12:34,947 INFO o.a.j.p.j.s.JavaSampler: Created class: com.sngular.kloadgen.sampler.KafkaProducerSampler. Uses tearDownTest: 2024-01-23 11:12:34,947 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, local) 2024-01-23 11:12:34,995 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2024-01-23 11:12:34,996 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group. 2024-01-23 11:12:34,996 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 2024-01-23 11:12:34,996 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false 2024-01-23 11:12:34,997 INFO o.a.j.t.ThreadGroup: Started thread group number 1 2024-01-23 11:12:34,997 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 2024-01-23 11:12:34,997 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 2024-01-23 11:12:34,998 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'Java Request'. com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(SamplerUtil.java:427) ~[kloadgen-5.6.14.jar:?] at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaProducerSampler.java:73) ~[kloadgen-5.6.14.jar:?] at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:194) ~[ApacheJMeter_java.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) [ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) [ApacheJMeter_core.jar:5.6.2] at java.lang.Thread.run(Thread.java:840) [?:?] 2024-01-23 11:12:34,998 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1 2024-01-23 11:12:34,999 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1 2024-01-23 11:12:34,999 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 2024-01-23 11:12:34,999 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)
Hi @nrellanti ,
can you pease re attach the jmx file since the previous was lost? it seems something is missing or is not right configured.
Cheers.
Hello @jemacineiras ,
I will add jmx file at the earliest. Meanwhile, please have a look on this error
2024-01-26 09:41:26,455 INFO o.a.j.e.StandardJMeterEngine: Running the test! 2024-01-26 09:41:26,456 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2024-01-26 09:41:26,457 INFO o.a.j.p.j.s.JavaSampler: Created class: com.sngular.kloadgen.sampler.KafkaProducerSampler. Uses tearDownTest: 2024-01-26 09:41:26,457 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, local) 2024-01-26 09:41:26,510 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2024-01-26 09:41:26,510 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group. 2024-01-26 09:41:26,510 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 2024-01-26 09:41:26,511 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false 2024-01-26 09:41:26,512 INFO o.a.j.t.ThreadGroup: Started thread group number 1 2024-01-26 09:41:26,512 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 2024-01-26 09:41:26,512 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 2024-01-26 09:41:26,513 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1 2024-01-26 09:41:26,513 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[Thread Group 1-1,6,main] java.lang.IncompatibleClassChangeError: Expecting non-static method 'org.apache.jmeter.threads.JMeterVariables org.apache.jmeter.protocol.java.sampler.JavaSamplerContext.getJMeterVariables()' at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaProducerSampler.java:72) ~[kloadgen-5.6.14.jar:?] at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:194) ~[ApacheJMeter_java.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) ~[ApacheJMeter_core.jar:5.6.2] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) ~[ApacheJMeter_core.jar:5.6.2] at java.lang.Thread.run(Thread.java:840) [?:?] 2024-01-26 09:41:26,514 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 2024-01-26 09:41:26,514 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)
Hi @nrellanti,
This error is with the code I just pushed today ? Its happening with the JMeter 5.6.3 version. Is this the one you are using?
Cheers
Hello @jemacineiras ,
Just couple of minutes ago, I pulled the code and generated jar file and executed on JMeter version 5.6.2.
However, I have not tested on JMeter 5.6.3. I will test on JMeter 5.6.3. Will update results in a couple of minutes. Thanks
Hi @nrellanti, Ok I´ll took a look and back asap.
Cheers
Hello @jemacineiras ,
Here is the error on JMeter 5.6.3
2024-01-26 09:58:45,704 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'Java Request'. com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(SamplerUtil.java:427) ~[kloadgen-5.6.14.jar:?] at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaProducerSampler.java:73) ~[kloadgen-5.6.14.jar:?] at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:194) ~[ApacheJMeter_java.jar:5.6.3] at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) ~[ApacheJMeter_core.jar:5.6.3] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) ~[ApacheJMeter_core.jar:5.6.3] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) ~[ApacheJMeter_core.jar:5.6.3] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) ~[ApacheJMeter_core.jar:5.6.3] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
HI @nrellanti right, this last one.. need the JMX to see the flow Cheers
@jemacineiras , please see the jmx file in txt format KLG - Value Schema Serializer Config.txt
Hi @nrellanti Just uploaded a quick fix, can you try if that works with you in your systems? Cheers
Hi @jemacineiras,
Please see the logs on JMeter 5.6.2 and JMeter 5.6.3 with your quick fix code.
Hi @jemacineiras ,
Please see the logs executed on #332 Fix generator creation build on Mon 29, 2024. Jmeter-5.6.2-log_01292024.txt Still getting more errors.
Hi @nrellanti,
still don´t get it.. that imported proto is in the classpath but for any reason looks like is not find it. Will keep digging.
Hi @jemacineiras, If you need a reference of our current failure for this ticket is here - https://github.com/sngular/kloadgen/issues/332#issuecomment-1745349461
Let us know if need anything to understand more this issue.
Appreciate you guys!
Hello @jemacineiras , Tested your changes in the 332 branch getting the below errors during build the project
java: cannot find symbol symbol: method getExtendDeclarations() location: variable field of type com.squareup.wire.schema.internal.parser.MessageElement
What happened?
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method com.squareup.wire.schema.internal.parser.ProtoParser$Companion.parse, parameter data
KloadGen Version
kloadgen-5.2.10.jar
Relevant log output
Have you added your JMX Testplan or a replica?
Have you added your Schema or a replica?