Hi there,

I've been really impressed with how easy PAX Exam has been to use to create
integration tests for OSGi bundles, but I've hit upon a bug that I can't
seem to figure out. It could be a bug in the JVM, but I'd really appreciate
your input to see if it's a known problem with any workaround.

We experienced the same issue using PAX Exam 1 so I thought I'd try out PAX
Exam 2 (which I must say is definitley a step in the right direction), but
the issue still occurs. This very well could be environmental so any
pointers would be appreciated.

On my dev laptop, 64 bit JDK 1.6.0_26, everything works fine. When this
gets built on a Jenkins slave, using 32 bit JDK 1.6.0_17-b04, we get the
following failure:

*10:35:40*  
[org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer]
: Key: activemq.broker.url occurs twice; value tcp://localhost:61616
overwritten*10:35:40*
[org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer]
: Key: dst.directory occurs twice; value /data/camelblueprint/output
overwritten*10:35:40*
[org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer]
: Test Container started in 1 millis*10:35:40*
[org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer]
: Wait for test container to finish its initialization [
RelativeTimeout value = 180000 ]*10:35:40*
[org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting
for remote bundle context.. on 21413 name:
c4ade486-2933-4b3e-a179-1a9c5f2a1c27 timout: [ RelativeTimeout value =
180000 ]*10:35:42*  10:35:42,534 | WARN  | rint Extender: 1 |
KarArtifactInstaller             | 27 - org.apache.karaf.deployer.kar
- 2.2.2.fuse-02-06 | Unable to create directory for Karaf Archive
timestamps. Results may vary...*10:35:42*  10:35:42,560 | WARN  | JMX
OSGi Agent   | jmx                              | 29 -
org.apache.aries.jmx - 0.3.0 | There are no MBean servers registred,
can't register MBeans*10:35:42*  #*10:35:42*  # A fatal error has been
detected by the Java Runtime Environment:*10:35:42*  #*10:35:42*  #
SIGFPE (0x8) at pc=0x005db50c, pid=24118, tid=1866132400*10:35:42*
#*10:35:42*  # JRE version: 6.0_17-b04*10:35:42*  # Java VM: Java
HotSpot(TM) Server VM (14.3-b01 mixed mode linux-x86 )*10:35:42*  #
Problematic frame:*10:35:42*  # C  [ld-linux.so.2+0x850c]*10:35:42*
#*10:35:42*  # An error report file with more information is saved
as:*10:35:42*  #
/data/jenkins/workspace/FuseContainers-trunk/examples/camelblueprint/target/paxexam/unpack/29499314-ee98-4dee-9ccd-5a4e88e6e90f/hs_err_pid24118.log*10:35:42*
 #*10:35:42*  # If you would like to submit a bug report, please
visit:*10:35:42*  #
http://java.sun.com/webapps/bugreport/crash.jsp*10:35:42*  # The crash
happened outside the Java Virtual Machine in native code.*10:35:42*  #
See problematic frame for where to report the bug.*10:35:42*
#*10:38:40*  [org.ops4j.pax.exam.junit.JUnit4TestRunner] :
Exception*10:38:40*  java.lang.RuntimeException: Cannot get the remote
bundle context*10:38:40*        at
org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.getRemoteBundleContext(RemoteBundleContextClientImpl.java:275)*10:38:40*
        at 
org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.waitForState(RemoteBundleContextClientImpl.java:234)*10:38:40*
        at 
org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer.waitForState(KarafTestContainer.java:509)*10:38:40*
        at 
org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer.start(KarafTestContainer.java:183)*10:38:40*
        at 
org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactor.invoke(AllConfinedStagedReactor.java:67)*10:38:40*
        at 
org.ops4j.pax.exam.junit.JUnit4TestRunner$3.evaluate(JUnit4TestRunner.java:289)*10:38:40*
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)*10:38:40*
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)*10:38:40*
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)*10:38:40*
        at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)*10:38:40*
        at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)*10:38:40*
        at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)*10:38:40*
        at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)*10:38:40*
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)*10:38:40*
        at 
org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:87)*10:38:40*
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)*10:38:40*
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)*10:38:40*
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)*10:38:40*
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)*10:38:40*       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*10:38:40*
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*10:38:40*
        at java.lang.reflect.Method.invoke(Method.java:597)*10:38:40*   at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)*10:38:40*
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)*10:38:40*
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)*10:38:40*
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)*10:38:40*
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)*10:38:40*
 Caused by: java.rmi.NotBoundException:
c4ade486-2933-4b3e-a179-1a9c5f2a1c27*10:38:40*          at
sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)*10:38:40*
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown
Source)*10:38:40*       at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)*10:38:40*
        at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)*10:38:40*
        at sun.rmi.transport.Transport$1.run(Transport.java:159)*10:38:40*
        at java.security.AccessController.doPrivileged(Native
Method)*10:38:40*       at
sun.rmi.transport.Transport.serviceCall(Transport.java:155)*10:38:40*
        at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)*10:38:40*
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)*10:38:40*
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)*10:38:40*
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)*10:38:40*
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)*10:38:40*
        at java.lang.Thread.run(Thread.java:619)*10:38:40*      at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)*10:38:40*
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)*10:38:40*
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)*10:38:40*
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown
Source)*10:38:40*       at
org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.getRemoteBundleContext(RemoteBundleContextClientImpl.java:263)*10:38:40*
        ... 26 more


Thanks.

Jimmi

</pre><hr/><p style="margin: 0px; font-family:verdana; 
font-size:xx-small">NOTICE: This message contains privileged and confidential 
information intended only for the addressee. If you have received this message 
in error you must not disseminate, copy or take action on it; please notify 
[email protected] Opinions expressed in this message are 
those of the sender and do not necessarily represent those of Specsavers. 
Although this e-mail and any attachments are believed to be virus free, e-mail 
communications are not 100% secure and Specsavers makes no warranty that this 
message is secure or virus free. All references to Specsavers means Specsavers 
Optical Superstores Limited, a company limited by shares and registered in 
England under number 1721624 of Forum 6, Parkway, Solent Business Park, 
Whiteley, Fareham, Hampshire, PO15 7PA.  Nothing in this transmission shall or 
shall be deemed to constitute an offer or acceptance of an offer or otherwise 
have the effect of forming a contract by electronic communication. Your name 
and address may be stored to facilitate communication. 
</p>
<hr/>. 
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to