Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set proxy to geckodriver 0.16 #669

Closed
asolntsev opened this issue Apr 21, 2017 · 32 comments
Closed

Cannot set proxy to geckodriver 0.16 #669

asolntsev opened this issue Apr 21, 2017 · 32 comments

Comments

@asolntsev
Copy link

asolntsev commented Apr 21, 2017

Firefox Version

53.0

Selenium version

selenium-java 3.4.0

Platform

OSX

Steps to reproduce -

Create a FirefoxDriver instance with Proxy:

    Proxy proxy = new Proxy();
    proxy.setHttpProxy("127.0.0.1:51969");
    capabilities.setCapability(PROXY, proxy);
    capabilities.setCapability("marionette", true);

    FirefoxDriver driver = new FirefoxDriver(capabilities);

it throws the following exception:

org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer

P.S. Adding proxy in this way doesn't throw an exception:

    options.addPreference("network.proxy.http", "127.0.0.1");
    options.addPreference("network.proxy.http_port", "51969");
@andreastt
Copy link
Contributor

Can you supply the Selenium client version? Language binding? Trace-level log from geckodriver?

@asolntsev
Copy link
Author

@andreastt Sure. selenium-java 3.4.0

Below is the full log:

1492813280905	geckodriver	INFO	Listening on 127.0.0.1:19300
1492813281444	geckodriver::marionette	INFO	Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"]
1492813281847	addons.manager	DEBUG	Application has been upgraded
1492813281896	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1492813281901	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1492813281906	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1492813281908	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1492813281909	addons.manager	DEBUG	Starting provider: XPIProvider
1492813281910	addons.xpi	DEBUG	startup
1492813281910	addons.xpi	INFO	Removing all system add-on upgrades.
1492813281910	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1492813281911	addons.xpi	INFO	Mapping aushelper@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1492813281912	addons.xpi	INFO	Mapping e10srollout@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1492813281912	addons.xpi	INFO	Mapping firefox@getpocket.com to /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1492813281912	addons.xpi	INFO	Mapping webcompat@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1492813281912	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1492813281913	addons.xpi	DEBUG	checkForChanges
1492813281913	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1492813281914	addons.xpi	DEBUG	Loaded add-on state from prefs: {}
1492813281914	addons.xpi	DEBUG	New add-on aushelper@mozilla.org in app-system-defaults
1492813281915	addons.xpi	DEBUG	getModTime: Recursive scan of aushelper@mozilla.org
1492813281915	addons.xpi	DEBUG	New add-on e10srollout@mozilla.org in app-system-defaults
1492813281916	addons.xpi	DEBUG	getModTime: Recursive scan of e10srollout@mozilla.org
1492813281916	addons.xpi	DEBUG	New add-on firefox@getpocket.com in app-system-defaults
1492813281917	addons.xpi	DEBUG	getModTime: Recursive scan of firefox@getpocket.com
1492813281917	addons.xpi	DEBUG	New add-on webcompat@mozilla.org in app-system-defaults
1492813281917	addons.xpi	DEBUG	getModTime: Recursive scan of webcompat@mozilla.org
1492813281918	addons.xpi	DEBUG	New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1492813281918	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1492813281918	addons.xpi	DEBUG	getInstallState changed: true, state: {"app-system-defaults":{"aushelper@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi","st":1492800115000},"e10srollout@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi","st":1492800115000},"firefox@getpocket.com":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi","st":1492800115000},"webcompat@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi","st":1492800115000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1492800115000}}}
1492813281926	addons.xpi-utils	DEBUG	Opening XPI database /var/folders/69/t1jj16953kb0hrlfd9fmltnr0000gn/T/rust_mozprofile.kd7rEPUIiVNE/extensions.json
1492813281926	addons.xpi-utils	DEBUG	New add-on aushelper@mozilla.org installed in app-system-defaults
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1492813281935	DeferredSave.extensions.json	DEBUG	Save changes
1492813281936	addons.xpi-utils	DEBUG	New add-on e10srollout@mozilla.org installed in app-system-defaults
1492813281940	DeferredSave.extensions.json	DEBUG	Starting timer
1492813281942	DeferredSave.extensions.json	DEBUG	Save changes
1492813281942	addons.xpi-utils	DEBUG	New add-on firefox@getpocket.com installed in app-system-defaults
1492813281949	DeferredSave.extensions.json	DEBUG	Save changes
1492813281949	addons.xpi-utils	DEBUG	New add-on webcompat@mozilla.org installed in app-system-defaults
1492813281955	DeferredSave.extensions.json	DEBUG	Save changes
1492813281956	addons.xpi-utils	DEBUG	New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1492813281959	DeferredSave.extensions.json	DEBUG	Save changes
1492813281960	addons.manager	DEBUG	Registering startup change 'installed' for aushelper@mozilla.org
1492813281971	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1492813281977	addons.xpi	DEBUG	Calling bootstrap method install on aushelper@mozilla.org version 2.0
1492813281977	addons.xpi-utils	DEBUG	Make addon app-system-defaults:aushelper@mozilla.org visible
1492813281978	DeferredSave.extensions.json	DEBUG	Save changes
1492813281978	addons.manager	DEBUG	Registering startup change 'installed' for e10srollout@mozilla.org
1492813281979	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1492813281981	addons.xpi	DEBUG	Calling bootstrap method install on e10srollout@mozilla.org version 1.14
1492813281982	addons.xpi-utils	DEBUG	Make addon app-system-defaults:e10srollout@mozilla.org visible
1492813281983	DeferredSave.extensions.json	DEBUG	Save changes
1492813281983	addons.manager	DEBUG	Registering startup change 'installed' for firefox@getpocket.com
1492813281984	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1492813281987	addons.xpi	DEBUG	Calling bootstrap method install on firefox@getpocket.com version 1.0.5
1492813281987	addons.xpi-utils	DEBUG	Make addon app-system-defaults:firefox@getpocket.com visible
1492813281987	DeferredSave.extensions.json	DEBUG	Save changes
1492813281987	addons.manager	DEBUG	Registering startup change 'installed' for webcompat@mozilla.org
1492813281988	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1492813281991	addons.xpi	DEBUG	Calling bootstrap method install on webcompat@mozilla.org version 1.0
1492813281992	addons.xpi-utils	DEBUG	Make addon app-system-defaults:webcompat@mozilla.org visible
1492813281992	DeferredSave.extensions.json	DEBUG	Save changes
1492813281992	addons.xpi-utils	DEBUG	Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1492813281993	DeferredSave.extensions.json	DEBUG	Save changes
1492813281993	addons.xpi	DEBUG	Updating XPIState for {"id":"aushelper@mozilla.org","syncGUID":"{07e8174c-9c9e-5e4a-9483-1eaa752b369f}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8486,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281993	addons.xpi	DEBUG	getModTime: Recursive scan of aushelper@mozilla.org
1492813281993	addons.xpi	DEBUG	Updating XPIState for {"id":"e10srollout@mozilla.org","syncGUID":"{ac3ddcaf-73c2-8644-9269-0cc01f3ca2a8}","location":"app-system-defaults","version":"1.14","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8476,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281993	addons.xpi	DEBUG	getModTime: Recursive scan of e10srollout@mozilla.org
1492813281994	addons.xpi	DEBUG	Updating XPIState for {"id":"firefox@getpocket.com","syncGUID":"{b4913a3a-5b17-464b-aba3-dc13e2f85423}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":913563,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281994	addons.xpi	DEBUG	getModTime: Recursive scan of firefox@getpocket.com
1492813281994	addons.xpi	DEBUG	Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{d6b9dc06-49a4-2d4f-851e-72ad31471396}","location":"app-system-defaults","version":"1.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1454,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281994	addons.xpi	DEBUG	getModTime: Recursive scan of webcompat@mozilla.org
1492813281994	addons.xpi	DEBUG	Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{376424bc-ae0d-ea4d-a6ae-1c4906991292}","location":"app-global","version":"53.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":"chrome://browser/content/default-theme-icon.svg","icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"skinnable":true,"size":4332,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.0"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1492813281995	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1492813281996	DeferredSave.extensions.json	DEBUG	Save changes
1492813281996	addons.xpi	DEBUG	Updating database with changes to installed add-ons
1492813281996	addons.xpi-utils	DEBUG	Updating add-on states
1492813281997	addons.xpi-utils	DEBUG	Writing add-ons list
1492813282000	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1492813282000	addons.xpi	DEBUG	Calling bootstrap method startup on aushelper@mozilla.org version 2.0
1492813282001	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1492813282002	addons.xpi	DEBUG	Calling bootstrap method startup on e10srollout@mozilla.org version 1.14
1492813282003	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1492813282003	addons.xpi	DEBUG	Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1492813282004	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1492813282004	addons.xpi	DEBUG	Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1492813282007	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1492813282008	addons.manager	DEBUG	Provider finished startup: XPIProvider
1492813282008	addons.manager	DEBUG	Starting provider: LightweightThemeManager
1492813282008	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1492813282008	addons.manager	DEBUG	Provider finished startup: LightweightThemeManager
1492813282008	addons.manager	DEBUG	Starting provider: GMPProvider
1492813282012	addons.manager	DEBUG	Registering shutdown blocker for GMPProvider
1492813282012	addons.manager	DEBUG	Provider finished startup: GMPProvider
1492813282012	addons.manager	DEBUG	Starting provider: PluginProvider
1492813282012	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
1492813282012	addons.manager	DEBUG	Provider finished startup: PluginProvider
1492813282013	addons.manager	DEBUG	Completed startup sequence
1492813282466	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1492813282466	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1492813282467	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1492813282512	addons.manager	DEBUG	Starting provider: PreviousExperimentProvider
1492813282512	addons.manager	DEBUG	Registering shutdown blocker for PreviousExperimentProvider
1492813282513	addons.manager	DEBUG	Provider finished startup: PreviousExperimentProvider
1492813282518	DeferredSave.extensions.json	DEBUG	Starting write
1492813282665	DeferredSave.extensions.json	DEBUG	Write succeeded
1492813282665	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 19
1492813284069	Marionette	INFO	Listening on port 54842

org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'Andreis-MacBook-Pro-3.local', ip: 'fe80:0:0:0:1416:6c3e:d800:5630%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_111'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
   0:        0x10c91437e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
   1:        0x10c914abc - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
   2:        0x10c8c7eaf - webdriver::error::WebDriverError::new::h6e7bc24f03499973
   3:        0x10c8d87cb - geckodriver::marionette::MarionetteSession::response::h06a886e7e8d17c71
   4:        0x10c8d6663 - _$LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::h1551b734f4cde0a0
   5:        0x10c8c8340 - webdriver::server::start::_$u7b$$u7b$closure$u7d$$u7d$::h89f46c6cb17a6c48
   6:        0x10c89bdcd - std::panicking::try::do_call::h20be620158d9b55a
   7:        0x10ca3e5ba - __rust_maybe_catch_panic
   8:        0x10c8aaaea - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::h4fac0ee9906c8727
   9:        0x10ca3ca14 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
  10:     0x7fff8bb8d9ae - _pthread_body
  11:     0x7fff8bb8d8fa - _pthread_start

	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
	at integration.GeckoTest.gecko(GeckoTest.java:44)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

@andreastt
Copy link
Contributor

@asolntsev Hm, unfortunately that’s only the debug-level logs. Try passing -vv to geckodriver or set {"moz:firefoxOptions": {"log": {"level": "trace"}}} as part of your capabilities.

@asolntsev
Copy link
Author

@andreastt I am getting the same output after adding {"log": {"level": "trace"}}.
Can't you run the same code and reproduce the issue on your machine?

@andreastt
Copy link
Contributor

@asolntsev No, I’m not able to reproduce this. Is this still an issue on Firefox Nightly? I can’t really tell what’s wrong unless you attach a geckodriver trace log.

Apparently, if you’re using Java, you can use the FirefoxOptions.setLogLevel(LogLevel.ALL) option to crank it up, I learned today.

@shyoro
Copy link

shyoro commented May 7, 2017

same error here, we get this while working with embedded selenium server process and trying to get the driver object

Our setup:
macOS 10.12.4
firefox: 53
Geckodriver 0.16.1
Selenium 3.4

Trace:

1494159075921	geckodriver	INFO	Listening on 127.0.0.1:13528
1494159076176	geckodriver::marionette	INFO	Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"]
1494159076776	addons.manager	DEBUG	Application has been upgraded
1494159076832	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1494159076837	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1494159076842	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1494159076845	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1494159076846	addons.manager	DEBUG	Starting provider: XPIProvider
1494159076846	addons.xpi	DEBUG	startup
1494159076847	addons.xpi	INFO	Removing all system add-on upgrades.
1494159076847	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1494159076849	addons.xpi	INFO	Mapping aushelper@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1494159076850	addons.xpi	INFO	Mapping e10srollout@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1494159076850	addons.xpi	INFO	Mapping firefox@getpocket.com to /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1494159076851	addons.xpi	INFO	Mapping screenshots@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/screenshots@mozilla.org.xpi
1494159076851	addons.xpi	INFO	Mapping webcompat@mozilla.org to /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1494159076852	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1494159076853	addons.xpi	DEBUG	checkForChanges
1494159076853	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1494159076854	addons.xpi	DEBUG	Loaded add-on state from prefs: {}
1494159076855	addons.xpi	DEBUG	New add-on aushelper@mozilla.org in app-system-defaults
1494159076856	addons.xpi	DEBUG	getModTime: Recursive scan of aushelper@mozilla.org
1494159076856	addons.xpi	DEBUG	New add-on e10srollout@mozilla.org in app-system-defaults
1494159076857	addons.xpi	DEBUG	getModTime: Recursive scan of e10srollout@mozilla.org
1494159076857	addons.xpi	DEBUG	New add-on firefox@getpocket.com in app-system-defaults
1494159076858	addons.xpi	DEBUG	getModTime: Recursive scan of firefox@getpocket.com
1494159076859	addons.xpi	DEBUG	New add-on screenshots@mozilla.org in app-system-defaults
1494159076859	addons.xpi	DEBUG	getModTime: Recursive scan of screenshots@mozilla.org
1494159076859	addons.xpi	DEBUG	New add-on webcompat@mozilla.org in app-system-defaults
1494159076860	addons.xpi	DEBUG	getModTime: Recursive scan of webcompat@mozilla.org
1494159076860	addons.xpi	DEBUG	New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1494159076860	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1494159076861	addons.xpi	DEBUG	getInstallState changed: true, state: {"app-system-defaults":{"aushelper@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi","st":1493672886000},"e10srollout@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi","st":1493672886000},"firefox@getpocket.com":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi","st":1493672886000},"screenshots@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/screenshots@mozilla.org.xpi","st":1493672886000},"webcompat@mozilla.org":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi","st":1493672886000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1493672886000}}}
1494159076870	addons.xpi-utils	DEBUG	Opening XPI database /var/folders/g7/blgwjx0x3rb04ntsb0kdyczc0000gn/T/rust_mozprofile.9XLSSFPOpXPy/extensions.json
1494159076871	addons.xpi-utils	DEBUG	New add-on aushelper@mozilla.org installed in app-system-defaults
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1494159076884	DeferredSave.extensions.json	DEBUG	Save changes
1494159076884	addons.xpi-utils	DEBUG	New add-on e10srollout@mozilla.org installed in app-system-defaults
1494159076889	DeferredSave.extensions.json	DEBUG	Starting timer
1494159076891	DeferredSave.extensions.json	DEBUG	Save changes
1494159076891	addons.xpi-utils	DEBUG	New add-on firefox@getpocket.com installed in app-system-defaults
1494159076901	DeferredSave.extensions.json	DEBUG	Save changes
1494159076901	addons.xpi-utils	DEBUG	New add-on screenshots@mozilla.org installed in app-system-defaults
1494159076909	DeferredSave.extensions.json	DEBUG	Save changes
1494159076910	addons.xpi-utils	DEBUG	New add-on webcompat@mozilla.org installed in app-system-defaults
1494159076915	DeferredSave.extensions.json	DEBUG	Save changes
1494159076915	addons.xpi-utils	DEBUG	New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1494159076921	DeferredSave.extensions.json	DEBUG	Save changes
1494159076922	addons.manager	DEBUG	Registering startup change 'installed' for aushelper@mozilla.org
1494159076936	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1494159076942	addons.xpi	DEBUG	Calling bootstrap method install on aushelper@mozilla.org version 2.0
1494159076942	addons.xpi-utils	DEBUG	Make addon app-system-defaults:aushelper@mozilla.org visible
1494159076943	DeferredSave.extensions.json	DEBUG	Save changes
1494159076944	addons.manager	DEBUG	Registering startup change 'installed' for e10srollout@mozilla.org
1494159076945	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1494159076947	addons.xpi	DEBUG	Calling bootstrap method install on e10srollout@mozilla.org version 1.50
1494159076948	addons.xpi-utils	DEBUG	Make addon app-system-defaults:e10srollout@mozilla.org visible
1494159076949	DeferredSave.extensions.json	DEBUG	Save changes
1494159076949	addons.manager	DEBUG	Registering startup change 'installed' for firefox@getpocket.com
1494159076950	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1494159076954	addons.xpi	DEBUG	Calling bootstrap method install on firefox@getpocket.com version 1.0.5
1494159076954	addons.xpi-utils	DEBUG	Make addon app-system-defaults:firefox@getpocket.com visible
1494159076954	DeferredSave.extensions.json	DEBUG	Save changes
1494159076955	addons.manager	DEBUG	Registering startup change 'installed' for screenshots@mozilla.org
1494159076955	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/screenshots@mozilla.org.xpi
1494159076958	addons.xpi	DEBUG	Calling bootstrap method install on screenshots@mozilla.org version 6.3.0
1494159076958	addons.xpi-utils	DEBUG	Make addon app-system-defaults:screenshots@mozilla.org visible
1494159076959	DeferredSave.extensions.json	DEBUG	Save changes
1494159076959	addons.manager	DEBUG	Registering startup change 'installed' for webcompat@mozilla.org
1494159076960	addons.xpi	DEBUG	Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1494159076962	addons.xpi	DEBUG	Calling bootstrap method install on webcompat@mozilla.org version 1.1
1494159076962	addons.xpi-utils	DEBUG	Make addon app-system-defaults:webcompat@mozilla.org visible
1494159076963	DeferredSave.extensions.json	DEBUG	Save changes
1494159076964	addons.xpi-utils	DEBUG	Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1494159076964	DeferredSave.extensions.json	DEBUG	Save changes
1494159076965	addons.xpi	DEBUG	Updating XPIState for {"id":"aushelper@mozilla.org","syncGUID":"{5199ec6d-c286-ed40-b776-a84376e3646d}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8486,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076965	addons.xpi	DEBUG	getModTime: Recursive scan of aushelper@mozilla.org
1494159076965	addons.xpi	DEBUG	Updating XPIState for {"id":"e10srollout@mozilla.org","syncGUID":"{7dc3164c-0136-e240-9c35-f5f7b408d82b}","location":"app-system-defaults","version":"1.50","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":12188,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076966	addons.xpi	DEBUG	getModTime: Recursive scan of e10srollout@mozilla.org
1494159076966	addons.xpi	DEBUG	Updating XPIState for {"id":"firefox@getpocket.com","syncGUID":"{058d4724-d229-144f-8524-75f00bd6bb41}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":913904,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076966	addons.xpi	DEBUG	getModTime: Recursive scan of firefox@getpocket.com
1494159076967	addons.xpi	DEBUG	Updating XPIState for {"id":"screenshots@mozilla.org","syncGUID":"{60f91275-564b-f840-8db7-4465ec34e720}","location":"app-system-defaults","version":"6.3.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox Screenshots","description":null,"creator":null,"homepageURL":"https://pageshot.net/"},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/screenshots@mozilla.org.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":668434,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"51.0a1","maxVersion":"*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076967	addons.xpi	DEBUG	getModTime: Recursive scan of screenshots@mozilla.org
1494159076967	addons.xpi	DEBUG	Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{0d03eca1-775a-5a46-9b49-bd3254949ec3}","location":"app-system-defaults","version":"1.1","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":9004,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076967	addons.xpi	DEBUG	getModTime: Recursive scan of webcompat@mozilla.org
1494159076968	addons.xpi	DEBUG	Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{fc2ad810-6fe6-fa40-8e44-90ea9f64737d}","location":"app-global","version":"54.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":"chrome://browser/content/default-theme-icon.svg","icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"skinnable":true,"size":3908,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.0"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1494159076968	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1494159076969	DeferredSave.extensions.json	DEBUG	Save changes
1494159076969	addons.xpi	DEBUG	Updating database with changes to installed add-ons
1494159076969	addons.xpi-utils	DEBUG	Updating add-on states
1494159076970	addons.xpi-utils	DEBUG	Writing add-ons list
1494159076972	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1494159076972	addons.xpi	DEBUG	Calling bootstrap method startup on aushelper@mozilla.org version 2.0
1494159076974	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1494159076974	addons.xpi	DEBUG	Calling bootstrap method startup on e10srollout@mozilla.org version 1.50
1494159076975	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1494159076976	addons.xpi	DEBUG	Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1494159076977	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/screenshots@mozilla.org.xpi
1494159076977	addons.xpi	DEBUG	Calling bootstrap method startup on screenshots@mozilla.org version 6.3.0
1494159076978	addons.xpi	DEBUG	Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1494159076978	addons.xpi	DEBUG	Calling bootstrap method startup on webcompat@mozilla.org version 1.1
1494159076985	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1494159076986	addons.manager	DEBUG	Provider finished startup: XPIProvider
1494159076987	addons.manager	DEBUG	Starting provider: LightweightThemeManager
1494159076987	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1494159076987	addons.manager	DEBUG	Provider finished startup: LightweightThemeManager
1494159076988	addons.manager	DEBUG	Starting provider: GMPProvider
1494159076995	addons.manager	DEBUG	Registering shutdown blocker for GMPProvider
1494159076997	addons.manager	DEBUG	Provider finished startup: GMPProvider
1494159076998	addons.manager	DEBUG	Starting provider: PluginProvider
1494159076998	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
1494159076998	addons.manager	DEBUG	Provider finished startup: PluginProvider
1494159076999	addons.manager	DEBUG	Completed startup sequence
1494159077472	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1494159077472	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1494159077472	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1494159077510	addons.manager	DEBUG	Starting provider: PreviousExperimentProvider
1494159077510	addons.manager	DEBUG	Registering shutdown blocker for PreviousExperimentProvider
1494159077511	addons.manager	DEBUG	Provider finished startup: PreviousExperimentProvider
1494159077515	DeferredSave.extensions.json	DEBUG	Starting write
1494159077679	DeferredSave.extensions.json	DEBUG	Write succeeded
1494159077679	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 19
1494159079020	Marionette	INFO	Listening on port 64682

org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'obil-sazulay.il.outbrain.com', ip: 'fe80:0:0:0:44e:6923:f0cc:1269%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
   0:        0x10d10d82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
   1:        0x10d10df6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
   2:        0x10d0c09cf - webdriver::error::WebDriverError::new::h7184d15bc5556898
   3:        0x10d0d0ffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56
   4:        0x10d0cee93 - _$LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e
   5:        0x10d0c0e60 - webdriver::server::start::_$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795
   6:        0x10d096a5d - std::panicking::try::do_call::hd7b79b66c427c537
   7:        0x10d238d1a - __rust_maybe_catch_panic
   8:        0x10d0a379a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc
   9:        0x10d237174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
  10:     0x7fffc4bca9ae - _pthread_body
  11:     0x7fffc4bca8fa - _pthread_start
Command duration or timeout: 3.84 seconds

	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
	at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
	at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:174)
	at com.outbrain.selenium.infra.WebDriverFactory.getDriver(WebDriverFactory.java:79)
	at com.outbrain.selenium.common.BaseSeleniumTest.initBaseSeleniumTest(BaseSeleniumTest.java:86)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'obil-sazulay.il.outbrain.com', ip: 'fe80:0:0:0:44e:6923:f0cc:1269%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
   0:        0x10d10d82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
   1:        0x10d10df6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
   2:        0x10d0c09cf - webdriver::error::WebDriverError::new::h7184d15bc5556898
   3:        0x10d0d0ffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56
   4:        0x10d0cee93 - _$LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e
   5:        0x10d0c0e60 - webdriver::server::start::_$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795
   6:        0x10d096a5d - std::panicking::try::do_call::hd7b79b66c427c537
   7:        0x10d238d1a - __rust_maybe_catch_panic
   8:        0x10d0a379a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc
   9:        0x10d237174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
  10:     0x7fffc4bca9ae - _pthread_body
  11:     0x7fffc4bca8fa - _pthread_start
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'obil-sazulay.il.outbrain.com', ip: 'fe80:0:0:0:44e:6923:f0cc:1269%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:137)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:81)
	at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:63)
	at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
	at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
	at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:209)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

15:11:19,285  INFO DefaultHttpProxyServer:487 - Shutting down proxy
15:11:19,285  INFO DefaultHttpProxyServer:493 - Closing all channels...
2017-05-07 15:11:19.448 plugin-container[99596:6532831] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9c3b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-05-07 15:11:19.449 plugin-container[99596:6532831] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9f03, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.

@andreastt
Copy link
Contributor

@shyoro That log isn’t particularly helpful since you didn’t add any of the information I requested in #669 (comment).

It would be useful if you tried this with the most recent Firefox Nightly and Selenium versions.

@eyal919
Copy link

eyal919 commented May 15, 2017

Any Updates on this one?

@andreastt
Copy link
Contributor

Closing due to inactivity. Happy to reopen when a trace-level log has been added. Without this we’re unable to diagnose the issue.

@schmidtkp
Copy link

@andreastt Here are some trace-level logs:

1495475878949 geckodriver INFO Listening on 127.0.0.1:10091
1495475879203 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"]
1495475879208 geckodriver::marionette TRACE connection attempt 0/600
1495475879313 geckodriver::marionette TRACE connection attempt 1/600
1495475879417 geckodriver::marionette TRACE connection attempt 2/600
1495475879519 geckodriver::marionette TRACE connection attempt 3/600
1495475879622 geckodriver::marionette TRACE connection attempt 4/600
1495475879727 geckodriver::marionette TRACE connection attempt 5/600
1495475879755 Marionette DEBUG Marionette enabled via command-line flag
1495475879832 geckodriver::marionette TRACE connection attempt 6/600
1495475879935 geckodriver::marionette TRACE connection attempt 7/600
1495475880039 geckodriver::marionette TRACE connection attempt 8/600
1495475880143 geckodriver::marionette TRACE connection attempt 9/600
1495475880247 geckodriver::marionette TRACE connection attempt 10/600
1495475880353 geckodriver::marionette TRACE connection attempt 11/600
1495475880458 geckodriver::marionette TRACE connection attempt 12/600
1495475880563 geckodriver::marionette TRACE connection attempt 13/600
1495475880667 geckodriver::marionette TRACE connection attempt 14/600
1495475880770 geckodriver::marionette TRACE connection attempt 15/600
1495475880818 Marionette INFO Listening on port 57481
1495475880875 geckodriver::marionette DEBUG Connected to Marionette on localhost:57481
1495475880901 Marionette DEBUG Accepted connection conn0 from 127.0.0.1:57520
1495475880926 geckodriver::marionette TRACE ← {"applicationType":"gecko","marionetteProtocol":3}
1495475880926 geckodriver::marionette TRACE → 677:[0,1,"newSession",{"acceptInsecureCerts":true,"browserName":"firefox","capabilities":{"desiredCapabilities":{"acceptInsecureCerts":true,"browserName":"firefox","proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}},"proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}]
1495475880932 Marionette TRACE conn0 -> [0,1,"newSession",{"acceptInsecureCerts":true,"browserName":"firefox","capabilities":{"desiredCapabilities":{"acceptInsecureCerts":true,"browserName":"firefox","proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}},"proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}]
1495475880939 Marionette TRACE conn0 <- [1,1,{"error":"session not created","message":"InvalidArgumentError: Expected [object Undefined] undefined to be an integer","stacktrace":"WebDriverError@chrome://marionette/content/error.js:200:5\nInvalidArgumentError@chrome://marionette/content/error.js:290:5\nassert.that/<@chrome://marionette/content/assert.js:345:13\nassert.integer@chrome://marionette/content/assert.js:201:10\nassert.positiveInteger@chrome://marionette/content/assert.js:219:3\nfromJSON@chrome://marionette/content/session.js:204:31\nmatch_@chrome://marionette/content/session.js:368:23\nfromJSON@chrome://marionette/content/session.js:281:12\nGeckoDriver.prototype.newSession@chrome://marionette/content/driver.js:596:25\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nDispatcher.prototype.execute@chrome://marionette/content/dispatcher.js:118:13\nDispatcher.prototype.onPacket@chrome://marionette/content/dispatcher.js:89:5\n_onJSONObjectReady/<@chrome://marionette/content/server.js -> resource://devtools/shared/transport/transport.js:483:11\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\n"},null]
1495475880942 geckodriver::marionette TRACE ← [1,1,{"error":"session not created","message":"InvalidArgumentError: Expected [object Undefined] undefined to be an integer","stacktrace":"WebDriverError@chrome://marionette/content/error.js:200:5\nInvalidArgumentError@chrome://marionette/content/error.js:290:5\nassert.that/<@chrome://marionette/content/assert.js:345:13\nassert.integer@chrome://marionette/content/assert.js:201:10\nassert.positiveInteger@chrome://marionette/content/assert.js:219:3\nfromJSON@chrome://marionette/content/session.js:204:31\nmatch_@chrome://marionette/content/session.js:368:23\nfromJSON@chrome://marionette/content/session.js:281:12\nGeckoDriver.prototype.newSession@chrome://marionette/content/driver.js:596:25\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nDispatcher.prototype.execute@chrome://marionette/content/dispatcher.js:118:13\nDispatcher.prototype.onPacket@chrome://marionette/content/dispatcher.js:89:5\n_onJSONObjectReady/<@chrome://marionette/content/server.js -> resource://devtools/shared/transport/transport.js:483:11\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\n"},null]
1495475880958 webdriver::server DEBUG ← 500 Internal Server Error {"value":{"error":"session not created","message":"InvalidArgumentError: Expected [object Undefined] undefined to be an integer","stacktrace":"stack backtrace:\n 0: 0x10df4c82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2\n 1: 0x10df4cf6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc\n 2: 0x10deff9cf - webdriver::error::WebDriverError::new::h7184d15bc5556898\n 3: 0x10df0fffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56\n 4: 0x10df0de93 - $LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e\n 5: 0x10deffe60 - webdriver::server::start::$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795\n 6: 0x10ded5a5d - std::panicking::try::do_call::hd7b79b66c427c537\n 7: 0x10e077d1a - __rust_maybe_catch_panic\n 8: 0x10dee279a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc\n 9: 0x10e076174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f\n 10: 0x7fff9df4893a - _pthread_body\n 11: 0x7fff9df48886 - _pthread_start"}}

org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'retina.local', ip: 'fe80:0:0:0:811:92f:213e:c99d%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.5', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x10df4c82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
1: 0x10df4cf6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
2: 0x10deff9cf - webdriver::error::WebDriverError::new::h7184d15bc5556898
3: 0x10df0fffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56
4: 0x10df0de93 - $LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e
5: 0x10deffe60 - webdriver::server::start::
$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795
6: 0x10ded5a5d - std::panicking::try::do_call::hd7b79b66c427c537
7: 0x10e077d1a - __rust_maybe_catch_panic
8: 0x10dee279a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc
9: 0x10e076174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
10: 0x7fff9df4893a - _pthread_body
11: 0x7fff9df48886 - _pthread_start
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:137)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:108)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:137)
at com.bazaarvoice.automation.webrunner.webdriver.WebDriverManager.startWebDriver(WebDriverManager.java:315)
at com.bazaarvoice.automation.webrunner.runner.TestWebRunner.startWebDriver(TestWebRunner.java:189)
at com.bazaarvoice.automation.webrunner.runner.TestWebRunner.testWebRunnerBeforeClass(TestWebRunner.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:514)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:215)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:178)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

@wfloutier
Copy link

wfloutier commented May 23, 2017

@asolntsev can you repoen this please, given above trace-level logs.

@asolntsev
Copy link
Author

@wfloutier I cannot re-open the issue that was closed by a repo collaborator.
@andreastt Please re-open the issue. We got the trace-level logs.

@whimboo
Copy link
Collaborator

whimboo commented May 26, 2017

It looks like this is happening in Marionette for the following line:

assert.positiveInteger(json.socksProxyVersion);

The above trace log doesn't list this property and as such we fail. I wonder if this should be handled as optional. @andreastt can you please check?

A workaround might be to just add a valid version for the socks proxy into the capabilities.

@whimboo whimboo reopened this May 26, 2017
@schmidtkp
Copy link

@whimboo @andreastt What would have been the behavior if the socksProxy/socksProxyPort hadn't been set at all? For that matter, what would be the behavior if only a single type of proxy was set - e.g. FTP and no others?

@marcelas
Copy link

@whimboo I still see this issue even if I set a fake socks proxy.

@yodaqua
Copy link

yodaqua commented May 31, 2017

I'm experiencing this issue as well and might have logged an identical issue #762. If it is, then I'll close it.

@dpapworth
Copy link

Just to chip in here, I have the same problem using RemoteWebDriver - I've worked around it by manually setting the proxy configuration on the FirefoxProfile object as follows -

    String[] httpHostAndPort = proxy.getHttpProxy().split(":");
    profile.setPreference("network.proxy.type", 1);
    profile.setPreference("network.proxy.http", httpHostAndPort[0]);
    profile.setPreference("network.proxy.http_port", Integer.parseInt(httpHostAndPort[1]));

    String[] sslHostAndProxy = proxy.getSslProxy().split(":");
    profile.setPreference("network.proxy.ssl", sslHostAndProxy[0]);
    profile.setPreference("network.proxy.ssl_port", Integer.parseInt(sslHostAndProxy[1]));

Unlike @asolntsev's workaround, I've had to set the proxy type to manual, and the ports have to be integers to be overridden in about:config (although I'm not sure if that's just a side effect of using RemoteWebDriver).

@dpapworth
Copy link

I'm using the Docker container selenium/node-firefox-debug:3.4.0-einsteinium as the browser, and I'm using Java with selenium-java 3.4.0.

@eyal919
Copy link

eyal919 commented Jul 6, 2017

Any updates about this issues? any ETA?

@jprashanth1983
Copy link

I have the same issue too. I have the latest Firefox and geckodriver installed. Can someone please help?

Firefox: 54.0.1
Selenium: 3.4
Platform: win 7

ProfilesIni profile = new ProfilesIni();
FirefoxBinary binary = new FirefoxBinary(new File(Config.Path_Firefox));
FirefoxProfile myProfile = profile.getProfile("SeleniumExec");

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);

System.setProperty("webdriver.firefox.bin",Config.Path_Firefox);
System.setProperty("webdriver.gecko.driver", Config.Path_FIREFOXDriver);
Generic_Methods.driver = new FirefoxDriver(binary, myProfile,capabilities);

I get the following error
InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'IBMT430PB2E84R', ip: '10.121.129.188', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_60'
Driver info: driver.version: Project_Master_Driver
remote stacktrace: stack backtrace:
0: 0x4bb74f -
1: 0x4bbea9 -
2: 0x43ce8d -
3: 0x44ce14 -
4: 0x44944a -
5: 0x4203e1 -
6: 0x407dc7 -
7: 0x6d95b9 -
8: 0x4173a7 -
9: 0x6d38b3 -
10: 0x77ad59cd - BaseThreadInitThunk

@pg-adm1n
Copy link

I think the problem is the Proxy, because when I using JSONObject to pass the parameter
JsonObject proxyData = new JsonObject(); proxyData.addProperty("proxyType", "manual"); proxyData.addProperty("httpProxy", "127.0.0.1"); proxyData.addProperty("httpProxyPort", "1080");
Will throw a Exception "httpProxyPort was not an integer"
so, I change the code to
JsonObject proxyData = new JsonObject(); proxyData.addProperty("proxyType", "manual"); proxyData.addProperty("httpProxy", "127.0.0.1"); proxyData.addProperty("httpProxyPort",1080);//Use int
Then success.

@OndraM
Copy link
Contributor

OndraM commented Jul 21, 2017

Confirmed in latest geckodriver (0.18.0), Firefox 54.0.1 and Selenium 3.4.0.

The language bindings are https://github.com/facebook/php-webdriver/, however, the POST parameters send to Selenium server when creating the session are:

{"desiredCapabilities":{"browserName":"firefox","platform":"ANY","proxy":{"proxyType":"MANUAL","httpProxy":"proxy.foo.bar","httpProxyPort":8118,"sslProxy":"proxy.foo.bar","sslProxyPort":8118}}}

So from the language bindings point of view there is nothing wrong with the integer in the port number...

