Issue 5260 in selenium: SafariDriver Throws NoSuchMethodError

14 views
Skip to first unread message

sele...@googlecode.com

unread,
Feb 28, 2013, 3:04:30 PM2/28/13
to selenium-develope...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5260 by etfloy...@gmail.com: SafariDriver Throws NoSuchMethodError
http://code.google.com/p/selenium/issues/detail?id=5260

Environment:
Mac OS X 10.7.5,
Safari Version 6.0.2 (7536.26.17)
selenium-java-2.31.0.jar,
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02-445-11M4107)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-445, mixed mode)

Code:
private WebDriver createSafariDriver() {
SafariDriver dvr = new SafariDriver(); //<--Exception occurs here
(WebScriptRunner.java:509)
return dvr;
}

Result: Browser starts but SeleniumDriver throws exception:
Feb 28, 2013 1:07:29 PM org.openqa.selenium.safari.SafariDriverServer
start
INFO: Server started on port 18715
(java.lang.NoSuchMethodError:
com.google.common.base.Platform.systemNanoTime()J)

java.lang.NoSuchMethodError:
com.google.common.base.Platform.systemNanoTime()J
at com.google.common.base.Ticker$1.read(Ticker.java:60)
at com.google.common.base.Stopwatch.start(Stopwatch.java:114)
at
org.openqa.selenium.safari.SafariDriverCommandExecutor.start(SafariDriverCommandExecutor.java:101)
at
org.openqa.selenium.safari.SafariDriver.startClient(SafariDriver.java:71)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:57)
at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:52)
at
com.tsys.seleniumrunner.WebScriptRunner.createSafariDriver(WebScriptRunner.java:509)
etc...

Browser instance remains with this on page:
SafariDriver Client

[ 0.009s] [safaridriver.client] Requesting connection at
ws://localhost:4063...
[ 0.040s] [safaridriver.client] Request acknowledged; connecting...

Any ideas?

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

sele...@googlecode.com

unread,
Feb 28, 2013, 3:48:48 PM2/28/13
to selenium-develope...@googlegroups.com
Updates:
Status: NeedsClarification
Labels: Lang-Java

Comment #1 on issue 5260 by barancev: SafariDriver Throws NoSuchMethodError
http://code.google.com/p/selenium/issues/detail?id=5260

What's your classpath? Does it include guava or google-collections? Which
versions?

sele...@googlecode.com

unread,
Feb 28, 2013, 3:56:31 PM2/28/13
to selenium-develope...@googlegroups.com

Comment #2 on issue 5260 by etfloy...@gmail.com: SafariDriver Throws
NoSuchMethodError
http://code.google.com/p/selenium/issues/detail?id=5260

That was it! Indirect jar conflict: the project build path had a dependency
on another Eclipse project which included an older version of Guava in its
classpath. When I removed the dependency, the error went away. Thank you!

sele...@googlecode.com

unread,
Feb 28, 2013, 3:58:01 PM2/28/13
to selenium-develope...@googlegroups.com
Updates:
Status: Invalid
Labels: -Status-Untriaged

Comment #3 on issue 5260 by barancev: SafariDriver Throws NoSuchMethodError
http://code.google.com/p/selenium/issues/detail?id=5260

(No comment was entered for this change.)

sele...@googlecode.com

unread,
Feb 25, 2015, 2:18:54 AM2/25/15
to selenium-develope...@googlegroups.com

Comment #4 on issue 5260 by saarrthi...@gmail.com: SafariDriver Throws
NoSuchMethodError
https://code.google.com/p/selenium/issues/detail?id=5260

I don't found this kind of dependance or conflict in my class path, hence
this error occurred. Any clue ?
Reply all
Reply to author
Forward
0 new messages