Java PhantomJS with Ghost Driver Working on Mac But Not On Linux -


our web application running fine on mac getting timeout out exception on linux. using phantomjs 1.9.8 , 1.9.7. below java code , stack trace. hi, our web application running fine on mac getting timeout out exception on linux. using phantomjs 1.9.8 , 1.9.7. below java code , stack trace. hi, our web application running fine on mac getting timeout out exception on linux. using phantomjs 1.9.8 , 1.9.7. below java code , stack trace.

file scrfile=null; webdriver driver=null; try{ // initiation caps spring dependency.         caps.setcapability(phantomjsdriverservice.phantomjs_executable_path_property, pathtophantomjs);         caps.setcapability("phantomjs.binary.path", pathtophantomjs);         caps.setcapability(iscoreconstants.take_screen_shot, true);          logger.info("getting driver instance .");         driver = new phantomjsdriver(caps);         logger.info("driver instance created.");  stack trace:  [date=&quot;2015-07-01 00:02:17,254&quot;] [level=error] [log_module=com.apple.gbi.gsf.web.handler.serviceexceptionhandler] [reqid=&quot;&quot;] [log_message=&quot;[request-info="uri=/gsf/iscore/businessareas/applecare/subjectareas/contactcenter/proxy/captureimage;client=17.169.113.85;session=q1zben8c30t05oab2sfjazp8 (user-agent:curl/7.37.1;host:gsf-dev2.corp.apple.com;content-type:application/json;accept:application/json;content-length:150;x-forwarded-for:17.149.233.4;vip-ip-port:17.161.20.239_443)"] [reqid="60943584-efd8-4a67-9e08-6fc46e98912f"] [errorcode="isr01012"] [errormsg="error occoured while capturing image"] : com.apple.gbi.gsf.api.exception.serviceexception$unexpectedexception: error occoured while capturing image     @ com.apple.gbi.iscore.service.screencapture.screencaptureserviceimpl.captureimage(screencaptureserviceimpl.java:85)     @ com.apple.gbi.iscore.proxy.imagecapture.captureimageproxyservice.execute(captureimageproxyservice.java:42)     @ com.apple.gbi.gsf.core.proxy.proxydataservice.executeservice(proxydataservice.java:38)     @ com.apple.gbi.gsf.core.service.abstractdataservice.getdata(abstractdataservice.java:35)     @ com.apple.gbi.gsf.query.staticquery.service.serviceexecutorimpl.execute(serviceexecutorimpl.java:479)     @ com.apple.gbi.gsf.query.staticquery.service.serviceexecutorimpl.execute(serviceexecutorimpl.java:470)     @ com.apple.gbi.gsf.web.controller.service.query.servicecontroller.executeservicerequest(servicecontroller.java:231)     @ com.apple.gbi.gsf.web.controller.service.query.servicecontroller.query(servicecontroller.java:107)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.springframework.web.method.support.invocablehandlermethod.invoke(invocablehandlermethod.java:219)     @ org.springframework.web.method.support.invocablehandlermethod.invokeforrequest(invocablehandlermethod.java:132)     @ org.springframework.web.servlet.mvc.method.annotation.servletinvocablehandlermethod.invokeandhandle(servletinvocablehandlermethod.java:104)     @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.invokehandlemethod(requestmappinghandleradapter.java:745)     @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.handleinternal(requestmappinghandleradapter.java:686)     @ org.springframework.web.servlet.mvc.method.abstracthandlermethodadapter.handle(abstracthandlermethodadapter.java:80)     @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:925)     @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:856)     @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:936)     @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:838)     @ javax.servlet.http.httpservlet.service(httpservlet.java:754)     @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:812)     @ javax.servlet.http.httpservlet.service(httpservlet.java:847)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:295)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214)     @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:88)     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:246)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214)     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:230)     @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:149)     @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:389)     @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:169)     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:145)     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:97)     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:102)     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:336)     @ org.apache.coyote.http11.http11processor.process(http11processor.java:856)     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:653)     @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:508)     @ org.jboss.threads.simpledirectexecutor.execute(simpledirectexecutor.java:33)     @ org.jboss.threads.queueexecutor.runtask(queueexecutor.java:806)     @ org.jboss.threads.queueexecutor.access$100(queueexecutor.java:45)     @ org.jboss.threads.queueexecutor$worker.run(queueexecutor.java:847)     @ java.lang.thread.run(unknown source)     @ org.jboss.threads.jbossthread.run(jbossthread.java:122) org.openqa.selenium.remote.unreachablebrowserexception: not start new session. possible causes invalid address of remote server or browser start-up failure. build info: version: 'unknown', revision: 'unknown', time: 'unknown' system info: host: 'ma-bobjd-lapp10.corp.apple.com', ip: '10.185.20.170', os.name: 'linux', os.arch: 'amd64', os.version: '2.6.39-400.214.4.el6uek.x86_64', java.version: '1.6.0_32' driver info: driver.version: phantomjsdriver     @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:593)     @ org.openqa.selenium.remote.remotewebdriver.startsession(remotewebdriver.java:240)     @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:126)     @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:139)     @ org.openqa.selenium.phantomjs.phantomjsdriver.<init>(phantomjsdriver.java:115)     @ org.openqa.selenium.phantomjs.phantomjsdriver.<init>(phantomjsdriver.java:104)     @ com.apple.gbi.iscore.service.screencapture.screencaptureserviceimpl.captureimage(screencaptureserviceimpl.java:61)     @ com.apple.gbi.iscore.proxy.imagecapture.captureimageproxyservice.execute(captureimageproxyservice.java:42)     @ com.apple.gbi.gsf.core.proxy.proxydataservice.executeservice(proxydataservice.java:38)     @ com.apple.gbi.gsf.core.service.abstractdataservice.getdata(abstractdataservice.java:35)     @ com.apple.gbi.gsf.query.staticquery.service.serviceexecutorimpl.execute(serviceexecutorimpl.java:479)     @ com.apple.gbi.gsf.query.staticquery.service.serviceexecutorimpl.execute(serviceexecutorimpl.java:470)     @ com.apple.gbi.gsf.web.controller.service.query.servicecontroller.executeservicerequest(servicecontroller.java:231)     @ com.apple.gbi.gsf.web.controller.service.query.servicecontroller.query(servicecontroller.java:107)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.springframework.web.method.support.invocablehandlermethod.invoke(invocablehandlermethod.java:219)     @ org.springframework.web.method.support.invocablehandlermethod.invokeforrequest(invocablehandlermethod.java:132)     @ org.springframework.web.servlet.mvc.method.annotation.servletinvocablehandlermethod.invokeandhandle(servletinvocablehandlermethod.java:104)     @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.invokehandlemethod(requestmappinghandleradapter.java:745)     @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.handleinternal(requestmappinghandleradapter.java:686)     @ org.springframework.web.servlet.mvc.method.abstracthandlermethodadapter.handle(abstracthandlermethodadapter.java:80)     @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:925)     @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:856)     @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:936)     @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:838)     @ javax.servlet.http.httpservlet.service(httpservlet.java:754)     @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:812)     @ javax.servlet.http.httpservlet.service(httpservlet.java:847)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:295)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214)     @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:88)     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:246)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214)     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:230)     @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:149)     @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:389)     @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:169)     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:145)     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:97)     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:102)     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:336)     @ org.apache.coyote.http11.http11processor.process(http11processor.java:856)     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:653)     @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:508)     @ org.jboss.threads.simpledirectexecutor.execute(simpledirectexecutor.java:33)     @ org.jboss.threads.queueexecutor.runtask(queueexecutor.java:806)     @ org.jboss.threads.queueexecutor.access$100(queueexecutor.java:45)     @ org.jboss.threads.queueexecutor$worker.run(queueexecutor.java:847)     @ java.lang.thread.run(unknown source)     @ org.jboss.threads.jbossthread.run(jbossthread.java:122) caused by: org.openqa.selenium.webdriverexception: timed out waiting driver server start. build info: version: 'unknown', revision: 'unknown', time: 'unknown' system info: host: 'ma-bobjd-lapp10.corp.apple.com', ip: '10.185.20.170', os.name: 'linux', os.arch: 'amd64', os.version: '2.6.39-400.214.4.el6uek.x86_64', java.version: '1.6.0_32' driver info: driver.version: phantomjsdriver     @ org.openqa.selenium.remote.service.driverservice.start(driverservice.java:166)     @ org.openqa.selenium.phantomjs.phantomjscommandexecutor.execute(phantomjscommandexecutor.java:78)     @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:572)     ... 53 more caused by: org.openqa.selenium.net.urlchecker$timeoutexception: timed out waiting [http://localhost:9011/status] available after 20001 ms     @ org.openqa.selenium.net.urlchecker.waituntilavailable(urlchecker.java:104)     @ org.openqa.selenium.remote.service.driverservice.start(driverservice.java:163)     ... 55 more caused by: com.google.common.util.concurrent.uncheckedtimeoutexception: java.util.concurrent.timeoutexception     @ com.google.common.util.concurrent.simpletimelimiter.callwithtimeout(simpletimelimiter.java:143)     @ org.openqa.selenium.net.urlchecker.waituntilavailable(urlchecker.java:79)     ... 56 more caused by: java.util.concurrent.timeoutexception     @ java.util.concurrent.futuretask$sync.innerget(unknown source)     @ java.util.concurrent.futuretask.get(unknown source)     @ com.google.common.util.concurrent.simpletimelimiter.callwithtimeout(simpletimelimiter.java:130) 


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -