4 Replies Latest reply on Nov 9, 2011 9:59 AM by Aslak Knutsen

    Jenkins, Arquillian and %20 in Path

    Radim Pavlicek Newbie

      Hi,

       

      I have following issue. Arquillian cannot find the followin path: C:\Program%20Files\Jenkins\jobs\KKMS\workspace\trunk\bp-parent\bp-services\target\test-classes\test-local-persistence.xml and I think the issue is the "%20".

       

      Any ideas?

       

      Stacktrace

       

       

      java.lang.RuntimeException: Could not invoke deployment method: public static org.jboss.shrinkwrap.api.Archive at.oebb.kkms.bonuspoints.services.berechnung.BerechnungServiceTest.createTestArchive()

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

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

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

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

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

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

                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.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

                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.proceed(EventContextImpl.java:88)

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

                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.proceed(EventContextImpl.java:88)

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

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

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

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

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

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

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

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

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

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

      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.jboss.arquillian.container.test.impl.client.deployment.AnnotationDeploymentScenarioGenerator.invoke(AnnotationDeploymentScenarioGenerator.java:164)

                ... 56 more

      Caused by: java.lang.IllegalArgumentException: C:\Program%20Files\Jenkins\jobs\KKMS\workspace\trunk\bp-parent\bp-services\target\test-classes\test-local-persistence.xml was not found in any available ClassLoaders

                at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addNestedJarFileResource(ContainerBase.java:624)

                at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsResource(ContainerBase.java:912)

                at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsResource(ContainerBase.java:842)

                at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsResource(ContainerBase.java:830)

                at at.oebb.kkms.bonuspoints.services.WebArchiveFactory.generate(WebArchiveFactory.java:21)

                at at.oebb.kkms.bonuspoints.services.berechnung.BerechnungServiceTest.createTestArchive(BerechnungServiceTest.java:29)

                ... 61 more

        • 1. Re: Jenkins, Arquillian and %20 in Path
          Aslak Knutsen Master

          Which Arquillian / ShrinkWrap version are you using?

           

          I believe i remember some Windows related Path fixes..

          • 2. Re: Jenkins, Arquillian and %20 in Path
            Radim Pavlicek Newbie

            <properties>


            <!-- JBOSS -->


            <jboss.home>${env.JBOSS_HOME}</jboss.home>


            <jboss.domain>default</jboss.domain>





            <!-- MAVEN -->


            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>


            <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>


            <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>



            <plugin.surefire.version>2.9</plugin.surefire.version>


            <plugin.compiler.version>2.3.1</plugin.compiler.version>





            <!-- LOGGING -->


            <slf4j.version>1.6.1</slf4j.version>

             

             



            <!-- TESTING -->


            <junit.version>4.8.2</junit.version>


            <mockito.version>1.8.5</mockito.version>


            <jboss-as-arquillian-container-manager.version>7.0.0.Final</jboss-as-arquillian-container-manager.version>


            <jboss-as-arquillian-container-remote.version>7.0.0.Final</jboss-as-arquillian-container-remote.version>


            <shrinkwrap.version>1.0.0-beta-3</shrinkwrap.version>

             

             



            <!-- CDI -->


            <weld-core.version>1.1.2.Final</weld-core.version>


            <weld-spi.version>1.1.Final</weld-spi.version>


            <arquillian.version>1.0.0.CR1</arquillian.version>

             

             



            <!-- PERSISTENCE -->


            <hibernate.version>3.6.6.Final</hibernate.version>


            <hibernate-jpa-2.0-api.version>1.0.1.Final</hibernate-jpa-2.0-api.version>


            <hibernate-entitymanager.version>3.6.6.Final</hibernate-entitymanager.version>


            <hibernate-validator.version>4.1.0.Final</hibernate-validator.version>


            <hibernate-jpamodelgen.version>1.1.1.Final</hibernate-jpamodelgen.version>


            <hsqldb.version>1.8.0.10</hsqldb.version>





            <!-- JEE -->


            <javax.inject.version>1</javax.inject.version>


            <el-api.version>2.2</el-api.version>


            <cdi-api.version>1.0-SP1</cdi-api.version>



            <jboss6-javaee-6.0.version>1.0.0.Final</jboss6-javaee-6.0.version><!-- JBoss6 -->


            <jboss7-javaee-web-6.0.version>2.0.0.Final</jboss7-javaee-web-6.0.version><!-- JBoss7 -->





            <!-- SEAM -->




            <seam-solder.version>3.0.0.Final</seam-solder.version>

            </properties>
            • 3. Re: Jenkins, Arquillian and %20 in Path
              Aslak Knutsen Master

              Try upgrading to JBoss AS 7.0.2.Final, Arquillian 1.0.0.CR4 and ShrinkWrap 1.0.0-beta-5