java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Automation Testing
    via by Unknown author,
  • Automation Testing: Selenium automation problems
    via by Unknown author,
  • I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. Continuum process is running with root privileges. When I run maven from console (mvn clean install), selenium works smoothly: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MenuEAR [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 23 resources [INFO] [ear:ear {execution: default-ear}] [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear [INFO] [selenium:xvfb {execution: xvfb}] [INFO] Starting Xvfb... [INFO] Using display: :20 [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority Deleting: /tmp/Xvfb7302122594304485725.Xauthority xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium Launching Xvfb Waiting for Xvfb... [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log Xvfb started [INFO] [selenium:start-server {execution: start-selenium}] Launching Selenium Server [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js Waiting for Selenium Server... 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases Selenium Server started [INFO] [compiler:testCompile {execution: compila-testes}] [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes [INFO] [surefire:test {execution: testes-funcionais}] [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running br.com.optimus.teste.usuario.TestNavegacao 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... Xlib: extension "RANDR" missing on display ":20.0". Xlib: extension "RANDR" missing on display ":20.0". 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 aberto /erp/login.seam 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 preenchido login:username com demo1 (....) Otherwise, when I run the same phases inside Selenium, it fails: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MenuEAR [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 23 resources [INFO] [ear:ear {execution: default-ear}] [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear [INFO] [selenium:xvfb {execution: xvfb}] [INFO] Starting Xvfb... [INFO] Using display: :20 [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority Deleting: /tmp/Xvfb31539120038900714.Xauthority xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium Launching Xvfb Waiting for Xvfb... [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log Xvfb started [INFO] [selenium:start-server {execution: start-selenium}] Launching Selenium Server Waiting for Selenium Server... [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases Selenium Server started [INFO] [compiler:testCompile {execution: compila-testes}] [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes [INFO] [surefire:test {execution: testes-funcionais}] [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running br.com.optimus.teste.usuario.TestNavegacao 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... Xlib: extension "RANDR" missing on display ":20.0". 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data java.lang.RuntimeException: Timed out waiting for profile to be created! at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    via by André Salvati,
  • I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. Continuum process is running with root privileges. When I run maven from console (mvn clean install), selenium works smoothly: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MenuEAR [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 23 resources [INFO] [ear:ear {execution: default-ear}] [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear [INFO] [selenium:xvfb {execution: xvfb}] [INFO] Starting Xvfb... [INFO] Using display: :20 [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority Deleting: /tmp/Xvfb7302122594304485725.Xauthority xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium Launching Xvfb Waiting for Xvfb... [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log Xvfb started [INFO] [selenium:start-server {execution: start-selenium}] Launching Selenium Server [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js Waiting for Selenium Server... 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases Selenium Server started [INFO] [compiler:testCompile {execution: compila-testes}] [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes [INFO] [surefire:test {execution: testes-funcionais}] [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running br.com.optimus.teste.usuario.TestNavegacao 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... Xlib: extension "RANDR" missing on display ":20.0". Xlib: extension "RANDR" missing on display ":20.0". 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 aberto /erp/login.seam 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 preenchido login:username com demo1 (....) Otherwise, when I run the same phases inside Selenium, it fails: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MenuEAR [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 23 resources [INFO] [ear:ear {execution: default-ear}] [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear [INFO] [selenium:xvfb {execution: xvfb}] [INFO] Starting Xvfb... [INFO] Using display: :20 [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority Deleting: /tmp/Xvfb31539120038900714.Xauthority xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium Launching Xvfb Waiting for Xvfb... [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log Xvfb started [INFO] [selenium:start-server {execution: start-selenium}] Launching Selenium Server Waiting for Selenium Server... [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases Selenium Server started [INFO] [compiler:testCompile {execution: compila-testes}] [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes [INFO] [surefire:test {execution: testes-funcionais}] [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running br.com.optimus.teste.usuario.TestNavegacao 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... Xlib: extension "RANDR" missing on display ":20.0". 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data java.lang.RuntimeException: Timed out waiting for profile to be created! at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    via by André Salvati,
    • java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:109) at com.java.abs.Top.setUp(Top.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) 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.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:109) at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:103) at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:272) at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:234) at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:100) ... 25 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,