You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/09/30 13:35:07 UTC

[Bug 63789] New: Summary Report Listener throws NullPointerException

https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

            Bug ID: 63789
           Summary: Summary Report Listener throws NullPointerException
           Product: JMeter
           Version: 5.1.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: gvrachliotis@hotmail.com
  Target Milestone: JMETER_5.2

During test execution, Summary Report listener throws - at random intervals -
sample result errors of the following type:

2019-09-30 16:23:56,961 ERROR o.a.j.t.ListenerNotifier: Detected problem in
Listener.
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.putVal(Unknown Source)
~[?:1.8.0_65]
        at java.util.concurrent.ConcurrentHashMap.put(Unknown Source)
~[?:1.8.0_65]
        at java.util.Collections$SetFromMap.add(Unknown Source) ~[?:1.8.0_65]
        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(Unknown Source) [?:1.8.0_65]
2019-09-30 16:23:56,961 INFO o.a.j.t.ListenerNotifier: Continuing to process
further listeners

As result, sample results with this error are not recorded in the results file.
In a small 2 minute test, with 100 threads, ramp-up at 60 seconds and a single
dummy sampler in the thread group, I get each time approx. 4-5 errors

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63789] Summary Report Listener throws NullPointerException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

George Vrachliotis <gv...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63789] Summary Report Listener throws NullPointerException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |DUPLICATE

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---


*** This bug has been marked as a duplicate of bug 63433 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63789] Summary Report Listener throws NullPointerException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

--- Comment #2 from George Vrachliotis <gv...@hotmail.com> ---
(In reply to Philippe Mouawad from comment #1)
> Hello,
> Issue is already fixed in nightly build.
> You can test it and confirm.
> Thanks
> 
> *** This bug has been marked as a duplicate of bug 63433 ***

Hi Phillipe,

thanks for your prompt response. It seems however that this is not the case,
because filename in my test is never null. 

After several tests, I have found that the issue happens if the summary report
filename contains a user defined variable in the filename string, e.g.
results_${env}.jtl. Every test with this gets 4-5 errors in a 2 minute
execution with 100 threads. If I enter a fixed value e.g. results_QA.jtl I
never get an error.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63789] Summary Report Listener throws NullPointerException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

--- Comment #3 from George Vrachliotis <gv...@hotmail.com> ---
Checked issue with Build #7417 and it seems that it works ok.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63789] Summary Report Listener throws NullPointerException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |RESOLVED
           Hardware|PC                          |All
                 OS|                            |All

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Issue is already fixed in nightly build.
You can test it and confirm.
Thanks

*** This bug has been marked as a duplicate of bug 63433 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63789] Summary Report Listener throws NullPointerException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63789

George Vrachliotis <gv...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|1                           |0
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |---

-- 
You are receiving this mail because:
You are the assignee for the bug.