6 Replies Latest reply on Sep 6, 2013 4:03 AM by kpiwko

    java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test

    ferrlin

      I'm getting this error. What could be something that I'm missing?

       

       

      Sep 05, 2013 2:54:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

      SEVERE: The web application [/api] appears to have started a thread named [net.sf.ehcache.CacheManager@14f0fa28] but has failed to stop it. This is very likely to create a memory leak.

      Sep 05, 2013 2:54:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

      SEVERE: The web application [/api] appears to have started a thread named [myScheduler-1] but has failed to stop it. This is very likely to create a memory leak.

      FAILED CONFIGURATION: @BeforeClass arquillianBeforeClass

      java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.<init>([Lorg/openqa/selenium/Capabilities;)V

        at org.jboss.arquillian.drone.webdriver.configuration.TypedWebDriverConfiguration$5.invoke(TypedWebDriverConfiguration.java:293)

        at org.jboss.arquillian.drone.webdriver.configuration.TypedWebDriverConfiguration$5.invoke(TypedWebDriverConfiguration.java:284)

        at org.jboss.arquillian.drone.webdriver.configuration.TypedWebDriverConfiguration$CallInterceptor.intercept(TypedWebDriverConfiguration.java:65)

        at org.jboss.arquillian.drone.webdriver.configuration.TypedWebDriverConfiguration.getCapabilities(TypedWebDriverConfiguration.java:299)

        at org.jboss.arquillian.drone.webdriver.factory.HtmlUnitDriverFactory.createInstance(HtmlUnitDriverFactory.java:81)

        at org.jboss.arquillian.drone.webdriver.factory.HtmlUnitDriverFactory.createInstance(HtmlUnitDriverFactory.java:41)

        at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:129)

        at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:43)

        at org.jboss.arquillian.drone.impl.DroneCreator.createWebTestBrowser(DroneCreator.java:71)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

        at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

        at org.jboss.arquillian.drone.impl.DroneConfigurator.configureDrone(DroneConfigurator.java:116)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

        at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

        at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

        at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:103)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)

        at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)

        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)

        at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)

        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)

        at org.testng.TestRunner.privateRun(TestRunner.java:767)

        at org.testng.TestRunner.run(TestRunner.java:617)

        at org.testng.SuiteRunner.runTest(SuiteRunner.java:335)

        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)

        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

        at org.testng.SuiteRunner.run(SuiteRunner.java:240)

        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)

        at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)

        at org.testng.TestNG.run(TestNG.java:1057)

        at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)

        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

       

       

      build.gradle has the following:

       

          testCompile group: 'org.testng' , name:'testng', version:'6.8.5'

         

          testCompile group: 'org.apache.tomcat', name:'catalina' , version: '6.0.32'

          testCompile group: 'org.apache.tomcat', name:'coyote', version: '6.0.32'

          testCompile group: 'org.apache.tomcat', name:'jasper', version: '6.0.32'

         

          testCompile group: 'org.jboss.arquillian.extension', name:'arquillian-service-integration-spring-inject', version:'1.0.0.Beta1'

          compile group: 'org.jboss.arquillian.container', name:'arquillian-tomcat-embedded-6' , version:'1.0.0.CR3'

          testCompile group: 'org.jboss.arquillian.testng', name:'arquillian-testng-container' , version: '1.1.1.Final'

         

          testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-warp', version: '1.0.0.Alpha3'

          testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-rest-warp-api', version: '1.0.0.Final-SNAPSHOT'

          //compile group: 'org.jboss.arquillian.extension', name: 'arquillian-warp-jaxrs-impl-jersey', version: '1.0.0.Alpha3'

         

          testCompile group: 'org.jboss.arquillian', name: 'arquillian-bom', version: '1.1.1.Final'

          testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-drone-bom', version: '1.1.1.Final'

         

          //testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-drone-webdriver-depchain', version: '1.1.0.CR3'

          testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-drone-webdriver-depchain', version: '1.1.1.Final'

         

          //testCompile group: 'org.jboss.shrinkwrap.resolver', name: 'shrinkwrap-resolver-depchain', version: '1.1.0-alpha-3'

         

          compile group: 'org.easytesting', name: 'fest-assert', version: '1.4'

       

       

      With this call:

       

        @Deployment(testable = false)

      @OverProtocol("Servlet 2.5")

        public static WebArchive createTestArchive() {

        return ShrinkWrap

        .create(WebArchive.class, "api.war")

        .addPackage("com.eyeota.dmp")

        .addClasses(ReportQueueDAOImpl.class, UserDAOImpl.class)

        .setWebXML("web.xml")

        .addAsWebInfResource(

        "applicationContext.xml");

        }

        • 1. Re: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test
          ferrlin

          I decided to make changes to my build.gradle to use the following instead:

              testCompile group: 'org.testng' , name:'testng', version:'6.8.5'

              testCompile group: 'org.jboss.arquillian.testng', name:'arquillian-testng-container' , version: '1.1.1.Final'

              testCompile group: 'org.jboss.shrinkwrap.resolver', name: 'shrinkwrap-resolver-impl-maven', version: '1.1.0-alpha-3'

              testCompile group: 'org.jboss.arquillian.protocol', name: 'arquillian-protocol-servlet', version: '1.1.1.Final'

              testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-drone-webdriver-depchain', version: '1.1.1.Final'

              testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-warp-impl' , version: '1.0.0.Alpha3'

             

              testCompile group: 'org.jboss.arquillian.container', name: 'arquillian-glassfish-embedded-3.1', version: '1.0.0.CR4'

              testCompile group: 'org.glassfish.main.extras', name: 'glassfish-embedded-all', version: '3.1.2'

           

          and also added a pom.xml that will be used by the MavenDependencyResolver. ie

           

          return DependencyResolvers.use(MavenDependencyResolver.class)

            .loadMetadataFromPom("pom.xml")

            .artifacts("org.easytesting:fest-assert:")

            .artifacts("com.sun.jersey:jersey-json")

            .artifacts("com.sun.jersey:jersey-client")

            .artifacts("com.sun.jersey:jersey-server")

            .artifacts("com.sun.jersey:jersey-servlet")

            .artifacts("postgresql:postgresql")

            .artifacts("javassist:javassist")

            .artifacts("org.hibernate:hibernate-ehcache")

            .artifacts("org.hibernate:hibernate-core")

            .artifacts("org.springframework:spring-orm")

            .artifacts("javax.annotation:jsr250-api")

            .artifacts("org.springframework:spring-web")

            .artifacts("org.springframework:spring-core")

            .artifacts("org.slf4j:slf4j-api")

            .artifacts("ch.qos.logback:logback-classic")

            .exclusion("javax.servlet:*").resolveAsFiles();

           

          I have this code statement in my test case :

           

          return DependencyResolvers.use(MavenDependencyResolver.class)

            .loadMetadataFromPom("pom.xml")

            .artifacts("org.easytesting:fest-assert:")

            .artifacts("com.sun.jersey:jersey-json")

            .artifacts("com.sun.jersey:jersey-client")

            .artifacts("com.sun.jersey:jersey-server")

            .artifacts("com.sun.jersey:jersey-servlet")

            .artifacts("postgresql:postgresql")

            .artifacts("javassist:javassist")

            .artifacts("org.hibernate:hibernate-ehcache")

            .artifacts("org.hibernate:hibernate-core")

            .artifacts("org.springframework:spring-orm")

            .artifacts("javax.annotation:jsr250-api")

            .artifacts("org.springframework:spring-web")

            .artifacts("org.springframework:spring-core")

            .artifacts("org.slf4j:slf4j-api")

            .artifacts("ch.qos.logback:logback-classic")

            .exclusion("javax.servlet:*").resolveAsFiles();

           

           

          The server boots up. (though new errors appears).

          • 2. Re: Re: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test
            kpiwko

            I don't know exactly how Gradle manages dependencies, but I guess the problem lies in BOM dependencies.

             

            arquillian-bom and arquillian-drone-bom dependencies are BOMs, they actually ensure Maven picks up right versions.

            Gradle does not support BOMs: http://forums.gradle.org/gradle/topics/what_is_the_equivalent_of_the_maven_scope_import

             

             

            I think that a proper solution (not tried though) is to add ext: 'pom' next to all -depchains and remove all -bom dependencies. Additionally, I would update Drone related depchain to 1.2.0.Beta1, as it is based on top of Arquillian 1.1.0 - which is much closer to 1.1.1 and as you can't use BOMs to manage version, this should generate less conflicts.

             

            Lastly, shrinkwrap resolver has a depchain as well and there is version 2.0.0 available (included in arquillian-bom, that you can't use).

             

            So, something like:

             

                testCompile group: 'org.testng' , name:'testng', version:'6.8.5'
            
                testCompile group: 'org.apache.tomcat', name:'catalina' , version: '6.0.32'
                testCompile group: 'org.apache.tomcat', name:'coyote', version: '6.0.32'
                testCompile group: 'org.apache.tomcat', name:'jasper', version: '6.0.32'
            
                testCompile group: 'org.jboss.arquillian.extension', name:'arquillian-service-integration-spring-inject', version:'1.0.0.Beta1'
                compile group: 'org.jboss.arquillian.container', name:'arquillian-tomcat-embedded-6' , version:'1.0.0.CR3'
                testCompile group: 'org.jboss.arquillian.testng', name:'arquillian-testng-container' , version: '1.1.1.Final'
            
                testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-warp', version: '1.0.0.Alpha3'
                testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-rest-warp-api', version: '1.0.0.Final-SNAPSHOT'
                //compile group: 'org.jboss.arquillian.extension', name: 'arquillian-warp-jaxrs-impl-jersey', version: '1.0.0.Alpha3'
            
                // this will replace everything Drone and SWR related
                testCompile group: 'org.jboss.arquillian.extension', name: 'arquillian-drone-webdriver-depchain', version: '1.2.0.Beta1', ext: 'pom'  
                testCompile group: 'org.jboss.shrinkwrap.resolver', name: 'shrinkwrap-resolver-depchain', version: '2.0.0', ext: 'pom'
            
            

             

            Also, output of gradle -q dependencies will be handy here, to figure out where are 2 different Selenium versions - which is indeed your problem - coming from.

             

            Karel

            • 3. Re: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test
              ferrlin

              Thanks for the response.

               

              I have two issues encountered though after applying your suggestion:

               

              1. the ext:'pom' didn't work. so I decided to remove them then it succeeded.
              2. shrikwrap-resolver-depchain version: '2.0.0' no longer support DependencyResolvers and MavenDependencyResolver

               

              How to fix the second issue?

              • 4. Re: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test
                ferrlin

                I undecided to drop the dependency resolver and did this instead:

                 

                 

                @Deployment

                  public static WebArchive createTestArchive() {

                  // File[] libs = loadLibraries();

                 

                  return ShrinkWrap

                  .create(WebArchive.class, "api.war")

                  .addPackage("com.eyeota.dmp")

                  .addClasses(ReportQueueDAOImpl.class, UserDAOImpl.class)

                  .setWebXML("com/eyeota/resources/web.xml")

                  .addAsWebInfResource(

                  "com/eyeota/resources/applicationContext.xml");

                 

                  // .addAsLibraries(libs);

                  }

                 

                Everything seems fine but when it executes the Test which is set as @RunAsClient, exception is thrown.

                 

                Here's the Test method (not much action here.)

                 

                 

                @Test

                @RunAsClient

                  public void testExample() {

                  WebResource webResource = client.resource(contextPath

                  + "v1/reportqueue");

                  //

                  ClientResponse response = webResource

                  .accept(MediaType.APPLICATION_XML_TYPE)

                  .type(MediaType.APPLICATION_XML_TYPE)

                  .post(ClientResponse.class, new Object());

                 

                  // assertEquals("The request didn't succeeded.",

                  // Response.Status.CREATED.getStatusCode(), response.getStatus());

                 

                  }

                 

                 

                The exception thrown:

                 

                .testExample())

                java.lang.NullPointerException

                  at org.jboss.arquillian.warp.impl.client.commandBus.CommandBusOnClient.executeRemotely(CommandBusOnClient.java:163)

                  at org.jboss.arquillian.warp.impl.client.commandBus.CommandServiceOnClient.execute(CommandServiceOnClient.java:38)

                  at org.jboss.arquillian.warp.impl.client.commandBus.RemoteSuiteLifecyclePropagation.sendBefore(RemoteSuiteLifecyclePropagation.java:55)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                  at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)

                  at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                  at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)

                  at org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(Arquillian.java:130)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)

                  at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)

                  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

                  at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)

                  at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)

                  at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)

                  at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)

                  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

                  at org.testng.TestRunner.privateRun(TestRunner.java:767)

                  at org.testng.TestRunner.run(TestRunner.java:617)

                  at org.testng.SuiteRunner.runTest(SuiteRunner.java:335)

                  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)

                  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

                  at org.testng.SuiteRunner.run(SuiteRunner.java:240)

                  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

                  at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

                  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)

                  at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)

                  at org.testng.TestNG.run(TestNG.java:1057)

                  at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

                  at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)

                  at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

                 

                FAILED CONFIGURATION: @AfterMethod arquillianAfterTest(public void com.eyeota.dmp.v2.test.SchedulerIntegrationTest.testExample())

                java.lang.NullPointerException

                  at org.jboss.arquillian.warp.impl.client.commandBus.CommandBusOnClient.executeRemotely(CommandBusOnClient.java:163)

                  at org.jboss.arquillian.warp.impl.client.commandBus.CommandServiceOnClient.execute(CommandServiceOnClient.java:38)

                  at org.jboss.arquillian.warp.impl.client.commandBus.RemoteSuiteLifecyclePropagation.sendAfter(RemoteSuiteLifecyclePropagation.java:61)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                  at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)

                  at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createAfterContext(ContainerEventController.java:134)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                  at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.after(EventTestRunnerAdaptor.java:103)

                  at org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(Arquillian.java:149)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)

                  at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)

                  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

                  at org.testng.internal.Invoker.invokeMethod(Invoker.java:786)

                  at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)

                  at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)

                  at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)

                  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

                  at org.testng.TestRunner.privateRun(TestRunner.java:767)

                  at org.testng.TestRunner.run(TestRunner.java:617)

                  at org.testng.SuiteRunner.runTest(SuiteRunner.java:335)

                  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)

                  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

                  at org.testng.SuiteRunner.run(SuiteRunner.java:240)

                  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

                  at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

                  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)

                  at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)

                  at org.testng.TestNG.run(TestNG.java:1057)

                  at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

                  at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)

                  at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

                 

                 

                I forgot to mention that I have this setup as well:

                 

                  private Client client;

                 

                @BeforeTest

                  public void settingUp() {

                  client = Client.create(new DefaultClientConfig());

                  }

                • 5. Re: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test
                  ferrlin

                  Got to make it work.

                   

                  The issues that I encounter was with WarpTest (which I didn't configure yet) defined on top my test class.

                   

                  I used jersey way of testing and everything worked smoothly.

                   

                   

                  Thanks,

                  • 6. Re: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities when running arquillian test
                    kpiwko

                    Ad 1. Interesting to now. It seems that Gradle somehow figures out there's no jar and uses pom instead.

                     

                    Ad 2. ShrinkWrap Resolvers 1.1.0 never reached a stable release - beta was the last release. 2.0.0 does have stable API and many improvement, but the API is different. We do not provide a migration guide (yet), however from existing documentation - https://github.com/shrinkwrap/resolver/blob/master/README.asciidoc - it should be easy to rewrite the code to use 2.0.0 instead.

                     

                    Ad NPE in Warp - I can't help you here, but maybe lfryc would be able to share some insight here.

                     

                    Karel