pepper-box icon indicating copy to clipboard operation
pepper-box copied to clipboard

Maven build failure when tried to build pepper-box with latest version of Jmeter

Open Ravi2605 opened this issue 5 years ago • 7 comments

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]

Ravi2605 avatar May 03 '19 18:05 Ravi2605

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

Ravi2605 avatar May 03 '19 19:05 Ravi2605

did u tried other branch jmeter5.0_kafka1.1.0 ?

satishbhor avatar May 10 '19 06:05 satishbhor

@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

Screen Shot 2019-06-04 at 3 31 55 PM

Ravi2605 avatar Jun 04 '19 19:06 Ravi2605

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.

mtNachiket avatar Jun 17 '19 12:06 mtNachiket

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)

Ravi2605 avatar Aug 21 '19 20:08 Ravi2605

Let me try to reproduce it and will share the updates.

Nachiket90 avatar Aug 27 '19 07:08 Nachiket90

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. Screen Shot 2019-09-04 at 11 22 03 AM Screen Shot 2019-09-04 at 11 22 33 AM

Can try to use clean JMeter and try the process again and let me know if you still face the issue.

Nachiket90 avatar Sep 04 '19 05:09 Nachiket90