GVKun编程网logo

UnreachableBrowserException Caused by: java.lang.NullPointerException when“webdriver.firefox.marionette” is used

16

对于UnreachableBrowserExceptionCausedby:java.lang.NullPointerExceptionwhen“webdriver.firefox.marionett

对于UnreachableBrowserException Caused by: java.lang.NullPointerException when“webdriver.firefox.marionette” is used感兴趣的读者,本文将会是一篇不错的选择,并为您提供关于Android 编译错误 [kapt] An exception occurred: java.lang.NullPointerException、Bitbucket 管道上的 Symfony Panther:FacebookWebDriverExceptionUnknownErrorException:未知错误:net::ERR_CONNECTION_REFUSED、Caused by: java.lang.IllegalStateException: getWriter() has already been called for this response、Caused by: java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFilteringException的有用信息。

本文目录一览:

UnreachableBrowserException Caused by: java.lang.NullPointerException when“webdriver.firefox.marionette” is used

UnreachableBrowserException Caused by: java.lang.NullPointerException when“webdriver.firefox.marionette” is used

我正在使用Selenium 3.4.0,Java 1.8和Firefox 54.0.1(64位)。尝试打开Firefox链接时出现空指针异常。当我使用
硒/ Python的它工作正常,但我想从这个大师运行的代码99页(https://www.guru99.com/first-webdriver-script.html).I “VE搜索看看如果其他人有这个问题,但我找不到任何解决方案。我得到以下输出:

1501246654252   addons.manager  DEBUG   Application has been upgraded1501246654291   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]1501246654293   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]1501246654297   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm1501246654299   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm1501246654299   addons.manager  DEBUG   Starting provider: XPIProvider1501246654300   addons.xpi  DEBUG   startup1501246654301   addons.xpi  INFO    Mapping fxdriver@googlecode.com to C:\Users\CHRISG~1\AppData\Local\Temp\anonymous8191426632770324153webdriver-profile\extensions\fxdriver@googlecode.com1501246654301   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on ID: C:\Users\CHRISG~1\AppData\Local\Temp\anonymous8191426632770324153webdriver-profile\extensions\webdriver-staging1501246654301   addons.xpi  INFO    Removing all system add-on upgrades.1501246654301   addons.xpi  INFO    SystemAddonInstallLocation directory is missing1501246654302   addons.xpi  INFO    Mapping aushelper@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi1501246654303   addons.xpi  INFO    Mapping e10srollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi1501246654303   addons.xpi  INFO    Mapping firefox@getpocket.com to C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi1501246654303   addons.xpi  INFO    Mapping screenshots@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi1501246654304   addons.xpi  INFO    Mapping webcompat@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi1501246654305   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi1501246654305   addons.xpi  DEBUG   Skipping unavailable install location app-system-share1501246654305   addons.xpi  DEBUG   Skipping unavailable install location app-system-local1501246654306   addons.xpi  DEBUG   checkForChanges1501246654306   addons.xpi  INFO    SystemAddonInstallLocation directory is missing1501246654307   addons.xpi  DEBUG   Loaded add-on state from prefs: {}1501246654308   addons.xpi  DEBUG   New add-on fxdriver@googlecode.com in app-profile1501246654308   addons.xpi  DEBUG   getModTime: Recursive scan of fxdriver@googlecode.com1501246654313   addons.xpi  DEBUG   New add-on aushelper@mozilla.org in app-system-defaults1501246654313   addons.xpi  DEBUG   getModTime: Recursive scan of aushelper@mozilla.org1501246654314   addons.xpi  DEBUG   New add-on e10srollout@mozilla.org in app-system-defaults1501246654315   addons.xpi  DEBUG   getModTime: Recursive scan of e10srollout@mozilla.org1501246654315   addons.xpi  DEBUG   New add-on firefox@getpocket.com in app-system-defaults1501246654315   addons.xpi  DEBUG   getModTime: Recursive scan of firefox@getpocket.com1501246654315   addons.xpi  DEBUG   New add-on screenshots@mozilla.org in app-system-defaults1501246654316   addons.xpi  DEBUG   getModTime: Recursive scan of screenshots@mozilla.org1501246654316   addons.xpi  DEBUG   New add-on webcompat@mozilla.org in app-system-defaults1501246654316   addons.xpi  DEBUG   getModTime: Recursive scan of webcompat@mozilla.org1501246654317   addons.xpi  DEBUG   New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global1501246654317   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}1501246654317   addons.xpi  DEBUG   getInstallState changed: true, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\CHRISG~1\\AppData\\Local\\Temp\\anonymous8191426632770324153webdriver-profile\\extensions\\fxdriver@googlecode.com","st":1501246654037,"mt":1501246653985}},"app-system-defaults":{"aushelper@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\aushelper@mozilla.org.xpi","st":1498667065000},"e10srollout@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\e10srollout@mozilla.org.xpi","st":1498667065000},"firefox@getpocket.com":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\firefox@getpocket.com.xpi","st":1498667066000},"screenshots@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\screenshots@mozilla.org.xpi","st":1498667067000},"webcompat@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","st":1498667066000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1498667065000}}}1501246654324   addons.xpi-utils    DEBUG   Opening XPI database C:\Users\CHRISG~1\AppData\Local\Temp\anonymous8191426632770324153webdriver-profile\extensions.json1501246654326   addons.xpi-utils    DEBUG   New add-on fxdriver@googlecode.com installed in app-profile*** Blocklist::_loadBlocklistFromFile: blocklist is disabled1501246654340   addons.xpi  WARN    Add-on fxdriver@googlecode.com is not correctly signed.1501246654340   addons.xpi  WARN    Add-on fxdriver@googlecode.com is not correctly signed.1501246654343   DeferredSave.extensions.json    DEBUG   Save changes1501246654343   addons.xpi-utils    DEBUG   New add-on aushelper@mozilla.org installed in app-system-defaults1501246654346   DeferredSave.extensions.json    DEBUG   Starting timer1501246654349   DeferredSave.extensions.json    DEBUG   Save changes1501246654349   addons.xpi-utils    DEBUG   New add-on e10srollout@mozilla.org installed in app-system-defaults1501246654354   DeferredSave.extensions.json    DEBUG   Save changes1501246654355   addons.xpi-utils    DEBUG   New add-on firefox@getpocket.com installed in app-system-defaults1501246654359   DeferredSave.extensions.json    DEBUG   Save changes1501246654359   addons.xpi-utils    DEBUG   New add-on screenshots@mozilla.org installed in app-system-defaults1501246654365   DeferredSave.extensions.json    DEBUG   Save changes1501246654365   addons.xpi-utils    DEBUG   New add-on webcompat@mozilla.org installed in app-system-defaults1501246654369   DeferredSave.extensions.json    DEBUG   Save changes1501246654370   addons.xpi-utils    DEBUG   New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global1501246654373   DeferredSave.extensions.json    DEBUG   Starting write1501246654379   DeferredSave.extensions.json    DEBUG   Save changes1501246654380   DeferredSave.extensions.json    DEBUG   Data changed while write in progress1501246654380   addons.manager  DEBUG   Registering startup change ''installed'' for fxdriver@googlecode.com1501246654380   addons.xpi-utils    DEBUG   Make addon app-profile:fxdriver@googlecode.com visible1501246654381   DeferredSave.extensions.json    DEBUG   Save changes1501246654381   addons.manager  DEBUG   Registering startup change ''installed'' for aushelper@mozilla.org1501246654390   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi1501246654394   addons.xpi  DEBUG   Calling bootstrap method install on aushelper@mozilla.org version 2.01501246654395   addons.xpi-utils    DEBUG   Make addon app-system-defaults:aushelper@mozilla.org visible1501246654395   DeferredSave.extensions.json    DEBUG   Save changes1501246654395   addons.manager  DEBUG   Registering startup change ''installed'' for e10srollout@mozilla.org1501246654396   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi1501246654399   addons.xpi  DEBUG   Calling bootstrap method install on e10srollout@mozilla.org version 1.501501246654400   addons.xpi-utils    DEBUG   Make addon app-system-defaults:e10srollout@mozilla.org visible1501246654400   DeferredSave.extensions.json    DEBUG   Save changes1501246654400   addons.manager  DEBUG   Registering startup change ''installed'' for firefox@getpocket.com1501246654401   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi1501246654405   addons.xpi  DEBUG   Calling bootstrap method install on firefox@getpocket.com version 1.0.51501246654405   addons.xpi-utils    DEBUG   Make addon app-system-defaults:firefox@getpocket.com visible1501246654406   DeferredSave.extensions.json    DEBUG   Save changes1501246654406   addons.manager  DEBUG   Registering startup change ''installed'' for screenshots@mozilla.org1501246654407   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi1501246654410   addons.xpi  DEBUG   Calling bootstrap method install on screenshots@mozilla.org version 6.6.01501246654410   addons.xpi-utils    DEBUG   Make addon app-system-defaults:screenshots@mozilla.org visible1501246654410   DeferredSave.extensions.json    DEBUG   Save changes1501246654410   addons.manager  DEBUG   Registering startup change ''installed'' for webcompat@mozilla.org1501246654411   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi1501246654413   addons.xpi  DEBUG   Calling bootstrap method install on webcompat@mozilla.org version 1.11501246654413   addons.xpi-utils    DEBUG   Make addon app-system-defaults:webcompat@mozilla.org visible1501246654413   DeferredSave.extensions.json    DEBUG   Save changes1501246654414   addons.xpi-utils    DEBUG   Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible1501246654414   DeferredSave.extensions.json    DEBUG   Save changes1501246654414   addons.xpi  DEBUG   Updating XPIState for {"id":"fxdriver@googlecode.com","syncGUID":"{284a66e3-05a6-4d03-b43d-a92a5f93e2f7}","location":"app-profile","version":"3.4.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox WebDriver","description":"WebDriver implementation for Firefox","creator":"Simon Stewart","homepageURL":null},"visible":true,"active":false,"userDisabled":false,"appDisabled":true,"descriptor":"C:\\Users\\CHRISG~1\\AppData\\Local\\Temp\\anonymous8191426632770324153webdriver-profile\\extensions\\fxdriver@googlecode.com","installDate":1501246654037,"updateDate":1501246654037,"applyBackgroundUpdates":1,"bootstrap":false,"skinnable":false,"size":3303362,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"48.0"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":null},{"os":"Linux","abi":null}],"multiprocessCompatible":false,"signedState":0,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}1501246654415   addons.xpi  DEBUG   Updating XPIState for {"id":"aushelper@mozilla.org","syncGUID":"{a337c938-f101-467f-8334-642c2957ef77}","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":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\aushelper@mozilla.org.xpi","installDate":1498667065000,"updateDate":1498667065000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8488,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}1501246654415   addons.xpi  DEBUG   getModTime: Recursive scan of aushelper@mozilla.org1501246654415   addons.xpi  DEBUG   Updating XPIState for {"id":"e10srollout@mozilla.org","syncGUID":"{253d1e2b-244f-48a3-8215-48fd1ea043b0}","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":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\e10srollout@mozilla.org.xpi","installDate":1498667065000,"updateDate":1498667065000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":12519,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}1501246654415   addons.xpi  DEBUG   getModTime: Recursive scan of e10srollout@mozilla.org1501246654416   addons.xpi  DEBUG   Updating XPIState for {"id":"firefox@getpocket.com","syncGUID":"{82e97246-464d-494a-92d5-df6243a967d5}","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":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\firefox@getpocket.com.xpi","installDate":1498667066000,"updateDate":1498667066000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":913906,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}1501246654416   addons.xpi  DEBUG   getModTime: Recursive scan of firefox@getpocket.com1501246654417   addons.xpi  DEBUG   Updating XPIState for {"id":"screenshots@mozilla.org","syncGUID":"{88407b9c-4ff8-4d68-9615-aa613dbe559f}","location":"app-system-defaults","version":"6.6.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":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\screenshots@mozilla.org.xpi","installDate":1498667067000,"updateDate":1498667067000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":716271,"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}1501246654417   addons.xpi  DEBUG   getModTime: Recursive scan of screenshots@mozilla.org1501246654418   addons.xpi  DEBUG   Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{21466d10-4f5e-4882-9e6b-1d1c096fc15b}","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":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","installDate":1498667066000,"updateDate":1498667066000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":9006,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}1501246654418   addons.xpi  DEBUG   getModTime: Recursive scan of webcompat@mozilla.org1501246654419   addons.xpi  DEBUG   Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{374c68bf-b5ce-4e4f-a6c4-f1532a743336}","location":"app-global","version":"54.0.1","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":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1498667065000,"updateDate":1498667065000,"applyBackgroundUpdates":1,"skinnable":true,"size":8207,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.0.1"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}1501246654420   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}1501246654444   DeferredSave.extensions.json    DEBUG   Save changes1501246654444   addons.xpi  DEBUG   Updating database with changes to installed add-ons1501246654444   addons.xpi-utils    DEBUG   Updating add-on states1501246654445   addons.xpi-utils    DEBUG   Writing add-ons list1501246654452   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi1501246654452   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 2.01501246654453   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi1501246654454   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.501501246654455   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi1501246654456   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.51501246654456   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi1501246654457   addons.xpi  DEBUG   Calling bootstrap method startup on screenshots@mozilla.org version 6.6.01501246654457   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi1501246654458   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.11501246654461   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider1501246654462   addons.manager  DEBUG   Provider finished startup: XPIProvider1501246654462   addons.manager  DEBUG   Starting provider: LightweightThemeManager1501246654462   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager1501246654462   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager1501246654462   addons.manager  DEBUG   Starting provider: GMPProvider1501246654467   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider1501246654467   addons.manager  DEBUG   Provider finished startup: GMPProvider1501246654467   addons.manager  DEBUG   Starting provider: PluginProvider1501246654467   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider1501246654467   addons.manager  DEBUG   Provider finished startup: PluginProvider1501246654468   addons.manager  DEBUG   Completed startup sequence1501246654778   addons.manager  DEBUG   Starting provider: <unnamed-provider>1501246654778   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>1501246654779   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>1501246654937   DeferredSave.extensions.json    DEBUG   Write succeeded1501246654937   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 191501246654937   DeferredSave.extensions.json    DEBUG   Starting timer1501246654951   addons.repository   DEBUG   No addons.json found.1501246654951   DeferredSave.addons.json    DEBUG   Save changes1501246654954   DeferredSave.addons.json    DEBUG   Starting timer1501246654976   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider1501246654976   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider1501246654976   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider1501246654979   DeferredSave.extensions.json    DEBUG   Starting write1501246655004   DeferredSave.addons.json    DEBUG   Starting write1501246655006   DeferredSave.extensions.json    DEBUG   Write succeeded1501246655021   DeferredSave.addons.json    DEBUG   Write succeeded[GPU 7220] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.Build info: version: ''unknown'', revision: ''unknown'', time: ''unknown''System info: host: ''CHRIS-PC'', ip: ''192.xxx.x.xxx'', os.name: ''Windows 10'', os.arch: ''amd64'', os.version: ''10.0'', java.version: ''1.8.0_141''Driver info: driver.version: FirefoxDriver    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)    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:104)    at newpackage.MyClass.main(MyClass.java:12)Caused by: java.lang.NullPointerException    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)    at org.openqa.selenium.firefox.XpiDriverService.start(XpiDriverService.java:94)    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:78)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)    ... 7 more

