8 Replies Latest reply on Jul 27, 2009 1:24 PM by nadir

    testng running test-build fails

    nes

      ||Hello!
      
      I have a very simple testcase that inherits from SeamTest and really doesn't do anything. The configuration fails.
      
      The error message is below.
      
      Now what's going on?
      
      best regards|
      
      niko
      
      
      
      Buildfile: C:\Dokumente und Einstellungen\nes\Eigene Dateien\workspace\SUPCockpit\build.xml
      initcopy:
      initpoms:
           [echo] Setting up dependencies
          [mkdir] Created dir: C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
      [artifact:install] [INFO] Installing C:\jboss-4.2.2.GA\jbs\classes\poms\root.pom to C:\Dokumente und Einstellungen\nes\.m2\repository\org\jboss\seam\root\2.0.2.CR1\root-2.0.2.CR1.pom
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
      [artifact:install] [INFO] Installing C:\jboss-4.2.2.GA\jbs\classes\poms\parent.pom to C:\Dokumente und Einstellungen\nes\.m2\repository\org\jboss\seam\parent\2.0.2.CR1\parent-2.0.2.CR1.pom
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
           [copy] Copying 1 file to C:\jboss-4.2.2.GA\jbs\classes\poms
      copyseam:
      copyseamdependencies:
      copyextradependencies:
      init:
           [echo] Building SUP-Cockpit 2.0
      compiletest:
      buildtest:
           [copy] Copying 1 file to C:\Dokumente und Einstellungen\nes\Eigene Dateien\workspace\SUPCockpit\test-build
      copyjbossembedded:
      test:
         [testng] [Parser] Running:
         [testng]   C:\Dokumente und Einstellungen\nes\Eigene Dateien\workspace\SUPCockpit\src\de\nexum\supcockpit\ooxml\testng.xml
         [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/Dokumente%20und%20Einstellungen/nes/Eigene%20Dateien/workspace/SUPCockpit/test-build/ state=Not Installed mode=Manual requiredState=Parse
         [testng] org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/Dokumente%20und%20Einstellungen/nes/Eigene%20Dateien/workspace/SUPCockpit/test-build/
         [testng]      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
         [testng]      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
         [testng]      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
         [testng]      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
         [testng]      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
         [testng]      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
         [testng]      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
         [testng]      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
         [testng]      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
         [testng]      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
         [testng]      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
         [testng]      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
         [testng]      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
         [testng]      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
         [testng]      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
         [testng]      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
         [testng]      at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:127)
         [testng]      at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
         [testng]      at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
         [testng]      at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
         [testng]      at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
         [testng]      at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
         [testng]      at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
         [testng]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [testng]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [testng]      at java.lang.reflect.Method.invoke(Method.java:597)
         [testng]      at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
         [testng]      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
         [testng]      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
         [testng]      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
         [testng]      at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
         [testng]      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
         [testng]      at org.testng.TestRunner.runWorkers(TestRunner.java:678)
         [testng]      at org.testng.TestRunner.privateRun(TestRunner.java:624)
         [testng]      at org.testng.TestRunner.run(TestRunner.java:495)
         [testng]      at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
         [testng]      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
         [testng]      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
         [testng]      at org.testng.SuiteRunner.run(SuiteRunner.java:190)
         [testng]      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
         [testng]      at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
         [testng]      at org.testng.TestNG.run(TestNG.java:699)
         [testng]      at org.testng.TestNG.privateMain(TestNG.java:824)
         [testng]      at org.testng.TestNG.main(TestNG.java:802)
         [testng] Caused by: java.lang.NullPointerException
         [testng]      at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
         [testng]      at java.util.Arrays.asList(Arrays.java:3343)
         [testng]      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:67)
         [testng]      at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(FileURLConnection.java:90)
         [testng]      at sun.net.www.protocol.file.FileURLConnection.getLastModified(FileURLConnection.java:151)
         [testng]      at org.jboss.virtual.plugins.context.AbstractURLHandler.initCacheLastModified(AbstractURLHandler.java:72)
         [testng]      at org.jboss.virtual.plugins.context.AbstractURLHandler.<init>(AbstractURLHandler.java:65)
         [testng]      at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:70)
         [testng]      at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
         [testng]      at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
         [testng]      at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
         [testng]      at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHandler.java:179)
         [testng]      at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:239)
         [testng]      at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
         [testng]      at org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:216)
         [testng]      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:291)
         [testng]      at org.jboss.virtual.plugins.context.file.FileHandler.findChild(FileHandler.java:199)
         [testng]      at org.jboss.virtual.plugins.context.AbstractVFSContext.findChild(AbstractVFSContext.java:118)
         [testng]      at org.jboss.virtual.VFS.findChild(VFS.java:205)
         [testng]      at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:96)
         [testng]      at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:109)
         [testng]      at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:117)
         [testng]      at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:48)
         [testng]      at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:89)
         [testng]      at org.jboss.ejb3.deployers.PersistenceUnitParsingDeployer.parse(PersistenceUnitParsingDeployer.java:113)
         [testng]      at org.jboss.ejb3.deployers.PersistenceUnitParsingDeployer.parse(PersistenceUnitParsingDeployer.java:89)
         [testng]      at org.jboss.ejb3.deployers.PersistenceUnitParsingDeployer.parse(PersistenceUnitParsingDeployer.java:51)
         [testng]      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:223)
         [testng]      ... 43 more
         [testng] FAILED CONFIGURATION: @BeforeClass init
         [testng] org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
         [testng] *** CONTEXTS IN ERROR: Name -> Error
         [testng] vfsfile:/C:/Dokumente%20und%20Einstellungen/nes/Eigene%20Dateien/workspace/SUPCockpit/test-build/ -> java.lang.NullPointerException
         [testng]      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
         [testng]      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
         [testng]      at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
         [testng]      at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
         [testng]      at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
         [testng]      at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
         [testng]      at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
         [testng]      at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
         [testng]      at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
         [testng] ... Removed 22 stack frames
         [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
         [testng] SKIPPED CONFIGURATION: @AfterMethod end
         [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
         [testng] SKIPPED: testCreateDelete
         [testng] ===============================================
         [testng]     de.nexum.supcockpit.utils.ConverterTest
         [testng]     Tests run: 1, Failures: 0, Skips: 1
         [testng]     Configuration Failures: 1, Skips: 3
         [testng] ===============================================
         [testng] ===============================================
         [testng] SUPCockpit
         [testng] Total tests run: 1, Failures: 0, Skips: 1
         [testng] Configuration Failures: 1, Skips: 3
         [testng] ===============================================|


        • 1. Re: testng running test-build fails
          mheidt

          I'm facing the same problem and would like to know a solution as well.


          2.0.2.CR1


          Either way..ComponentTest() or FacesRequest()....

          • 2. Re: testng running test-build fails
            unreal.kiryl.navyshny.dat.de

            Hi,


            I have the same problem with 2.0.2 GA.


            Is any solution known, how to start SeamTest ?


            Thank you.


            Best regards,
            Kiryl Navyshny

            • 3. Re: testng running test-build fails
              victorroa

              It happens the same with me.
              1 It tried to test booking example and it happenedn this error.
              2 I tried to download egain the seam 2.02GA and make what readme.txt says. I tried ant testall for testing all the seam examples when happened the follow:
              First:I dont know how but i had to download all the downloading dependencies from the repositories manually (even i had configured the proxy in maven2).
              Finnally when it looks to be download all the dependencies appears the same error as in testin booking example alone.


              Any idea?


               

              • 4. Re: testng running test-build fails
                victorroa


                sorry, i dont undertand format text and i couldnt insert the error message:

                   [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss-seam-2.0.2.SP1/exam
                ples/booking/test-build/ state=Not Installed mode=Manual requiredState=Parse
                   [testng] org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss-seam-2.0.2.SP1/examples/booking/test-buil
                d/jboss-seam-booking-ds.xml
                   [testng]     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                   [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:23
                2)
                   [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:19
                9)
                   [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
                   [testng]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                   [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
                   [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
                   [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:79 4)
                   [testng]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                   [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                   [testng]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                   [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)

                • 5. Re: testng running test-build fails
                  zergspirit

                  The problem might be that you're running this test using Java 1.6, whereas it handles only Java 1.5.

                  • 6. Re: testng running test-build fails
                    rburt3.randall.burt.ctr.navy.mil

                    It seems from my own wrestling with this same issue that nothing in your classpath may be on a path with spaces. From your example, you have things in C:\Dokumente und Einstellungen\nes\Eigene Dateien\ which would have spaces in it. If you can, move your seam installation to C:\ and your build directory to the same.


                    Personally, I just can't understand why Java cannot seem to handle directories with spaces in a manner that is transparent to software built on that platform.

                    • 7. Re: testng running test-build fails
                      mpriha.marketta.priha.hiq.fi

                      An issue had been reported in JBoss JIRA and as I had the same problem I figured out it might be related to my proxy configuration. It was however configured properly on the Eclipse side so I simply uncommented the DOCTYPE definition from the datasource XML file until this will be fixed. Now the tests are running.


                      I am however a little bit confused about this Seam support. Is the JBoss JIRA valid for Seam currently at all or should these issues be now reported on this site?


                      Marketta


                      • 8. Re: testng running test-build fails
                        nadir

                        Almost a year now, but i have run into the same problem...




                        ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/D:/work/edoradca/edoradca-test/bootstrap/deployers/jboss-aspect-library-beans.xml state=Not Installed mode=Manual requiredState=Parse
                        org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/D:/work/edoradca/edoradca-test/bootstrap/deployers/jboss-aspect-library-beans.xml





                        I'm running on JBoss AS 4.2.3 with Java 1.5, i dont have any spaces in my workspace... I'm using ivy.
                        Does anyone have a solution for this?