jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

NPE when using bzm - Parallel Controller with Transaction Controllers inside, on second run in loop

Open ctanasescu opened this issue 1 year ago • 2 comments

Expected behavior

Jmeter should work as usual in a parallel controller and not fail between steps (NO specific Jmeter element is failing, but between elements).

Actual behavior

2023-08-21 10:21:07,754 ERROR o.a.j.t.JMeterThread: Test failed! java.lang.NullPointerException: null at org.apache.jmeter.control.TransactionController.notifyListeners(TransactionController.java:285) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.nextWithoutTransactionSampler(TransactionController.java:223) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.next(TransactionController.java:135) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:225) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.nextIsAController(TransactionController.java:173) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.next(GenericController.java:175) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.nextWithoutTransactionSampler(TransactionController.java:205) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.next(TransactionController.java:135) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.next(GenericController.java:175) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.LoopController.next(LoopController.java:134) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:303) ~[ApacheJMeter_core.jar:?] at com.blazemeter.jmeter.controller.JMeterThreadParallel.run(JMeterThreadParallel.java:61) ~[jmeter-parallel-0.11.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_331] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_331] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_331] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_331] at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_331] 2023-08-21 10:21:07,754 INFO o.a.j.t.JMeterThread: Thread finished: org.apache.jmeter.threads.JMeterThread@14cab714 - 3-4-5-6-7-8-9-10. bzm - Parallel Controller - Import in 3 ARM domains - REMOVING ALL TRANSACTIONS CONTROLLERS BECAUSE OF NPE ERROR - JMETER BUG - transaction controllers are failing on second run of parallel controller - 3.1 Import ARM Domain 1 2023-08-21 10:21:07,761 INFO o.a.j.t.JMeterThread: Thread is done: getAverageExportTime 1-1 2023-08-21 10:21:07,761 INFO o.a.j.t.JMeterThread: Thread finished: getAverageExportTime 1-1 2023-08-21 10:21:07,763 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test

Steps to reproduce the problem

  • Add a new bzm Parallel Controler
  • Add a transaction controller in it or more
  • do something inside the transaction controller
  • run it in a loop (twice or more) - to add it in a loop I have put a loop controller which contains the bzm parallel controller with the transaction controllers in it.
  • If you run, you will see that first iteration of the loop everything works as expected but then in the second iteration of the loop, it will execute only once what is in the transaction controller and then it will fail with the error above with Null Pointer Exception.

JMeter Version

5.5

Java Version

1.0.8_371ver

OS Version

No response

ctanasescu avatar Aug 21 '23 12:08 ctanasescu

I would suggest trying with the latest JMeter 5.6.2 and/or ask bzm developers to clarify the reason for NPE. ParallelController is not a part of JMeter yet.

vlsi avatar Aug 21 '23 13:08 vlsi

Can't even get the plugin to work with 5.6.2 2023-09-01 11:41:15,295 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main] java.lang.IllegalArgumentException: Version 0.12 not found for plugin bzm-parallel

pexa-llim avatar Sep 01 '23 02:09 pexa-llim