答案1

小编典典

这是您问题的答案:

The error UnreachableBrowserException: Could not start a new session.Possible causes are invalid address of the remote server or browser start-upfailure says it all.

As per guru99.com it is
mentioned to use webdriver.firefox.marionette within System.setProperty.
In Selenium 3.x we would be using webdriver.gecko.driver instead.

So consider changing the line of code:

System.setProperty("webdriver.firefox.marionette","C:\\geckodriver.exe");

to:

System.setProperty("webdriver.gecko.driver","C:\\your_directory\\geckodriver.exe");

Let me know if this Answers your Question.

Android 编译错误 [kapt] An exception occurred: java.lang.NullPointerException

Android 编译错误 [kapt] An exception occurred: java.lang.NullPointerException

原文链接:https://blog.csdn.net/fomin_zhu/article/details/86687473

去掉app的build.gradle中的 kapt "com.android.databinding:compiler:3.1.4"

今天在看MVVM架构的demo时,准备跑起来看看时,出现了这个错误e: [kapt] An exception occurred: java.lang.NullPointerException,当时是更新了kotlin版本,就想着把kotlin版本回退,之前是1.2.50,结果编译还是出错

ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
root project 'MVVM-Android-master' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50
Update plugins
Affected Modules: app

意思是我的Android Gradle插件版本过高,我用的是3.5.0,这个问题就是kotlin版本太低了或者是gradle版本太高了。

改Gradle版本是不能改的,不想一退再退,还是将kotlin版本改到了1.3.41,将An exception occurred:java.lang.NullPointerException拿去问小度,才发现是databinding不再需要在gradle文件中声明其注释处理器依赖项,因为数据绑定能够解析其依赖性(引用原文的解释)。

去掉app的build.gradle中的 kapt "com.android.databinding:compiler:3.1.4"就行了

在app的build.gradle中有下面的属性就能使用databingding了
android{
   dataBinding{
     enabled = true
   }
}

 

 

Bitbucket 管道上的 Symfony Panther:FacebookWebDriverExceptionUnknownErrorException:未知错误:net::ERR_CONNECTION_REFUSED

Bitbucket 管道上的 Symfony Panther:FacebookWebDriverExceptionUnknownErrorException:未知错误:net::ERR_CONNECTION_REFUSED

如何解决Bitbucket 管道上的 Symfony Panther:Facebook\WebDriver\Exception\UnknownErrorException:未知错误:net::ERR_CONNECTION_REFUSED?

我们有一个基于 Symfony Panther 的功能测试,我们希望在每次提交后在 Bitbucket 管道中自动运行它。该测试可以在本地运行而没有任何问题,但在 Bitbucket 管道中它会引发以下异常:

Facebook\WebDriver\Exception\UnkNownErrorException:未知错误:net::ERR_CONNECTION_REFUSED

