Git Product home page Git Product logo

Comments (6)

yangzii0920 avatar yangzii0920 commented on July 26, 2024

Taking below actions solved my problem:

  1. switch to branch: ''jmeter3.2_kafka0.11.0.0"
  2. 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
  3. run mvn clean install -Dkafka.version=0.11.0.0 -Djmeter.version=3.3 -DskipTests since it will give NullPointerException 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.

satishbhor avatar satishbhor commented on July 26, 2024

Hope you have pulled correct branch as we already have branch for Kafka 0.11 did you tried that?

from pepper-box.

yangzii0920 avatar yangzii0920 commented on July 26, 2024

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.

satishbhor avatar satishbhor commented on July 26, 2024

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.

yangzii0920 avatar yangzii0920 commented on July 26, 2024

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.

guptamohit09 avatar guptamohit09 commented on July 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.