Sometimes getting following exception during load tests: 2019-05-13 14:46:37,661 ERROR o.a.j.t.ListenerNotifier: Detected problem in Listener. java.lang.NullPointerException: null at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011) ~[?:1.8.0_191] at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006) ~[?:1.8.0_191] at java.util.Collections$SetFromMap.add(Collections.java:5461) ~[?:1.8.0_191] at org.apache.jmeter.samplers.SampleResult.markFile(SampleResult.java:504) ~[ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.reporters.ResultCollector.isResultMarked(ResultCollector.java:582) ~[ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:549) ~[ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:70) [ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:980) [ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:569) [ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486) [ApacheJMeter_core.jar:5.1.1 r1855137] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253) [ApacheJMeter_core.jar:5.1.1 r1855137] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Hello, Could you give us more details on how it happens ? - Standalone or distributed testing ? - What does your plan look like (Use Tools > Schematic Overview) - Any useful information Thanks
(In reply to Philippe Mouawad from comment #1) > Hello, > Could you give us more details on how it happens ? > > - Standalone or distributed testing ? > - What does your plan look like (Use Tools > Schematic Overview) > - Any useful information > > Thanks JVM version used
My guess is issue is due to null filename as we switched from HashSet which accepts null value to ConcurrentHashMap which does not. But how come filename is null ?
Author: pmouawad Date: Wed May 15 08:31:06 2019 New Revision: 1859277 URL: http://svn.apache.org/viewvc?rev=1859277&view=rev Log: Bug 63433 - ListenerNotifier: Detected problem in Listener NullPointerException if filename is null Bugzilla Id: 63433 Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java jmeter/trunk/xdocs/changes.xml
java: OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12) test mode: standalone test plan look: attached other: had the same test running on 2.13 and there were no such error. error appears after upgrading to 5.1.1 unfortunately test is quite complex and it's hard to find what exactly cause an issue.
Created attachment 36586 [details] test plan look
error is not permanent, and seems like happened under some load. got only 7 such exceptions with ~300 requests made (during ~13min)
(In reply to sergiy.iampol from comment #7) > error is not permanent, and seems like happened under some load. > got only 7 such exceptions with ~300 requests made (during ~13min) ~300 = ~300K
Hello, Can you try this build: https://builds.apache.org/job/JMeter-trunk/ Issue should be fixed. Regards
Hi, unfortunately I can't run whole test with custom build, due to some limitations with our approach. However I can manually replace required JARs if you can tell me which should be replaced )
You'll need to replace jars in lib/ext by their new version in this new bundle
wasn't reproduced with r1859277
*** Bug 63789 has been marked as a duplicate of this bug. ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5072