PHP 致命错误:未捕获的 Facebook\WebDriver\Exception\WebDriverCurlException:为 http DELETE 抛出 Curl 错误到 /session/ad5457c2f917dacfcd36b8719c20aed0 无法连接到 127.0.0.1 端口 9515:连接在 /opt/atlassian/pipelines/agent/build/vendor/PHP-webdriver/webdriver/lib/Remote/HttpCommandExecutor.PHP:332 中被拒绝

API_URL : https://localhost

任何解决问题的想法将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

Caused by: java.lang.IllegalStateException: getWriter() has already been called for this response

Caused by: java.lang.IllegalStateException: getWriter() has already been called for this response

异常堆栈:看着是一个响应流被再次使用

Caused by: java.lang.IllegalStateException: getWriter() has already been called for this response
	at org.apache.catalina.connector.Response.getoutputStream(Response.java:550) ~[tomcat-embed-core-9.0.53.jar:9.0.53]
	at org.apache.catalina.connector.ResponseFacade.getoutputStream(ResponseFacade.java:210) ~[tomcat-embed-core-9.0.53.jar:9.0.53]
	at javax.servlet.ServletResponseWrapper.getoutputStream(ServletResponseWrapper.java:105) ~[tomcat-embed-core-9.0.53.jar:4.0.FR]
	at org.springframework.http.server.ServletServerHttpResponse.getBody(ServletServerHttpResponse.java:97) ~[spring-web-5.3.10.jar:5.3.10]
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:422) ~[spring-web-5.3.10.jar:5.3.10]
	at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:104) ~[spring-web-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:290) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.mvc.method.annotation.httpentityMethodProcessor.handleReturnValue(httpentityMethodProcessor.java:219) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:78) ~[spring-web-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.mvc.method.annotation.ServletinvocableHandlerMethod.invokeAndHandle(ServletinvocableHandlerMethod.java:135) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.dispatcherServlet.dodispatch(dispatcherServlet.java:1067) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.dispatcherServlet.doService(dispatcherServlet.java:963) ~[spring-webmvc-5.3.10.jar:5.3.10]
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.10.jar:5.3.10]
	... 35 common frames omitted

  

 

找了半天检查了所有拦截器都没发现为什么,后来发现  统一异常处理 HandlerExceptionResolver,在用响应流写了异常信息jjson 以后, 方法返回值返回了一个null,返回null 的时候 spring会返回一个默认值。

处理办法发:return new ModelAndView();

 

    @Override
    public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {
        System.out.println( "异常:" + ex );
        try {
            response.setCharacterEncoding("UTF-8");
            response.setContentType("application/json; charset=utf-8");

            PrintWriter  writer = response.getWriter();
            writer.write("{\"=exmsg\":"+  ex.getMessage() +"}" );
            writer.flush();
        } catch (IOException e) {
            e.printstacktrace();
        }

        //不能返回null,不要spring或默认返回一个
        return new ModelAndView();
        //return null;
    }

  

Caused by: java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFilteringException

Caused by: java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFilteringException

重装 maven 就可以解决该问题...

关于UnreachableBrowserException Caused by: java.lang.NullPointerException when“webdriver.firefox.marionette” is used的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于Android 编译错误 [kapt] An exception occurred: java.lang.NullPointerException、Bitbucket 管道上的 Symfony Panther:FacebookWebDriverExceptionUnknownErrorException:未知错误:net::ERR_CONNECTION_REFUSED、Caused by: java.lang.IllegalStateException: getWriter() has already been called for this response、Caused by: java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFilteringException的相关信息,请在本站寻找。

本文标签: