Re: WebDriver Status Code 13: UnknownError

866 views
Skip to first unread message

JS

unread,
Jun 25, 2012, 11:02:31 AM6/25/12
to seleniu...@googlegroups.com
From the Debug Log
 
07:21:19.481 DEBUG [2028454631] org.openqa.jetty.http.HttpServer - Try HttpContext[/wd,/wd],0
07:21:19.481 DEBUG [2028454631] org.openqa.jetty.http.HttpContext - RestishHandler org.openqa.jetty.jetty.servlet.ServletHandler@72bb2127
07:21:19.488 DEBUG [2028454631] org.openqa.jetty.jetty.servlet.ServletHandler - servlet=/hub/*=WebDriver remote server
07:21:19.488 DEBUG [2028454631] org.openqa.jetty.jetty.servlet.ServletHandler - session=null
07:21:19.752 INFO [2028454631] org.openqa.selenium.remote.server.DriverServlet - Executing: [new session: {platform=ANY, version=9, browserVersion=9, browser=firefox, browserName=htmlunit}] at URL: /session)
07:21:21.074 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.css.CSSPrimitiveValue
07:21:21.341 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.css.CSSValue
07:21:21.366 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.DOMException
07:21:21.376 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.DOMParser
07:21:21.457 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLAudioElement
07:21:21.489 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLCanvasElement
07:21:21.652 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLSourceElement
07:21:21.714 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLVideoElement
07:21:21.752 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.MimeType
07:21:21.791 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.OfflineResourceList
07:21:21.873 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.Plugin
07:21:21.981 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLDocument
07:21:22.006 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest
07:21:22.013 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest
07:21:22.026 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.xml.XMLSerializer
07:21:22.035 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.XPathNSResolver
07:21:22.048 DEBUG [1924865831] com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration - browser tag not yet handled for class com.gargoylesoftware.htmlunit.javascript.host.XPathResult
07:21:22.097 WARN [2028454631] org.openqa.selenium.remote.server.DriverServlet - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 17:28:14'
System info: os.name: 'Linux', os.arch: 'x86_64', os.version: '2.6.18-028stab099.3', java.version: '1.5.0'
Driver info: driver.version: unknown
   at java.util.concurrent.FutureTask$Sync.innerGet(libgcj.so.10)
   at java.util.concurrent.FutureTask.get(libgcj.so.10)
   at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:157)
   at org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSession.java:111)
   at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:88)
   at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:91)
   at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:61)
   at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:200)
   at org.openqa.selenium.remote.server.JsonHttpRemoteConfig.handleRequest(JsonHttpRemoteConfig.java:190)
   at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:201)
   at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:167)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:139)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
   at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
   at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
   at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
   at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
   at org.openqa.jetty.http.HttpServer.service(HttpServer.java:914)
   at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
   at org.openqa.jetty.http.HttpServer.service(HttpServer.java:914)
   at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
   at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
   at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
   at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
   at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
   at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 17:28:14'
System info: os.name: 'Linux', os.arch: 'x86_64', os.version: '2.6.18-028stab099.3', java.version: '1.5.0'
Driver info: driver.version: unknown
   at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:67)
   at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:51)
   at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:196)
   at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
   at java.util.concurrent.FutureTask$Sync.innerRun(libgcj.so.10)
   at java.util.concurrent.FutureTask.run(libgcj.so.10)
   at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:150)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Constructor.newInstance(libgcj.so.10)
   at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:57)
   ...9 more
Caused by: java.lang.IllegalStateException: Failure initializing default SSL context
   at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:211)
   at org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
   at org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
   at com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient(HttpWebConnection.java:505)
   at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClient(HttpWebConnection.java:470)
   at com.gargoylesoftware.htmlunit.HttpWebConnection.setUseInsecureSSL(HttpWebConnection.java:659)
   at com.gargoylesoftware.htmlunit.WebClient.setUseInsecureSSL(WebClient.java:1085)
   at org.openqa.selenium.htmlunit.HtmlUnitDriver.createWebClient(HtmlUnitDriver.java:263)
   at org.openqa.selenium.htmlunit.HtmlUnitDriver.<init>(HtmlUnitDriver.java:129)
   at org.openqa.selenium.htmlunit.HtmlUnitDriver.<init>(HtmlUnitDriver.java:185)
   at java.lang.reflect.Constructor.newInstance(libgcj.so.10)
   ...10 more
Caused by: java.lang.IllegalStateException
   at gnu.javax.net.ssl.provider.X509KeyManagerFactory.engineGetKeyManagers(libgcj.so.10)
   at javax.net.ssl.KeyManagerFactory.getKeyManagers(libgcj.so.10)
   at org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:187)
   at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
   ...20 more
07:21:22.129 WARN [2028454631] org.openqa.selenium.remote.server.DriverServlet - Exception: null
07:21:22.157 DEBUG [2028454631] org.openqa.jetty.http.HttpContext - Handled by org.openqa.jetty.jetty.servlet.ServletHandler@72bb2127
07:21:22.157 DEBUG [2028454631] org.openqa.jetty.http.HttpConnection - RESPONSE:
HTTP/1.1 500 Internal Server Error
Date: Mon, 25 Jun 2012 14:21:19 GMT
Server: Jetty/5.1.x (Linux/2.6.18-028stab099.3 x86_64 java/1.5.0
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Length: 5357


07:21:22.158 DEBUG [2028454631] org.openqa.jetty.http.HttpConnection - EOFException()

JS

unread,
Jun 25, 2012, 1:56:18 PM6/25/12
to seleniu...@googlegroups.com
Problem Solved. Had to upgrade to java 1.6 instead of 1.5

I wish the minimum requirements would be better identified on seleniumHQ.org

On Saturday, June 23, 2012 5:14:11 PM UTC-4, JS wrote:
On my linux, CentOS server
after starting selenium using
java -jar seleniumserver-version.jar

I cannot start a session, whether using code through a php wrapper or performing a simple command in interactive mode. I tried 2 drivers, firefox and htmlunit. The exception I constantly get is (13, NULL), which is the status code for UnknownError.

From this source [http://code.google.com/p/selenium/wiki/JsonWireProtocol#Responses] it would seem that any server response other than 404 (i.e. 4xx and 5xx) where no status field would be defined would result in a #13 UnknownError.

Because of that I'm wondering if after starting the selenium server using the java -jar command if I should be able to navigate to http://mysite.com:4444/wd/hub or  http://mysiteip:4444/wd/hub and see someting ? I tried both those url in my browser and there is nothing. From mysite.com, I also ran a simple cURL script to get the content of  http://localhost:4444/wd/hub and  http://127.0.0.1:444/wd/hub and nothing there too. Is that normal ?? (I see the standard jetty page when I simply go to http://mysiteip:4444).


Reply all
Reply to author
Forward
0 new messages