Try using the trunk version or use the nightly builds deployed to oss.sonatype.org.
Your issue is known and fixed if your setup involves more bundles and timeout of 10secs runs out. Toni (from mobile, apologize for brevity) On Jul 19, 2011 4:32 PM, "Rodolfo Barbeiro" <[email protected]> wrote: > > > > > Hello, I'm trying to run tests with the Pax Runner Test Container, but sometimes it works properly and sometimes the following error occurs: [org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer] : Test Container started in 9593 > millis > [org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer] : Wait for test container to fini > sh its initialization [ RelativeTimeout value = 10000 ] > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Start command line [[C:\Program Files\Java\jdk1. > 6.0_23/bin/java, -Dorg.ops4j.pax.logging.DefaultServiceLog.level=DEBUG, -Dorg.ops4j.pax.exam.rbc.rmi > .host=HOME, -Dorg.ops4j.pax.exam.rbc.rmi.port=21413, - Dorg.ops4j.pax.exam.rbc.rmi.name=70fb2 > 76d-4ddf-4f23-82d0-2766763a6e67, -Dams.location=teste, -Dfelix.config.properties=file:felix/config.i > ni, -cp, bundles/org.apache.felix.main_3.0.6.jar, org.apache.felix.main.Main]] > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Starting platform process. > [org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for remote bundle context.. on 2 > 1413 name: 70fb276d-4ddf-4f23-82d0-2766763a6e67 timout: [ RelativeTimeout value = 10000 ] > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Wrapping stream I/O. > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Added shutdown hook. > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Runner has successfully finished his job! > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Waiting for framework exit.[org.ops4j.pax.exam.junit.JUnit4TestRunner] : Exception > java.lang.RuntimeException: Cannot get the remote bundle context > at org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.getRemoteBundleContext > (RemoteBundleContextClientImpl.java:275) > at org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.waitForState(RemoteBun > dleContextClientImpl.java:234) > at org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.waitForState(PaxRunnerTe > stContainer.java:207) > at org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestConta > iner.java:134) > at org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactor.invoke(AllConfinedStagedReactor. > java:68) > at org.ops4j.pax.exam.junit.JUnit4TestRunner$2.evaluate(JUnit4TestRunner.java:260) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) > at org.junit.runners.ParentRunner.run(ParentRunner.java:236) > at org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:86) > 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.jav > a:110) > at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireSta > rter.java:104) > at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70) > Caused by: java.rmi.NotBoundException: 70fb276d-4ddf-4f23-82d0-2766763a6e67 > at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106) > at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > at sun.rmi.transport.Transport$1.run(Transport.java:159) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) > at org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.getRemoteBundleContext > (RemoteBundleContextClientImpl.java:263) > ... 26 more > [org.ops4j.pax.exam.spi.DefaultExamSystem] : Option org.ops4j.pax.exam.options.TestContainerStartTim > eoutOption has not been recognized. > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 29.446 sec <<< FAILURE! > [org.ops4j.pax.exam.rbc.internal.Activator] : Trying to find registry on [host=HOME port=214 > 13] > [org.ops4j.pax.runner.platform.DefaultJavaRunner] : Unwrapping stream I/O. > > Does anyone know what's going on? How do I solve? Thank you! Rodolfo Barbeiro
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
