pepper-box
pepper-box copied to clipboard
Maven build failure when tried to build pepper-box with latest version of Jmeter
I ran the below command on my local to build the pepper box plugin to my tests but ended up with below mvn clean install -Djmeter.version=5.1.1 -Dkafka.version=1.1.0
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project pepper-box: Compilation failure [ERROR] /Users/thopukr/Documents/Automation/PerformanceTesting/pepper-box/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java:[19,40] cannot find symbol [ERROR] symbol: class SecurityProtocol [ERROR] location: package org.apache.kafka.common.protocol [ERROR] [ERROR] -> [Help 1]
I even tried to update the kafka version on my local but ended up getting the same old error while tried to build the jar file .
mvn clean install -Djmeter.version=5.1.1 -Dkafka.version=2.2.0 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building pepper-box 1.0 [INFO] ------------------------------------------------------------------------ Downloading: [ERROR] /Users/thopukr/Documents/Automation/PerformanceTesting/pepper-box/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java:[19,40] cannot find symbol [ERROR] symbol: class SecurityProtocol [ERROR] location: package org.apache.kafka.common.protocol [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
did u tried other branch jmeter5.0_kafka1.1.0
?
@satishbhor : Thank you. i was able to resolve the above version mismatch with your input but when tried to configure Pepper-Box PlainText Config ,unfortunately i could n't find one .Do we need to add any external jars to accomplish the same?
Attached screenshot for your reference

Did you copy pepperbox in lib/ext directory of JMeter? (remove older version if any) If yes, it should appear there. It could happen that you have another plugins installed and thus list shown in snapshot is very big so try typing name to reach pepperbox plain text config. Let me know if this helps.
I tried with pepper-box-1.0.jar by putting them both in libexec/extras as well as libexec/lib folders,still i could n't find the Pepper-Box PlainText Config nor the Pepper-Box Serialized Config under the list.Is it something related to mac OS for the jar not loading those class files under config element?
Below are my software details:
Mac os
Jmeter version: 5.1.1 r1855137
kafka version:2.2.0
Java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
Let me try to reproduce it and will share the updates.
I tried with latest JMeter version and jmeter5.0_kafka1.1.0 branch. I build the code and put the jar in <Jmeter dir>/lib/ext/ directory and started JMeter. I could see both the components available in JMeter.
Can try to use clean JMeter and try the process again and let me know if you still face the issue.