7 Replies Latest reply on Nov 24, 2017 5:58 AM by Med Alpa

    jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1

    Ralf Battenfeld Apprentice

      Hi

       

      I wantet to upgrade to wildfly 8.0.0. Alpha1. I was not able to execute tests neither with the jmx protocol nor with the servlet protocol. Are there new maven dependencies required for using wildfly? I was using the setup as for AS 7.1.1 / JBoss EAP 6.1 Alpha

       

      In general, it should work?

       

      With the servlet protocol, I got:

      java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.

          at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:64)

          at org.jboss.arquillian.protocol.servlet.ServletURIHandler.locateTestServlet(ServletURIHandler.java:60)

          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:77)

          at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:120)

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

          ....

       

      With the JMX protocol, I got:

       

      11:59:44,923 INFO  [com.swx.ptp.kernel.ejb.core.lifecycle.LifeCycleServiceBean] (ServerService Thread Pool -- 62) Registered Module  : FixTestModule Version: null

      11:59:44,945 INFO  [org.jboss.as.server] (management-handler-thread - 8) JBAS018559: Deployed "rno-prod-business.ear" (runtime-name : "rno-prod-business.ear")

      11:59:45,130 WARN  [org.jboss.remotingjmx.protocol.v1.ServerProxy] (pool-1-thread-2) Unexpected internal error: javax.management.RuntimeErrorException: java.lang.NoSuchFieldError:   BUNDLE_KEY

          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:841) [rt.jar:1.7.0_15]

          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852) [rt.jar:1.7.0_15]

          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821) [rt.jar:1.7.0_15]

          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) [rt.jar:1.7.0_15]

          at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:528)

          at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:264)

          at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1058)

          at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:225)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

      Caused by: java.lang.NoSuchFieldError: BUNDLE_KEY

          at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.initializeContextManager(ArquillianService.java:223)

          at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:212)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_15]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_15]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_15]

          at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_15]

          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111) [rt.jar:1.7.0_15]

          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45) [rt.jar:1.7.0_15]

          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:235) [rt.jar:1.7.0_15]

          at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [rt.jar:1.7.0_15]

          at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [rt.jar:1.7.0_15]

          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.7.0_15]

          ... 8 more

       

      Thanks

      Ralf

        • 1. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
          kaffeetrinker Newbie

          I've run into the same problem using a snapshot build from last night. Did you find anything?

           

          My stacktrace:

           

          10:41:59,948 WARN  [org.jboss.remotingjmx.protocol.v2.ServerCommon] (pool-2-thread-1) Unexpected internal error: javax.management.RuntimeErrorException: java.lang.NoSuchFieldError: BUNDLE_KEY

                  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:841) [rt.jar:1.7.0_13]

                  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852) [rt.jar:1.7.0_13]

                  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821) [rt.jar:1.7.0_13]

                  at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) [rt.jar:1.7.0_13]

                  at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:528)

                  at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:264)

                  at org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:915)

                  at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:152)

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_13]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_13]

                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_13]

          Caused by: java.lang.NoSuchFieldError: BUNDLE_KEY

                  at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.initializeContextManager(ArquillianService.java:223)

                  at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:212)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_13]

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_13]

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_13]

                  at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_13]

                  at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111) [rt.jar:1.7.0_13]

                  at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45) [rt.jar:1.7.0_13]

                  at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:235) [rt.jar:1.7.0_13]

                  at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [rt.jar:1.7.0_13]

                  at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:250) [rt.jar:1.7.0_13]

                  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.7.0_13]

          • 2. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
            Ralf Battenfeld Apprentice

            Unfortunately not. I stay at the moment with Jboss EAP 6.1 alpha1. I will try to catch Alsak. Perhaps he knows what the state is or what we do wrong.

             

            Regards,

            Ralf

            • 3. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
              Ralf Battenfeld Apprentice

              Yesterday, Aslak mentioned to me that WildFly with the same container as JBoss EAP 6.1 alpha1 should work. But it doesn't for me.

              • 4. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
                Ralf Battenfeld Apprentice

                Sorry for the delay. I just encountered that there is a new container for wildfly:

                 

                <groupId>org.wildfly</groupId>

                <artifactId>wildfly-arquillian-container-remote</artifactId>

                <version>8.0.0.Alpha1</version>

                 

                Now, I realize what Aslak wanted to say in his tweet:-)

                 

                I didn't try it out but I convinced it will work:-)

                Ralf

                • 5. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
                  Ralf Battenfeld Apprentice

                  For me, this profile works:

                   

                  <profile>
                          <id>jbossas-remote-wildfly-8</id>
                          <dependencies>
                              <dependency>
                                  <groupId>org.jboss.spec</groupId>
                                  <artifactId>jboss-javaee-6.0</artifactId>
                                  <version>1.0.0.Final</version>
                                  <type>pom</type>
                                  <scope>provided</scope>
                              </dependency>
                              <dependency>
                                  <groupId>org.wildfly</groupId>
                                  <artifactId>wildfly-arquillian-container-remote</artifactId>
                                  <version>8.0.0.Alpha1</version>
                                  <scope>test</scope>
                              </dependency>
                              <dependency>
                                  <groupId>org.wildfly</groupId>
                                  <artifactId>wildfly-arquillian-protocol-jmx</artifactId>
                                  <version>8.0.0.Alpha1</version>
                                  <scope>test</scope>
                              </dependency>
                              <dependency>
                                  <groupId>org.wildfly</groupId>
                                  <artifactId>wildfly-arquillian-common</artifactId>
                                  <version>8.0.0.Alpha1</version>
                                  <scope>test</scope>
                              </dependency>
                          </dependencies>
                      </profile>
                  • 6. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
                    Juergen Zimmermann Master

                    I stoppeed using org.jboss.spec:jboss-javaee-6.0:... for WildFly since it's JavaEE 7. Instead I'm using the bom org.wildfly:wildfly-spec-api:...

                    • 7. Re: jboss-as-arquillian-container-remote and wildfly 8.0.0 Alpha1
                      Med Alpa Newbie

                      Hello,

                      I've run into the same problem using jboss eap 6.0 and jboss-as-arquillian-container-remote : version : 7.5.7.Final-redhat-3

                       

                      Is there any solution?