NPE in recorder for ajax post requests #498

fabienv opened this Issue May 3, 2012 · 7 comments

3 participants


In Gatling v1.1.4

On ajax post requests, the recorder saves no event and logs the stacktrace below.
Other events are saved by the recorders.
Thanks !

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.getRequestBodiesOutputFolder(
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.dumpRequestBody(
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.processRequest(
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.access$1900(
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$000(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

@slandelle slandelle was assigned May 3, 2012
Gatling member

I think I've nailed it but I don't have time for testing right now.
I'll test it tomorrow.

Thanks for reporting!

@slandelle slandelle closed this in 24a87e4 May 3, 2012
@rsertelon rsertelon reopened this May 4, 2012

Hi there,

It seems that the problem is not fixed yet, I've encountered it this morning :-\

As I'm working on a new version of the recorder (actually the same looks, but all in Scala), I've fixed it in the new version.

I plan to finish my work on the recorder this week end (hopefully), then I'll merge it into master (should be next week ^^)

This issue will be fixed by then :-)


Gatling member

@BluePyth @fabienv Are you able to reproduce this with current master (I ask because I can't)?
If so, what does your case look like?


It works for me... I can't reproduce the problem (I've uploaded files and recorded various POST requests).

@fabienv what method was buggy for you ?

Gatling member

I consider this bug as fixed, as we can't reproduce.

@slandelle slandelle closed this May 11, 2012

Thanks a lot guys :-) the bug is fixed and now ajax requests are recorded.

Gatling member

Glad to hear!
Thanks a lot for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment