org.openqa.selenium.InvalidArgumentException: invalid argument: entry 0 of 'firstMatch' is invalid

719 views
Skip to first unread message

Katherine Cheng

unread,
Sep 4, 2020, 2:46:16 PM9/4/20
to jmeter-plugins
Hi Group,

I need to run my JMeter with Selenium WebDriver Plugin scripts through proxy. When I se put the http proxy info in Manual proxy configuration, I got the following error

2020-09-04 11:31:11,103 ERROR o.a.j.t.JMeterThread: Error calling threadStarted
org.openqa.selenium.InvalidArgumentException: invalid argument: entry 0 of 'firstMatch' is invalid
from invalid argument: cannot parse capability: proxy
from invalid argument: Specifying 'socksProxy' requires an integer for 'socksVersion'
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'FS-LR-CONTROLLE', ip: '10.233.194.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_241'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x00D0A113+1548563]
Ordinal0 [0x00C8DDA1+1039777]
Ordinal0 [0x00C0E485+517253]
Ordinal0 [0x00B966F0+26352]
Ordinal0 [0x00B9A829+43049]
Ordinal0 [0x00B95D7F+23935]
Ordinal0 [0x00BBAB4E+174926]
Ordinal0 [0x00BBA79E+173982]
Ordinal0 [0x00BBB630+177712]
Ordinal0 [0x00BBB59D+177565]
Ordinal0 [0x00BB95FB+169467]
Ordinal0 [0x00BA160A+71178]
Ordinal0 [0x00BA2690+75408]
Ordinal0 [0x00BA2629+75305]
Ordinal0 [0x00CA71B7+1143223]
GetHandleVerifier [0x00DA2B46+507814]
GetHandleVerifier [0x00DA2864+507076]
GetHandleVerifier [0x00DA9F47+537511]
GetHandleVerifier [0x00DA3402+510050]
Ordinal0 [0x00C9F29C+1110684]
Ordinal0 [0x00CA938B+1151883]
Ordinal0 [0x00CA94F3+1152243]
Ordinal0 [0x00CA83F5+1147893]
BaseThreadInitThunk [0x77428764+36]
RtlGetAppContainerNamedObjectPath [0x777658ED+253]
RtlGetAppContainerNamedObjectPath [0x777658BD+205]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_241]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_241]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_241]
at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_241]
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126) ~[selenium-remote-driver-3.141.59.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_241]
at java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_241]
at java.util.stream.ReferencePipeline.findFirst(Unknown Source) ~[?:1.8.0_241]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) ~[selenium-remote-driver-3.141.59.jar:?]
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181) ~[selenium-chrome-driver-3.141.59.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:83) ~[jmeter-plugins-webdriver-3.3.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:21) ~[jmeter-plugins-webdriver-3.3.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:234) ~[jmeter-plugins-webdriver-3.3.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:221) ~[jmeter-plugins-webdriver-3.3.jar:?]
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:768) [ApacheJMeter_core.jar:?]
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:994) [jorphan.jar:5.2.1]
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:977) [jorphan.jar:5.2.1]
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:736) [ApacheJMeter_core.jar:?]
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:724) [ApacheJMeter_core.jar:?]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253) [ApacheJMeter_core.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]

My jmeter version is apache-jmeter-5.2.1 and using
jmeter-plugins-webdriver-3.3.jar
selenium-chrome-driver-3.141.59.jar

And I tried to use selenium-chrome-driver-4.0.0-alpha-6.jar but got a different error
2020-09-04 11:43:38,884 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[Existing Customer 1-1,6,main]
java.lang.NoClassDefFoundError: org/openqa/selenium/chromium/ChromiumDriver
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_241]
at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_241]
at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_241]
at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_241]
at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_241]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_241]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_241]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_241]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:83) ~[jmeter-plugins-webdriver-3.3.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:21) ~[jmeter-plugins-webdriver-3.3.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:234) ~[jmeter-plugins-webdriver-3.3.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:221) ~[jmeter-plugins-webdriver-3.3.jar:?]
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:768) ~[ApacheJMeter_core.jar:?]
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:994) ~[jorphan.jar:5.2.1]
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:977) ~[jorphan.jar:5.2.1]
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:736) ~[ApacheJMeter_core.jar:?]
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:724) ~[ApacheJMeter_core.jar:?]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253) ~[ApacheJMeter_core.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.chromium.ChromiumDriver
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
... 22 more


Do you have any idea on how to solve this issue or how to open a bug in jmeter-plugins.org?

Thanks in advance!
Katherine


Katherine Cheng

unread,
Sep 7, 2020, 2:47:45 PM9/7/20
to jmeter-plugins
Hi Group,

I think the issue may related to how JMeter-Plugin Manager integrates with Selenium/WebDriver. Can someone give me some thoughts on how to debug this issue more?

Thanks,
Katherine

Message has been deleted

Bala chandar

unread,
Apr 28, 2022, 3:29:38 AM4/28/22
to jmeter-plugins
+1 to above issue.

Any idea or suggestion on fixing this issue.

Nikhil Waykole

unread,
Dec 12, 2022, 9:28:19 PM12/12/22
to jmeter-plugins
Facing same issue.

Any idea or suggestion on fixing this issue

Liliane et Robert Bourgault du Coudray

unread,
Dec 13, 2022, 4:21:38 AM12/13/22
to jmeter-...@googlegroups.com
Can you uninstall webdriver 3.4 and then re-install latest version 4.6.0?
This version will come with the latest selenium 4.6 libs and could fix your issue.

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jmeter-plugins/0ca46198-3124-4130-bdc6-d32e9b7408f8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages