2 Replies Latest reply on Mar 24, 2016 7:19 PM by Aslak Knutsen

    Arquillian cube container starting issue

    Christian Beikov Newbie

      I am running a testsuite with Arquillian Cube and it works pretty fine but for one project. That project uses Resteasy. I am not sure if that is relevant, but it doen't hurt to tell.

      I tried to switch to the "ping" type which works for the first container, but the second container fails with that await strategy.

       

      I am using Arquillian Cube 1.0.0.Alpha7

       

      The exception I am getting is the following:

       

      1. java.lang.RuntimeException: Could not auto start container dbSweazer
      2.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController.waitForCompletion(CubeSuiteLifecycleController.java:85)
      3.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController.startAllSteps(CubeSuiteLifecycleController.java:58)
      4.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController.startAutoContainers(CubeSuiteLifecycleController.java:40)
      5.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      6.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      7.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      8.         at java.lang.reflect.Method.invoke(Method.java:497)
      9.         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      10.         at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      11.         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      12.         at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
      13.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      15.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      16.         at java.lang.reflect.Method.invoke(Method.java:497)
      17.         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      18.         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      19.         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      20.         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      21.         at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)
      22.         at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:104)
      23.         at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      24.         at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      25.         at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      26.         at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      27.         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      28.         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      29. Caused by: org.arquillian.cube.spi.CubeControlException: Could not start dbSweazer
      30.         at org.arquillian.cube.spi.CubeControlException.failedStart(CubeControlException.java:23)
      31.         at org.arquillian.cube.docker.impl.model.DockerCube.start(DockerCube.java:99)
      32.         at org.arquillian.cube.impl.client.CubeLifecycleController.start(CubeLifecycleController.java:19)
      33.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      34.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      35.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      36.         at java.lang.reflect.Method.invoke(Method.java:497)
      37.         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      38.         at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      39.         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      40.         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      41.         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      42.         at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
      43.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController$StartCubes.call(CubeSuiteLifecycleController.java:121)
      44.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController$StartCubes.call(CubeSuiteLifecycleController.java:104)
      45.         at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)
      46.         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      47.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      48.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      49.         at java.lang.Thread.run(Thread.java:745)
      50. Caused by: javax.ws.rs.ProcessingException: Unable to find a MessageBodyReader of content-type application/vnd.docker.raw-stream and type class java.io.InputStream
      51.         at org.jboss.resteasy.core.interception.ClientReaderInterceptorContext.throwReaderNotFound(ClientReaderInterceptorContext.java:39)
      52.         at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.getReader(AbstractReaderInterceptorContext.java:73)
      53.         at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:50)
      54.         at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:248)
      55.         at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:181)
      56.         at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:217)
      57.         at com.github.dockerjava.jaxrs.util.WrappedResponseInputStream.<init>(WrappedResponseInputStream.java:22)
      58.         at com.github.dockerjava.jaxrs.ExecStartCmdExec.execute(ExecStartCmdExec.java:37)
      59.         at com.github.dockerjava.jaxrs.ExecStartCmdExec.execute(ExecStartCmdExec.java:17)
      60.         at com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:57)
      61.         at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29)
      62.         at com.github.dockerjava.core.command.ExecStartCmdImpl.exec(ExecStartCmdImpl.java:70)
      63.         at org.arquillian.cube.docker.impl.docker.DockerClientExecutor.execStart(DockerClientExecutor.java:562)
      64.         at org.arquillian.cube.docker.impl.util.Ping.execContainerPing(Ping.java:54)
      65.         at org.arquillian.cube.docker.impl.util.Ping.ping(Ping.java:21)
      66.         at org.arquillian.cube.docker.impl.await.PollingAwaitStrategy.await(PollingAwaitStrategy.java:106)
      67.         at org.arquillian.cube.docker.impl.model.DockerCube.start(DockerCube.java:93)
      68.         at org.arquillian.cube.impl.client.CubeLifecycleController.start(CubeLifecycleController.java:19)
      69.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      70.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      71.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      72.         at java.lang.reflect.Method.invoke(Method.java:497)
      73.         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      74.         at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      75.         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      76.         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      77.         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      78.         at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
      79.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController$StartCubes.call(CubeSuiteLifecycleController.java:121)
      80.         at org.arquillian.cube.docker.impl.client.CubeSuiteLifecycleController$StartCubes.call(CubeSuiteLifecycleController.java:104)
      81.         at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)
      82.         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      83.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      84.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      85.         at java.lang.Thread.run(Thread.java:745)