NPE in recorder for ajax post requests #498

Closed
fabienv opened this Issue May 3, 2012 · 7 comments

3 participants

@fabienv

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 java.io.File.(File.java:222)
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.getRequestBodiesOutputFolder(RunningFrame.java:498)
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.dumpRequestBody(RunningFrame.java:485)
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.processRequest(RunningFrame.java:472)
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame.access$1900(RunningFrame.java:89)
at com.excilys.ebi.gatling.recorder.ui.component.RunningFrame$9.run(RunningFrame.java:327)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

@slandelle slandelle was assigned May 3, 2012
@slandelle
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
@rsertelon

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 :-)

Cheers,
BluePyth

@slandelle
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?

@rsertelon

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 ?

@slandelle
Gatling member

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

@slandelle slandelle closed this May 11, 2012
@fabienv

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

@slandelle
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