Comments (6)
Taking below actions solved my problem:
- switch to branch: ''jmeter3.2_kafka0.11.0.0"
- remove unused import such as
net.didion.jwnl.data.Exc
in all test classes since I could not include the dependency nor download it and it's not used - run
mvn clean install -Dkafka.version=0.11.0.0 -Djmeter.version=3.3 -DskipTests
since it will giveNullPointerException
when running test class
This way I can build source but not sure if there's impact on the performance.
After adding the jar to JMeter lib/ext and restart, I can see the plug-in items.
from pepper-box.
Hope you have pulled correct branch as we already have branch for Kafka 0.11 did you tried that?
from pepper-box.
Yes I switched to "jmeter3.2_kafka0.11.0.0".
I was able to build and 2 .jar files were generated: pepper-box-1.0.jar and original-pepper-box-1.0.jar which were both copied under lib/ext of jmeter. But when I run the test plan, it threw error:
SEVERE: Failed to compileSchemaClass class
java.lang.NullPointerException
at com.gslab.pepper.input.compile.InMemoryJavaCompiler.compileSchemaClass(InMemoryJavaCompiler.java:39)
at com.gslab.pepper.input.SchemaTranslator.getPlainTextMsgIterator(SchemaTranslator.java:47)
at com.gslab.pepper.input.SchemaProcessor.getPlainTextMessageIterator(SchemaProcessor.java:36)
at com.gslab.pepper.loadgen.impl.PlaintTextLoadGenerator.<init>(PlaintTextLoadGenerator.java:34)
at com.gslab.pepper.config.plaintext.PlainTextConfigElement.iterationStart(PlainTextConfigElement.java:53)
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:393)
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:385)
at org.apache.jmeter.control.GenericController.next(GenericController.java:158)
at org.apache.jmeter.control.LoopController.next(LoopController.java:123)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:87)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
at java.lang.Thread.run(Unknown Source)
And here's JAVA_HOME, Java and Maven version:
$ echo $JAVA_HOME
C:\Program Files\Java\jdk1.8.0_121
$ java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: C:\Program Files\apache-maven-3.5.0
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_121\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
I'm not sure if this is the cause but what I've read is that the exception happens when Java home is pointing to JRE not JDK. But actually my JAVA_HOME env var is set to JDK directory, and Maven will always look for JRE.
from pepper-box.
First You should not put both jar, remove jar containing name original second jmeter is picking jre instead of jdk, check your PATH variable should not contain jre path
from pepper-box.
I removed original-pepper-box-1.0.jar, and make sure JRE is not in PATH var. In PATH variable, JAVA_HOME is pointing to JDK path, and you can see from Maven Java home: C:\Program Files\Java\jdk1.8.0_121\jre
.
The problem is, Maven picks up JRE automatically, because even if I delete the jre folder under JDK path, it will look for jre install path
from pepper-box.
@satishbhor i am also facing this issue like gslab file cant load getting null pointer error.
kafka version :-kafka_2.11-2.0.0
Apche jmeter:- apache-jmeter-4.0
JDK 1.8 (Set JAVA_HOME till jdk path)
could you provide latest docs so everyone can used that.
Thanks
Mohit Gupta
09911716706
from pepper-box.
Related Issues (20)
- Compression feature is not working HOT 1
- please add support for new kafka versions HOT 1
- FR - Add "--num-messages" option on PepperBoxLoadGenerator
- How to get vars values in Kafka Producer
- Publish this plugin on jmeter-plugins.org
- com.gslab.pepper.Message not found HOT 2
- Caused by: java.lang.IllegalArgumentException: Could not find a 'KafkaClient' entry in `jaas.conf`.
- Data Parameterization (Using CSV Data Set config) in JMeter while using Pepper Box HOT 1
- java.lang.ClassFormatError: Truncated class file in Pepper Box for larger json files HOT 3
- Can't add properties in PepperBoxKafkaSampler HOT 1
- 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. JDK is mentioned in path, have also modified JM_Launch HOT 1
- Pepperbox Config has high priority than Beanshell Sampler or Preprocessor
- How to attach the Avro schema along with the payload
- Message encryption
- Unable to increase number of threads
- JMeter KAFKA connection using SCRAM authentication HOT 3
- Kafka version 3.3.1 not supported? HOT 2
- Any Remediation Plan for Veracode SCA Vulnerability Findings?
- Provide provision to add key to message
- Class pepper.Message not present in Pepper-Box jar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pepper-box.