2 Replies Latest reply on Sep 17, 2014 7:26 AM by Karel Piwko

    IllegalStateException after upgrading from WildFly 8.1.0.Final to 9.0.0.Alpha1

    Juergen Zimmermann Master

      I changed the Maven dependency from org.wildfly:wildfly-arquillian-container-remote:8.1.0.Final to org.wildfly.arquillian:wildfly-arquillian-container-remote:1.0.0.Alpha2.

      Now I'm getting the following stacktrace when I invoke my Arquillian tests (my Maven version is 3.2.3, i.e. the latest). I attach the output of "mvn dependency:tree" when using 8.1.0.Final and for 9.1.0.Alpha1. Any hint is appreciated.

       

      Stacktrace:

      java.lang.RuntimeException: Could not invoke deployment method: protected static org.jboss.shrinkwrap.api.Archive de.shop.util.AbstractResourceTest.deployment()

              at org.jboss.arquillian.container.test.impl.client.deployment.Annotation DeploymentScenarioGenerator.invoke(AnnotationDeploymentScenarioGenerator.java:181)

              at org.jboss.arquillian.container.test.impl.client.deployment.Annotation DeploymentScenarioGenerator.generateDeployment(AnnotationDeploymentScenarioGenerator.java:103)

              at org.jboss.arquillian.container.test.impl.client.deployment.Annotation DeploymentScenarioGenerator.generate(AnnotationDeploymentScenarioGenerator.java:64)

              at org.jboss.arquillian.container.test.impl.client.deployment.Deployment Generator.generateDeployment(DeploymentGenerator.java:79)

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

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

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

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

              at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:100)

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

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

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

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

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

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

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

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

              at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:190)

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

              at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:49)

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

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

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

              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)

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

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

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

              at org.jboss.arquillian.container.test.impl.client.deployment.AnnotationDeploymentScenarioGenerator.invoke(AnnotationDeploymentScenarioGenerator.java:177)

              ... 50 more

      Caused by: java.lang.ExceptionInInitializerError

              at de.shop.util.AbstractResourceTest.deployment(AbstractResourceTest.java:118)

              ... 55 more

      Caused by: org.jboss.shrinkwrap.resolver.api.Invokable$InvocationException: Unable to invoke onlyOne([Ljava.lang.Class;@5bf0fe62) on object org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry with parameters [Ljava.lang.Object;@1e097d59

              at org.jboss.shrinkwrap.resolver.api.Invokable.invokeMethod(Invokable.java:108)

              at org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:91)

              at org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:53)

              at org.jboss.shrinkwrap.resolver.api.Resolvers.configure(Resolvers.java:40)

              at org.jboss.shrinkwrap.resolver.api.maven.Maven.configureResolver(Maven.java:46)

              at de.shop.util.ArchiveBuilder.addJars(ArchiveBuilder.java:73)

              at de.shop.util.ArchiveBuilder.<init>(ArchiveBuilder.java:51)

              at de.shop.util.ArchiveBuilder.<clinit>(ArchiveBuilder.java:35)

              ... 56 more

      Caused by: 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:483)

              at org.jboss.shrinkwrap.resolver.api.Invokable.invokeMethod(Invokable.java:100)

              ... 63 more

      Caused by: java.lang.RuntimeException: Could not create new service instance

              at org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstance(SpiServiceLoader.java:248)

              at org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstances(SpiServiceLoader.java:208)

              at org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.all(SpiServiceLoader.java:79)

              at org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.onlyOne(SpiServiceLoader.java:85)

              at org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry.onlyOne(ServiceRegistry.java:117)

              ... 68 more

      Caused by: java.lang.reflect.InvocationTargetException

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

              at org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstance(SpiServiceLoader.java:244)

              ... 72 more

      Caused by: java.lang.IllegalStateException: Unable to boostrap Aether repository system, missing RepositoryService org.eclipse.aether.RepositorySystem, probably due to missing or invalid Aether dependencies.  You are either running from within Maven plugin with Maven 3.0.x version (make sure to update to Maven 3.1.0 or newer) or  you have org.apache.maven:maven-aether-provider:3.0.x on classpath shading required binding (make sure to update dependencies in your project).

              at org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.ShrinkWrapResolverServiceLocator.getService(ShrinkWrapResolverServiceLocator.java:234)

              at org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenRepositorySystem.getRepositorySystem(MavenRepositorySystem.java:164)

              at org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenRepositorySystem.<init>(MavenRepositorySystem.java:62)

              at org.jboss.shrinkwrap.resolver.impl.maven.MavenWorkingSessionImpl.<init>(MavenWorkingSessionImpl.java:135)

              at org.jboss.shrinkwrap.resolver.impl.maven.ConfigurableMavenResolverSystemImpl.<init>(ConfigurableMavenResolverSystemImpl.java:47)

              ... 77 more