10 Replies Latest reply on Nov 29, 2012 3:48 PM by lfryc

    [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension

    anthonyhib

      Hi,

      my tests stopped working after a maven snapshot update

      stacktrace being

       

      java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

                at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:160)

                at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:111)

                at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:97)

                at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:93)

                at com.redhat.cert.marking.junit.arquillian.CertArquillian.run(CertArquillian.java:34)

                at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)

                at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)

                at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)

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

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

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

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

                at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)

                at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)

                at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)

                at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)

                at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

      Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:156)

                ... 17 more

      Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.core.impl.ManagerImpl

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:160)

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:111)

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:97)

                at org.jboss.arquillian.core.spi.ManagerBuilder.create(ManagerBuilder.java:77)

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:55)

                ... 22 more

      Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:156)

                ... 26 more

      Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension

                at java.lang.ClassLoader.defineClass1(Native Method)

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

                at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

                at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

                at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                at org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader.load(JavaSPIExtensionLoader.java:108)

                at org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader.all(JavaSPIExtensionLoader.java:65)

                at org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader.load(JavaSPIExtensionLoader.java:53)

                at org.jboss.arquillian.core.impl.loadable.LoadableExtensionLoader.load(LoadableExtensionLoader.java:73)

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

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

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

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

                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.ManagerImpl.fireProcessing(ManagerImpl.java:316)

                at org.jboss.arquillian.core.impl.ManagerImpl.<init>(ManagerImpl.java:98)

                ... 31 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.arquillian.warp.spi.WarpLifecycleExtension

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                ... 58 more

      Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:156)

                ... 17 more

      Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.core.impl.ManagerImpl

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:160)

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:111)

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:97)

                at org.jboss.arquillian.core.spi.ManagerBuilder.create(ManagerBuilder.java:77)

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:55)

                ... 22 more

      Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:156)

                ... 26 more

      Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension

                at java.lang.ClassLoader.defineClass1(Native Method)

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

                at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

                at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

                at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                at org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader.load(JavaSPIExtensionLoader.java:108)

                at org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader.all(JavaSPIExtensionLoader.java:65)

                at org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader.load(JavaSPIExtensionLoader.java:53)

                at org.jboss.arquillian.core.impl.loadable.LoadableExtensionLoader.load(LoadableExtensionLoader.java:73)

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

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

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

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

                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.ManagerImpl.fireProcessing(ManagerImpl.java:316)

                at org.jboss.arquillian.core.impl.ManagerImpl.<init>(ManagerImpl.java:98)

                ... 31 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.arquillian.warp.spi.WarpLifecycleExtension

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                ... 58 more

       

       

      Cheers,

      Anthony

        • 1. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
          anthonyhib

          ok

          I moved from phaser to jsf, I guess that's a first step.

          Now running the test, it freezes with following (AS is running, deployment is not happening)

          java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities)

                    at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)

                    at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:83)

                    at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:38)

                    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:616)

                    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:616)

                    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:616)

                    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:616)

                    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.junit.Arquillian$2.evaluate(Arquillian.java:182)

                    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                    at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                    at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                    at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                    at com.redhat.cert.marking.junit.arquillian.CertArquillian.run(CertArquillian.java:34)

                    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: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:

          *** LOG addons.manager: Application has been upgraded

          *** LOG addons.xpi: startup

          *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous5091158937908851907webdriver-profile/extensions/webdriver-staging

          *** LOG addons.xpi: checkForChanges

          *** LOG addons.xpi-utils: Opening database

          *** LOG addons.xpi-utils: Creating database schema

          *** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile

          *** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global

          *** LOG addons.xpi: Updating database with changes to installed add-ons

          *** LOG addons.xpi-utils: Updating add-on states

          *** LOG addons.xpi-utils: Writing add-ons list

          *** LOG addons.xpi: shutdown

          *** LOG addons.xpi-utils: shutdown

          *** LOG addons.xpi-utils: Database closed

          *** LOG addons.xpi: startup

          *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous5091158937908851907webdriver-profile/extensions/webdriver-staging

          *** LOG addons.xpi: checkForChanges

          *** LOG addons.xpi: No changes found

           

           

          Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 15:28:49'

          System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.6.6-1.fc16.x86_64', java.version: '1.6.0_24'

          Driver info: driver.version: FirefoxDriver

                    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:121)

                    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:215)

                    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:106)

                    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:154)

                    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:101)

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)

                    at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)

                    ... 53 more

          Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

          *** LOG addons.manager: Application has been upgraded

          *** LOG addons.xpi: startup

          *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous5091158937908851907webdriver-profile/extensions/webdriver-staging

          *** LOG addons.xpi: checkForChanges

          *** LOG addons.xpi-utils: Opening database

          *** LOG addons.xpi-utils: Creating database schema

          *** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile

          *** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global

          *** LOG addons.xpi: Updating database with changes to installed add-ons

          *** LOG addons.xpi-utils: Updating add-on states

          *** LOG addons.xpi-utils: Writing add-ons list

          *** LOG addons.xpi: shutdown

          *** LOG addons.xpi-utils: shutdown

          *** LOG addons.xpi-utils: Database closed

          *** LOG addons.xpi: startup

          *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous5091158937908851907webdriver-profile/extensions/webdriver-staging

          *** LOG addons.xpi: checkForChanges

          *** LOG addons.xpi: No changes found

           

           

                    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:109)

                    ... 62 more

          I noticed in the testsuite that faces-config was now handling some specific warp setup, could you describe the steps to be able to use it?

          1 of 1 people found this helpful
          • 2. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
            anthonyhib

            finally updating from





            <groupId>org.jboss.arquillian.extension</groupId>




            <artifactId>arquillian-drone-bom</artifactId>




            <type>pom</type>




            <version>1.1.0.CR3</version>

            to 1.1.0.Final

            fixed thos last issue.

            I'll now run al the test and check if I'm hitting other issues.

             

            Thanks

            • 3. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
              lfryc

              Hey Anthony,

               

              the refactoring during last days changed a SPI from Alpha1 shape to clarify purpose.

               

               

              What extensions are you using? If you use just Warp JSF (was: Phaser), then you should be fine - try to update Maven dependencies.

              • 4. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                lfryc

                I'm glad you was able to find a root causes. Perfect!

                • 5. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                  anthonyhib

                  Hi Lukas,

                  good news is that non-wrap tests are running fine.

                  However I'm now hitting the old java.lang.NoClassDefFoundError: related to the test itself.

                  I'm following exactly the same test structure as in your testsuite.

                  Checking for the generated war, the test is there

                  • 6. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                    anthonyhib

                    actually running the test from mvn test reports another exception (I was previously running it from eclipse which is causing more problems)

                     

                    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.805 sec <<< FAILURE!

                    serverSideImplTest(xxxx)  Time elapsed: 5.72 sec  <<< ERROR!

                    org.jboss.arquillian.warp.impl.client.execution.SynchronizationPoint$ServerResponseTimeoutException

                              at org.jboss.arquillian.warp.impl.client.execution.SynchronizationPoint.awaitResponses(SynchronizationPoint.java:115)

                              at org.jboss.arquillian.warp.impl.client.execution.DefaultExecutionSynchronizer.waitForResponse(DefaultExecutionSynchronizer.java:60)

                              at org.jboss.arquillian.warp.impl.client.execution.WarpExecutionObserver.awaitResponse(WarpExecutionObserver.java:64)

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

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

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

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

                              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.warp.impl.client.execution.DefaultWarpExecutor.awaitServerExecution(DefaultWarpExecutor.java:95)

                              at org.jboss.arquillian.warp.impl.client.execution.DefaultWarpExecutor.execute(DefaultWarpExecutor.java:65)

                              at org.jboss.arquillian.warp.impl.client.execution.WarpExecutionObserver.executeWarp(WarpExecutionObserver.java:45)

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

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

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

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

                              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.warp.impl.client.execution.WarpExecutionInitializer.provideWarpContext(WarpExecutionInitializer.java:64)

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

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

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

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

                              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.core.impl.EventImpl.fire(EventImpl.java:67)

                              at org.jboss.arquillian.warp.impl.client.execution.DefaultWarpRequestSpecifier.execute(DefaultWarpRequestSpecifier.java:142)

                              at org.jboss.arquillian.warp.impl.client.execution.DefaultWarpRequestSpecifier.verify(DefaultWarpRequestSpecifier.java:74)

                              at com.redhat.cert.ep225.task11.marker.Task11MarkerAdvanced2Test.serverSideImplTest(Task11MarkerAdvanced2Test.java:77)

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

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

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

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

                              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.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)

                              at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)

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

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

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

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

                              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.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)

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

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

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

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

                              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.createTestContext(ContainerEventController.java:129)

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

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

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

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

                              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:39)

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

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

                              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:39)

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

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

                              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.GeneratedMethodAccessor9.invoke(Unknown Source)

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

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

                              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.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)

                              at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)

                              at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)

                              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                              at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                              at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)

                              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.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)

                              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                              at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                              at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                              at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                              at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                              at com.redhat.cert.marking.junit.arquillian.CertArquillian.run(CertArquillian.java:34)

                              at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)

                              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)

                              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)

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

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

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

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

                              at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)

                              at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)

                              at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)

                              at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)

                              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

                     

                    • 7. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                      anthonyhib

                      ON HOLD, investigatin and finding clues.

                      no need to answer for now.

                      • 8. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                        anthonyhib

                        ok after some updates, I finally hitting

                        org.jboss.arquillian.warp.exception.ClientWarpExecutionException: enriching request failed: There were more requests executed (2) then expected (1)

                                  at org.jboss.arquillian.warp.impl.client.execution.DefaultHttpRequestEnrichmentFilter.filter(DefaultHttpRequestEnrichmentFilter.java:56)

                                  at org.littleshoot.proxy.ProxyHttpRequestEncoder.encode(ProxyHttpRequestEncoder.java:93)

                                  at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:66)

                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:568)

                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:747)

                                  at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:304)

                                  at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:266)

                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:568)

                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:563)

                                  at org.jboss.netty.channel.Channels.write(Channels.java:611)

                                  at org.jboss.netty.channel.Channels.write(Channels.java:578)

                                  at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:259)

                                  at org.littleshoot.proxy.HttpRequestHandler$1OnConnect.onConnect(HttpRequestHandler.java:280)

                                  at org.littleshoot.proxy.HttpRequestHandler.processMessage(HttpRequestHandler.java:307)

                                  at org.littleshoot.proxy.HttpRequestHandler.messageReceived(HttpRequestHandler.java:213)

                                  at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)

                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545)

                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754)

                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)

                                  at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:522)

                                  at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506)

                                  at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)

                                  at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)

                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545)

                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:540)

                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)

                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)

                                  at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)

                                  at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)

                                  at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)

                                  at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)

                                  at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                                  at java.lang.Thread.run(Thread.java:662)

                        Caused by: java.lang.IllegalStateException: There were more requests executed (2) then expected (1)

                                  at org.jboss.arquillian.warp.impl.client.execution.WarpGroupImpl.generateRequestPayload(WarpGroupImpl.java:171)

                                  at org.jboss.arquillian.warp.impl.client.execution.DefaultHttpRequestEnrichmentService.getMatchingPayloads(DefaultHttpRequestEnrichmentService.java:76)

                                  at org.jboss.arquillian.warp.impl.client.enrichment.EnrichmentObserver.tryEnrichRequest(EnrichmentObserver.java:49)

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

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

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

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

                                  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.warp.impl.client.execution.DefaultHttpRequestEnrichmentFilter.filter(DefaultHttpRequestEnrichmentFilter.java:53)

                                  ... 34 more

                         

                        I've set up a high level jsf filter, but didn't fix the problem, any idea?

                        Note: this happens when I have a form submission.

                        • 9. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                          anthonyhib

                          fixed,

                          my initial navigate.to was in the ClientAction, stupid me.

                          • 10. Re: [WARP] Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/warp/spi/WarpLifecycleExtension
                            lfryc

                            Hey Anthony,

                             

                            note that you can use just arquillian-warp-jsf dependency now and it will transitively bring all the required dependencies.

                             

                            You may experience problem with dependencies before (you was using old phaser dep and new warp impl) but once using only arquillian-warp-jsf, everything should be fine.