Open Venorcis opened 11 years ago
You should take a look at the log of the java process that starts the selenium-server.jar. It can also be started with debug/verbose options IIRC.
On Mon, Nov 18, 2013 at 3:26 PM, Venorcis notifications@github.com wrote:
When running any PHPUnit Selenium2TestCase on my Linux server (using latest firefox/xvfb combination and of course fully up-to-date selenium/phpunit/phpunit-selenium), I instantly get the following error: "PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Bad request Command duration or timeout: 30 milliseconds Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00' System info: host: 'intern.chainels.com', ip: '176.58.112.133', os.name: 'Linux', os.arch: 'i386', os.version: '3.11.6-x86-linode54', java.version: '1.7.0_45' Driver info: org.openqa.selenium.firefox.FirefoxDriver"
I cannot find any other error information, and the created firefox process remains running. Moreover, exactly the same tests using exactly the same versions of everything but then on Windows does work like expected.
How can I solve this error or get more information on the exception? Thanks in advance for any help!
— Reply to this email directly or view it on GitHubhttps://github.com/sebastianbergmann/phpunit-selenium/issues/274 .
Giorgio Sironi (@giorgiosironi) http://giorgiosironi.com http://giorgiosironi.blogspot.com/
The selenium server log gives me this large and unhelpful (to me) output:
"10:29:22.831 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00'
System info: host: 'intern.chainels.com', ip: '176.58.112.133', os.name: 'Linux', os.arch: 'i386', os.version: '3.11.6-x86-linode54', java.version: '1.7.0_45'
Driver info: driver.version: unknown
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:176)
at org.openqa.selenium.remote.server.DefaultSession.
Command duration or timeout: 286 milliseconds
Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00'
System info: host: 'intern.chainels.com', ip: '176.58.112.133', os.name: 'Linux', os.arch: 'i386', os.version: '3.11.6-x86-linode54', java.version: '1.7.0_45'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at org.openqa.selenium.remote.RemoteWebDriver.
The output of my original post was already done using verbose and/or debug settings
I have just updated to Selenium Server 2.38 (on CentOS 6.5 x86), but the problem persists. Any help would be much appreciated! -Vincent
PS. Some more stack trace that might help: 18:48:05 [exec] Stack trace: 18:48:05 [exec] #0 /usr/share/pear/PHPUnit/Extensions/Selenium2TestCase/Driver.php(72): PHPUnit_Extensions_Selenium2TestCase_Driver->curl('POST', Object(PHPUnit_Extensions_Selenium2TestCase_URL), Array) 18:48:05 [exec] #1 /usr/share/pear/PHPUnit/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php(67): PHPUnit_Extensions_Selenium2TestCase_Driver->startSession(Array, Object(PHPUnit_Extensions_Selenium2TestCase_URL)) 18:48:05 [exec] #2 /usr/share/pear/PHPUnit/Extensions/Selenium2TestCase.php(244): PHPUnit_ExtensionsSelenium2TestCase in /usr/share/pear/PHPUnit/Extensions/Selenium2TestCase/Driver.php on line 143
And again this issue persist with Selenium 2.40. Any help would be much appreciated!
I am also getting same issue with Selenium 2.45. Any help would be much appreciated!
When running any PHPUnit Selenium2TestCase on my Linux server (using latest firefox/xvfb combination and of course fully up-to-date selenium/phpunit/phpunit-selenium), I instantly get the following error: "PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Bad request Command duration or timeout: 30 milliseconds Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00' System info: host: 'intern.chainels.com', ip: '176.58.112.133', os.name: 'Linux', os.arch: 'i386', os.version: '3.11.6-x86-linode54', java.version: '1.7.0_45' Driver info: org.openqa.selenium.firefox.FirefoxDriver"
I cannot find any other error information, and the created firefox process remains running. Moreover, exactly the same tests using exactly the same versions of everything but then on Windows does work like expected.
How can I solve this error or get more information on the exception? Thanks in advance for any help!