1 Reply Latest reply on Sep 21, 2012 9:02 AM by Phillip Haines

    Environment issue Embedded JBoss and Seam Test

    Phillip Haines Newbie

      I've been tasked with building a new continous integration server and have run into an issue running our intergration test suite. While running test suite from the command line I get the following stack trace on the first test that requires the embedded jboss server (I've truncated it below but can produce the full stack trace if required). The test suite works on our exsting CI server that is being replaced and on all development machines - so this appears to be some kind of configuration issue with the server I'm building. Does anyone have any suggestions on where to look to resolve this problem - you help would be greatly appreachated.

       

      [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/vol/jenkins/jobs/master/workspace/test-build/ state=PostClassLoader mode=Manual requiredState=Real

         [testng] org.jboss.deployers.spi.DeploymentException: Error deploying test-build: null

         [testng]      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:158)

         [testng]      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:88)

         [testng]      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)

         [testng]      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

         [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] 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] FAILED CONFIGURATION: @BeforeSuite startSeam

         [testng] org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

         [testng]

         [testng] *** CONTEXTS IN ERROR: Name -> Error

         [testng]

         [testng] vfsfile:/vol/jenkins/jobs/master/workspace/test-build/ -> java.lang.NullPointerException

         [testng]

         [testng]

         [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)

       

      After the first attempt to use the embedded jboss subsequent tests get the following stack trace:

       

      [testng] FAILED CONFIGURATION: @BeforeSuite startSeam

         [testng] java.lang.RuntimeException: Unable to bootstrap:

         [testng]      at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147)

         [testng]      at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)

         [testng]      at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)

         [testng]      at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)

         [testng]      at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1024)

         [testng]      at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:915)

         [testng]      at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)

         [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.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)

         [testng]      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551)

         [testng]      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

         [testng]      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)

         [testng]      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)

         [testng]      at org.testng.SuiteRunner.run(SuiteRunner.java:240)

         [testng]      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)

         [testng]      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)

         [testng]      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1188)

         [testng]      at org.testng.TestNG.runSuitesLocally(TestNG.java:1113)

         [testng]      at org.testng.TestNG.run(TestNG.java:1025)

         [testng]      at org.testng.TestNG.privateMain(TestNG.java:1328)

         [testng]      at org.testng.TestNG.main(TestNG.java:1297)

         [testng] Caused by: java.lang.IllegalStateException: ServerConfig is already installed.

         [testng]      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:525)

         [testng]      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)

         [testng]      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)

         [testng]      at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:141)

         [testng]      ... 23 more