Hi,
First, I’d like to say thanks for creating this great tool. It’s incredibly useful and we’re in the process and starting to use it to create performance metrics for pieces of our application.
I’m able to use both the recorder and gatling playback tool fine for the most part. Scenarios record properly, and they play back fine with gatling.bat/sh.
I’m having trouble with the Recorder Preferences saving on a Windows 7 machine. On a linux machine, it works fine. recorder.conf is saved perfectly when save preferences is checked on my unbuntu box. On Windows, I can’t find a situation where recorder preferences are saved properly. I’ve also tried running recorder.bat as administrator and it doesn’t help. Any ideas on what might be going on here?
Thanks!
Hi Galen,
Thanks for your kind words.
I don’t have a Windows box under the hand at the moment, so I’ll have to play riddles…
FYI, this issue has been fixed with Galen’s help: https://github.com/excilys/gatling/issues/1422
Hi Stéphane,
I’m new here and I’m sorry for digging this topic out. I’m using 2.0.0 m3a and experiencing the same problem as Galen.
Since you’ve stated that it is already fixed, how can I apply it to my recorder?
Regards,
JV
You’ll have to upgrade to current snapshot.
See download section.
I just tried it using the current snapshot and still doesn’t work.
When I try to click the ‘Start’ button with the “Save preferences” ticked, it won’t let me start recording. It works perfectly when it isn’t.
Do you have an exception in the logs/console?
I run on OSX and it works perfectly fine. Could it be that you’re running on Windows and the issue (if there’s one) is Windows related?
Yes, I’m running on Windows, 7 to be specific, but there are no logs nor exceptions in the console; it just won’t start.
I tried it on OSX just now and it’s working fine, so I think we can safely assume that this is a Windows-related problem.
Can we able to identify the cause of this? Because most in our team are using Windows.
My2cents: someone used a hardcoded / instead of system path separator somewhere…
Investigating.
A colleague just tested on Windows 8 and it works fine.
Not sure I’ll be able to fine a Windows 7 machine.
What happens exactly? You’re stuck on the config frame and don’t switch to running mode? Or you’re switching but it doesn’t record anything?
What did you fill in the config fields exactly?
Hi Stéphane,
I think I have found and solved the problem.
I was using JDK6 earlier and no logs were showing up. But when I started JDK7 to test the Recorder, the error log now shows up as can be seen below:
Exception in thread “AWT-EventQueue-0” java.security.PrivilegedActionException:
java.security.PrivilegedActionException: java.io.FileNotFoundException: C:\Development\Performance%20Tools\gatling-charts-highcharts-2.0.0-SNAPSHOT\conf\recorder.conf (The system cannot find the path specified)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.PrivilegedActionException: java.io.FileNotFoundException: C:\Development\Performance%20Tools\gatling-charts-highcharts-2.0.0-SNAPSHOT\conf\recorder.conf (The system cannot find the path specified)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
… 9 more
Caused by: java.io.FileNotFoundException: C:\Development\Performance%20Tools\gatling-charts-highcharts-2.0.0-SNAPSHOT\conf\recorder.conf (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at scala.reflect.io.File.outputStream(File.scala:100)
at scala.reflect.io.File.writer(File.scala:111)
at scala.reflect.io.File.bufferedWriter(File.scala:118)
at scala.reflect.io.File.bufferedWriter(File.scala:116)
at scala.reflect.io.File.bufferedWriter(File.scala:115)
at io.gatling.recorder.config.RecorderConfiguration$$anonfun$saveConfig$1.apply(RecorderConfiguration.scala:92)
at io.gatling.recorder.config.RecorderConfiguration$$anonfun$saveConfig$1.apply(RecorderConfiguration.scala:92)
at scala.Option.foreach(Option.scala:236)
at io.gatling.recorder.config.RecorderConfiguration$.saveConfig(RecorderConfiguration.scala:92)
at io.gatling.recorder.ui.swing.frame.ConfigurationFrame.io$gatling$recorder$ui$swing$frame$ConfigurationFrame$$reloadConfigurationAndStart(ConfigurationFrame.scala:466)
at io.gatling.recorder.ui.swing.frame.ConfigurationFrame$$anonfun$12.apply$mcV$sp(ConfigurationFrame.scala:99)
at scala.swing.Action$$anon$2.apply(Action.scala:60)
at scala.swing.Action$$anon$1.actionPerformed(Action.scala:78)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
… 14 more
It cannot find the config file of the Recorder. I think this is because of the directory path of my Gatling which has a folder name with a white space on it: C:\Development*Performance%20Tools*\gatling-charts-highcharts-2.0.0-SNAPSHOT\conf\recorder.conf.
I omitted whites spaces on my folders and it now works.
Thanks for reporting.
I’ll open an issue so we can properly check that.