pepper-box
pepper-box copied to clipboard
Jmeter Error: PlaintTextLoadGenerator: Please make sure that expressions functions are already defined and parameters are correctly passed
Hi Team, I am facing issue in Jmeter script for pepper box Kafka request. Below is the error i am getting. **Jmeter Error: PlaintTextLoadGenerator: Please make sure that expressions functions are already defined and parameters are correctly passed. com.gslab.pepper.exception.PepperBoxException: java.lang.NullPointerException
Kindly suggest why i am getting this error and what is the solution for it.
Can u paste entire stack trace ?
2018-06-26 18:05:17,732 ERROR c.g.p.l.i.PlaintTextLoadGenerator: Please make sure that expressions functions are already defined and parameters are correctly passed.
com.gslab.pepper.exception.PepperBoxException: java.lang.NullPointerException
at com.gslab.pepper.input.SchemaTranslator.getPlainTextMsgIterator(SchemaTranslator.java:54) ~[pepper-box-1.0.jar:?]
at com.gslab.pepper.input.SchemaProcessor.getPlainTextMessageIterator(SchemaProcessor.java:36) ~[pepper-box-1.0.jar:?]
at com.gslab.pepper.loadgen.impl.PlaintTextLoadGenerator.
@vikasrjain @satishbhor I figured this one. Set your path Env variable to include only JDK bin path and "NOT" JRE path.
@callmkarthik Can you please specify HOW?
@shaialo I suppose this could help. https://docs.oracle.com/javase/tutorial/essential/environment/paths.html
However, I am still in trouble how to run this test on a server where JDK is not installed? For instance, I have a client's staging server where JDK cannot be insalled, only JRE. Ideally this should be the situation.
How can I load test kafka using this library over there? I am always getting same exception due to pepper-box/src/main/java/com/gslab/pepper/input/compile/InMemoryJavaCompiler.java
contains instance of java.tools.JavaCompiler
, which references null
when this code runs on machines with only JRE.
@aakashagarwal86 Having JDK is prerequisite for pepperbox to work. If your staging server cannot have jdk then you can also generate load from another machine in same network on staging server. I hope by staging server you mean Kafka staging server/application staging server.
I have the JDK included in the PATH, but I am still getting this error.
2020-02-20 10:08:56,677 ERROR c.g.p.l.i.PlaintTextLoadGenerator: Please make sure that expressions functions are already defined and parameters are correctly passed.
com.gslab.pepper.exception.PepperBoxException: java.lang.NullPointerException
at com.gslab.pepper.input.SchemaTranslator.getPlainTextMsgIterator(SchemaTranslator.java:54) ~[pepper-box-1.0.jar:?]
at com.gslab.pepper.input.SchemaProcessor.getPlainTextMessageIterator(SchemaProcessor.java:36) ~[pepper-box-1.0.jar:?]
at com.gslab.pepper.loadgen.impl.PlaintTextLoadGenerator.
I by-passed this error. Now I have a question about the JAAS File Location. Is this required?
my script is getting passed,but message on kafka topic is not getting created
following error is shown 2020-07-23 16:24:59,447 WARN o.a.j.e.StandardJMeterEngine: Error encountered during shutdown of org.apache.jmeter.protocol.java.sampler.JavaSampler@70103c2 java.lang.NullPointerException: null at com.gslab.pepper.sampler.PepperBoxKafkaSampler.teardownTest(PepperBoxKafkaSampler.java:155) ~[pepper-box-1.0.jar:?] at org.apache.jmeter.protocol.java.sampler.JavaSampler.testEnded(JavaSampler.java:293) ~[ApacheJMeter_java.jar:5.0 r1840935] at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:227) [ApacheJMeter_core.jar:5.0 r1840935] at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:495) [ApacheJMeter_core.jar:5.0 r1840935] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201] 2020-07-23 16:24:59,448 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)
Hello, I'm getting this error. I have the JDK in my path, and I've updated the jmeter.bat file to include the jdk path. Can anyone help?
2021-03-24 15:53:31,268 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2021-03-24 15:53:31,300 ERROR c.g.p.l.i.PlaintTextLoadGenerator: Please make sure that expressions functions are already defined and parameters are correctly passed.
com.gslab.pepper.exception.PepperBoxException: java.lang.NullPointerException
at com.gslab.pepper.input.SchemaTranslator.getPlainTextMsgIterator(SchemaTranslator.java:54) ~[pepper-box-1.0.jar:?]
at com.gslab.pepper.input.SchemaProcessor.getPlainTextMessageIterator(SchemaProcessor.java:36) ~[pepper-box-1.0.jar:?]
at com.gslab.pepper.loadgen.impl.PlaintTextLoadGenerator.