Issue 5808 in selenium: ERROR:java.lang.NoSuchMethodError: org.openqa.selenium.remote.ErrorCodes.toState(I)Ljava/lang/String;

178 views
Skip to first unread message

sele...@googlecode.com

unread,
Jun 20, 2013, 2:51:52 AM6/20/13
to selenium-develope...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5808 by anne.mat...@gmail.com: ERROR:java.lang.NoSuchMethodError:
org.openqa.selenium.remote.ErrorCodes.toState(I)Ljava/lang/String;
http://code.google.com/p/selenium/issues/detail?id=5808

Hi ,

I am trying to execute my selenium test case using Maven. I have added all
the dependencies in my pom.xml file. But when i execute mvn test, the
browser launches and gives me the below error

java.lang.NoSuchMethodError:
org.openqa.selenium.remote.ErrorCodes.toState(I)Ljava/lang/String;
at
org.openqa.selenium.remote.HttpCommandExecutor.createResponse(HttpCommandExecutor.java:492)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:302)
at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:161)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:107)
at com.test.TestSel.beforeClass(TestSel.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

This happens with Firefox and Chrome

What steps will reproduce the problem?
1.Add the server-java and other libraries to your pom.xml file
2.Run mvn test


What is the expected output? What do you see instead?
The browser window launches but does not execute the script

Selenium version:
OS:Windows 7
Browser:Firefox and chrome
Browser version:FF 21


regards
Anne


Attachments:
pom.xml 9.3 KB

--
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,
Jul 3, 2013, 6:20:44 PM7/3/13
to selenium-develope...@googlegroups.com
Updates:
Status: NeedsClarification

Comment #1 on issue 5808 by barancev: ERROR:java.lang.NoSuchMethodError:
org.openqa.selenium.remote.ErrorCodes.toState(I)Ljava/lang/String;
http://code.google.com/p/selenium/issues/detail?id=5808

Why do you have ouitdated (2.0b1) dependencies in the pom file?

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-common</artifactId>
<version>2.0b1</version>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-common</artifactId>
<version>2.0b1</version>
</dependency>

sele...@googlecode.com

unread,
Aug 8, 2013, 7:20:13 PM8/8/13
to selenium-develope...@googlegroups.com
Updates:
Status: Invalid
Labels: -Status-Untriaged

Comment #2 on issue 5808 by barancev: ERROR:java.lang.NoSuchMethodError:
org.openqa.selenium.remote.ErrorCodes.toState(I)Ljava/lang/String;
http://code.google.com/p/selenium/issues/detail?id=5808

Closing the issue as there is not enough information provided to reproduce
it.
Reply all
Reply to author
Forward
0 new messages