简体   繁体   English

树莓派 selenium chromedriver "/usr/bin/chromedriver: 5: 语法错误: word unexpected (expecting ")")"

[英]Raspberry Pi selenium chromedriver "/usr/bin/chromedriver: 5: Syntax error: word unexpected (expecting ")")"

I want to run my java standalone jar on my raspberry pi (Model 3B+).我想在我的树莓派(型号 3B+)上运行我的 java 独立 jar。 It depends on seleneium, so it needs chromedriver.它依赖于硒,所以它需要chromedriver。 I have installed java 14 and also chromedrivers version 95.0.4638.78-rpt6 via我已经通过

sudo apt-get install chromium-chromedriver

When I start my application now, I get this log:当我现在启动我的应用程序时,我得到了这个日志:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail                                                    s.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG                                                     (file:/home/pi/App.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.j                                                    cajce.provider.drbg.DRBG
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect                                                    ive access operations
WARNING: All illegal access operations will be denied in a future release
/usr/bin/chromedriver: 5: Syntax error: word unexpected (expecting ")")

What does the error code Syntax error: word unexpected (expecting ")") says?错误代码Syntax error: word unexpected (expecting ")")是什么意思? Whats the problem?有什么问题? And how to fix?以及如何解决?

The error was due to the request failing as the site was not online.该错误是由于请求失败,因为该站点不在线。 I also faced the same problem before.我之前也遇到过同样的问题。 For example, I asked chrome to open a URL but it failed (not online) and so this useless error was thrown.例如,我要求 chrome 打开一个 URL 但它失败了(不在线),所以抛出了这个无用的错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WebDriverException:消息:服务 /usr/lib/chromium-browser/chromedriver 在 Raspberry-Pi 和 Selenium 上意外退出 - WebDriverException: Message: Service /usr/lib/chromium-browser/chromedriver unexpectedly exited on Raspberry-Pi with ChromeDriver and Selenium 在 raspberry Pi 3 上使用带有 chromedriver 的 selenium 时出错 - Raspbian Jessie - Error using selenium with chromedriver on raspberry Pi 3 - Raspbian Jessie 在 Raspberry Pi 4 上使用 Chromedriver 运行 Selenium 时出现问题 - Issues running Selenium with Chromedriver on Raspberry Pi 4 在我的覆盆子pi上运行无头chromedriver时,Selenium崩溃了 - Selenium crashing when running headless chromedriver on my raspberry pi Selenium 不会在没有 root 权限的情况下运行显示 WebDriverException:消息:服务 /usr/bin/chromedriver 意外退出错误 - Selenium won't run without root privileges shows WebDriverException: Message: Service /usr/bin/chromedriver unexpectedly exited error WebSocket握手期间出错:意外的响应代码:使用ChromeDriver和Selenium时出现200 - Error during WebSocket handshake: Unexpected response code: 200 with ChromeDriver and Selenium selenium.common.exceptions.WebDriverException:消息:Linux 上的 ChromeDriver Selenium Python 服务 /usr/bin/google-chrome 意外退出 - selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/google-chrome unexpectedly exited with ChromeDriver Selenium Python on Linux 无法从 Docker 执行 Chromdriver ( /usr/local/bin/chromedriver ) - Could not Execute the Chromdriver from the Docker ( /usr/local/bin/chromedriver ) Selenium chromedriver error_TyperError - Selenium chromedriver error_TyperError Selenium Chromedriver错误代码:3221225477 - Selenium Chromedriver error code : 3221225477
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM