-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: 9.3-SNAPSHOT
-
Fix Version/s: None
-
Component/s: Runtime
-
Epic Link:
-
Team:AT
Random failure visible at https://qa.nuxeo.org/jenkins/job/master/job/FT-nuxeo-master-webdriver-cap-tomcat-hotreload/5/ for instance
18:20:09,398 INFO [LogTestWatchman] Starting test 'org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase#testCreateStudioDocument' 18:20:21,430 ERROR [LogTestWatchman] Test 'org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase#testCreateStudioDocument' failed org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"link text","selector":"My test document"} Command duration or timeout: 236 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: '23357d144ee2', ip: '172.17.0.10', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-92-generic', java.version: '1.8.0_77' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=42.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 20a8b5fd-7289-4c3b-bcfc-b02284780076 *** Element info: {Using=link text, value=My test document} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327) at org.openqa.selenium.remote.RemoteWebElement.findElement(RemoteWebElement.java:198) at org.openqa.selenium.remote.RemoteWebElement.findElementByLinkText(RemoteWebElement.java:247) at org.openqa.selenium.By$ByLinkText.findElement(By.java:246) at org.openqa.selenium.remote.RemoteWebElement.findElement(RemoteWebElement.java:194) at org.nuxeo.functionaltests.pages.tabs.ContentTabSubPage.getDocumentCreatePage(ContentTabSubPage.java:111) at org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase.testCreateStudioDocument(NuxeoITCase.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:285) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:301) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:332) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:351) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:429) at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:95) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:235) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:429) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:218) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runners.Suite.runChild(Suite.java:127) at org.junit.runners.Suite.runChild(Suite.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at org.junit.runner.JUnitCore.run(JUnitCore.java:138) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"link text","selector":"My test document"} For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: '23357d144ee2', ip: '172.17.0.10', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-92-generic', java.version: '1.8.0_77' Driver info: driver.version: unknown at <anonymous class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous8614170530856380992webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770) at <anonymous class>.fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous8614170530856380992webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:625) 18:20:21,755 INFO [LogTestWatchman] Created screenshot file named '/opt/jenkins/workspace/master/FT-nuxeo-master-webdriver-cap-tomcat-hotreload/nuxeo-distribution/nuxeo-jsf-ui-hotreload-tests/target/screenshot-lastpage-org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase-testCreateStudioDocument4033930392280218185.png' 18:20:21,755 INFO [LogTestWatchman] Created page source file named '/opt/jenkins/workspace/master/FT-nuxeo-master-webdriver-cap-tomcat-hotreload/nuxeo-distribution/nuxeo-jsf-ui-hotreload-tests/target/screenshot-lastpage-org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase-testCreateStudioDocument3582433305011221807.html' 18:20:21,755 INFO [LogTestWatchman] Finished test 'org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase#testCreateStudioDocument'
Screenshot only shows the login page.
Server logs show:
2017-08-25 18:20:09,425 WARN [http-bio-0.0.0.0-8080-exec-10] [org.nuxeo.ecm.platform.ui.web.restAPI.SystemLogRestlet] ----- WebDriver: Starting test 'org.nuxeo.ftest.jsf.hotreload.studio.NuxeoITCase#testCreateStudioDocument' 2017-08-25 18:20:11,605 INFO [http-bio-0.0.0.0-8080-exec-18] [org.nuxeo.runtime.reload.ReloadComponent] Flush caches 2017-08-25 18:20:11,612 ERROR [http-bio-0.0.0.0-8080-exec-18] [org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap] Failed to deploy dev bundles java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker.flush(ReloadServiceInvoker.java:167) at org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker.hotDeployBundles(ReloadServiceInvoker.java:95) at org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap.reloadDevBundles(DevFrameworkBootstrap.java:199) at org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap.loadDevBundles(DevFrameworkBootstrap.java:167) at org.nuxeo.runtime.tomcat.dev.DevValve.postReload(DevValve.java:142) at org.nuxeo.runtime.tomcat.dev.DevValve.invoke(DevValve.java:62) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nuxeo.ecm.directory.DirectoryCache.invalidateAll(DirectoryCache.java:174) at org.nuxeo.ecm.directory.DirectoryCacheFlusher.handleEvent(DirectoryCacheFlusher.java:54) at org.nuxeo.runtime.services.event.EventService.sendEvent(EventService.java:126) at org.nuxeo.runtime.services.event.EventService.sendEvent(EventService.java:100) at org.nuxeo.runtime.reload.ReloadComponent.flush(ReloadComponent.java:155) ... 22 more 2017-08-25 18:20:17,774 INFO [http-bio-0.0.0.0-8080-exec-17] [org.nuxeo.runtime.reload.ReloadComponent] Before undeploy bundles