1 Reply Latest reply on Feb 18, 2012 10:36 AM by Christer Sundgren

    The jboss-as-kitchensink arquillian test from quickstarts JBoss AS 7 have failed

    Zo Pa Newbie

      When I try to run the jboss-as-kitchensink arquilion test, it has failed.

       

      I have used the following environment:

       

      1. Java 1.6

      2. Apache Maven 3.0.3

      3. Eclipse Java EE IDE Indigo

      4. Jbosstools 3.3.0.M3

      5. m2eclipse 1.0

      6. jboss-as-maven-plugin 7.0.0.Final

      7. arquillian-junit-container 1.0.0.CR5

      8. jboss-as-arquillian-container-remote 7.0.2.Final

      9. Jboss AS 7.0.2.Final

       

      The output of the test is:

       

      -------------------------------------------------------

      T E S T S

      -------------------------------------------------------

      Running org.jboss.as.quickstarts.kitchensink.test.MemberRegistrationTest

      java.lang.reflect.UndeclaredThrowableException

          at $Proxy0.invoke(Unknown Source)

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

          at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)

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

      Caused by: java.lang.reflect.InvocationTargetException

          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.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

          ... 4 more

      Caused by: java.lang.RuntimeException: Could not create a new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor see cause.

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

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

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

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

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

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

          ... 9 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:166)

          ... 14 more

      Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serializer/OutputPropertiesFactory

          at org.apache.xalan.xsltc.trax.TransformerImpl.setDefaults(TransformerImpl.java:1022)

          at org.apache.xalan.xsltc.trax.TransformerImpl.createOutputProperties(TransformerImpl.java:983)

          at org.apache.xalan.xsltc.trax.TransformerImpl.<init>(TransformerImpl.java:236)

          at org.apache.xalan.xsltc.trax.TransformerImpl.<init>(TransformerImpl.java:227)

          at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:593)

          at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporterImpl.to(XmlDomDescriptorExporterImpl.java:65)

          at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorExporterImpl.to(NodeDescriptorExporterImpl.java:55)

          at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorExporterImpl.to(NodeDescriptorExporterImpl.java:30)

          at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporter.to(XmlDomDescriptorExporter.java:51)

          at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporter.to(XmlDomDescriptorExporter.java:34)

          at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase.exportTo(NodeDescriptorImplBase.java:55)

          at org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase.exportAsString(DescriptorImplBase.java:84)

          at org.jboss.arquillian.config.impl.extension.ConfigurationSysPropResolver.resolveSystemProperties(ConfigurationSysPropResolver.java:54)

          at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:58)

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

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

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

          at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:260)

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

          ... 19 more

      Caused by: java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory

          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)

          ... 44 more

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

       

       

      To complete the test I had to insert the following repository an dependency parameters:

       

            <repository>

               <id>jboss-public-thirdparty-repository</id>

               <name>JBoss Thirdparty Repository</name>

               <url>https://repository.jboss.org/nexus/content/groups/public-thirdparty-releases</url>

            </repository>

       

      and

       

          <dependency>

            <groupId>apache-xalan</groupId>

            <artifactId>serializer</artifactId>

            <version>j_2.7.0</version>

            <scope>test</scope>

          </dependency>

       

      When you run the test again with the abowe dependecy, the test result is:

       

      -------------------------------------------------------

      T E S T S

      -------------------------------------------------------

      Running org.jboss.as.quickstarts.kitchensink.test.MemberRegistrationTest

      Oct 8, 2011 6:19:27 PM org.jboss.as.arquillian.protocol.jmx.ArquillianServiceDeployer doServiceDeploy

      INFO: Deploy arquillian service: arquillian-service: 716 assets

      Oct 8, 2011 6:19:27 PM org.jboss.remoting3.EndpointImpl <clinit>

      INFO: JBoss Remoting version 3.2.0.Beta2

      Oct 8, 2011 6:19:27 PM org.xnio.Xnio <clinit>

      INFO: XNIO Version 3.0.0.Beta2

      Oct 8, 2011 6:19:27 PM org.xnio.nio.NioXnio <clinit>

      INFO: XNIO NIO Implementation Version 3.0.0.Beta2

      Oct 8, 2011 6:19:28 PM org.jboss.remoting3.remote.RemoteConnection handleException

      ERROR: JBREM00200: Remote connection failed: java.io.IOException: Window open for non-existent channel

      Oct 8, 2011 6:19:28 PM org.jboss.remoting3.remote.RemoteConnection handleException

      ERROR: JBREM00200: Remote connection failed: java.io.IOException: Window open for non-existent channel

      Oct 8, 2011 6:19:28 PM org.jboss.remoting3.remote.RemoteConnection handleException

      ERROR: JBREM00200: Remote connection failed: java.io.IOException: Window open for non-existent channel

      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.066 sec

      Oct 8, 2011 6:19:28 PM org.jboss.remoting3.remote.RemoteConnection handleException

      ERROR: JBREM00200: Remote connection failed: java.io.IOException: Window open for non-existent channel

       

      Results :

       

      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

       

       

      You can see those "Remote connection failed: java.io.IOException" ERROR messges in the test result. Does anybody know what could be the problem here?

      In addition, if you have a look at to the AS 7 web consol, you can see the aquillian service is deployd to my instance (attacehed). Is that normal?

       

      ZoPa