简体   繁体   中英

Getting an error(InvalidClassException) while executing a distributed load test from Jenkins

The Master and Slave are present on Linux servers. I am getting an error as mentioned below while executing a Load Test from Jenkins. The same test is working fine when I execute it from Master at Linux server.

Starting remote engines
Starting the test @ Tue Oct 11 01:54:49 CDT 2022 (1665471289297)
Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.io.InvalidClassException: org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; local class incompatible: stream classdesc serialVersionUID = 242, local class serialVersionUID = 243
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445

PS: Jmeter versions, Java versions, configuration of ports across all servers is configured.

The error means that you have different JMeter versions on master and slaves, JMeter cannot properly perform serialization hence you're getting the error

To be absolutely sure that everything works fine:

  1. Use the same Java version everywhere
  2. Use the same JMeter version everywhere, it's recommended to use the latest
  3. If you're using any JMeter Plugins - they need to be installed on all the slaves. Again plugins versions must be exactly the same
  4. If you're using any external data (CSV files, files used for uploading, any other form of test data) - it needs to be copied to all slaves before starting the test

More information: How to Perform Distributed Testing in JMeter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM