In using the 'Flexible File Writer' (which is awesome!) with a 'Dummy Sampler', I have run into another issue. I have been trying to isolate it, but the gist of it is—it appears each time 'Flexible File Writer' writes a line to my output file, I get the following error in my JMeter log:
2014/01/30 14:36:24 ERROR - jmeter.threads.ListenerNotifier: Detected problem in Listener: java.lang.NullPointerException
at kg.apc.jmeter.reporters.FlexibleFileWriter.appendSampleResultField(FlexibleFileWriter.java:359)
at kg.apc.jmeter.reporters.FlexibleFileWriter.sampleOccurred(FlexibleFileWriter.java:230)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at org.apache.jmeter.control.TransactionController.notifyListeners(TransactionController.java:257)
at org.apache.jmeter.control.TransactionController.next2(TransactionController.java:205)
at org.apache.jmeter.control.TransactionController.next(TransactionController.java:125)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:214)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:214)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.LoopController.next(LoopController.java:118)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:88)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:280)
at java.lang.Thread.run(Unknown Source)
If I disable the FlexibleFileWriter the error goes away.
What is interesting is that this does not seem to impact my ability to use the 'Flexible File Writer', but each time 'Flexible File Writer' writes the errors increment on the JMeter console which obfuscates any real issues that might be occurring in the test.
I am using JMeter 2.10 (there is a separate unrelated issue that is keeping me from using 2.11 at the moment). I have tested it with both JMeter-Plugins 1.1.2, and the jmeter-plugins-standard-1.1.3-1.1.3.zip-2014-01-30_06-18 Developer Snapshot. My Java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
I have isolated this in a stripped down version of my .jmx which I have attached to this post.