@barancev
Copy link

barancev commented Aug 4, 2017

Also I want to note that the correct property name is "socksVersion", and its type is string, accoring to the spec, see https://www.w3.org/TR/webdriver/#proxy

@andreastt
Copy link
Contributor

Just a small nit: the /TR namespace on w3.org stands for “totally rubbish” and isn’t the version of the specification that geckodriver implements. Please refer to the Editor’s Draft (ED) when consulting the specification.

@barancev
Copy link

barancev commented Aug 4, 2017

Oh! Thanks! Yes, in ED it has numeric type.

@whimboo
Copy link
Collaborator

whimboo commented Aug 11, 2017

Everyone please note that I started to make changes in how geckodriver/Marionette is handling proxies. There is a lot of work to do but soon I will also get started to get rid of this extra port property, and make it conforming the webdriver specs. The work will be done on bug 1369827

So if you want to see where we are, please have a look at this bug. We don't need more 'me too' comments here. Thanks.

@prasanna532
Copy link

prasanna532 commented Aug 15, 2017

With gecko driver 18.0 and firefox 55.0.1 also having the same issue

below is the tracelog:
1502797357671 geckodriver INFO geckodriver 0.18.0
1502797357674 geckodriver INFO Listening on 127.0.0.1:38700
1502797358357 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args ["-marionette"]
1502797359069 Marionette INFO Enabled via --marionette
1502797360526 Marionette INFO Listening on port 50005
1502797360546 Marionette INFO Listening on port 50005
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'DESKTOP-0LDLL26', ip: '192.168.1.105', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x4bb74f -
1: 0x4bbea9 -
2: 0x43ce8d -
3: 0x44ce14 -
4: 0x44944a -
5: 0x4203e1 -
6: 0x407dc7 -
7: 0x6d95b9 -
8: 0x4173a7 -
9: 0x6d38b3 -
10: 0x7ff8d1052774 - BaseThreadInitThunk
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.findFirst(Unknown Source)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:137)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:108)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:137)

@whimboo
Copy link
Collaborator

whimboo commented Aug 15, 2017

@prasanna532 this is most likely because you are using a socks proxy, right? It will also be fixed with the bug I pointed out above.

@andreastt
Copy link
Contributor

@whimboo Can this be closed?

@whimboo whimboo self-assigned this Aug 22, 2017
@whimboo
Copy link
Collaborator

whimboo commented Aug 22, 2017

Not yet. The original comment on this issue is exactly what I work on right now via bug 1369827 as stated above 11 days ago.

@whimboo
Copy link
Collaborator

whimboo commented Aug 22, 2017

Actually lets mark as dupe of issue #764 which has a more in depth explanation of the problem.

@whimboo whimboo closed this as completed Aug 22, 2017
@whimboo whimboo removed their assignment Aug 22, 2017
@lock
Copy link

lock bot commented Aug 17, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests