Prepush Integration test Problems

瀏覽次數:69 次
跳到第一則未讀訊息

Christoph Prybila

未讀,
2012年3月3日 上午10:39:392012/3/3
收件者:OpenEngSB developer discussion
Hello,

I am working on OpenEngSB with Windows and Netbeans and I have some
problems while running the prepush tests.
First there is the problem with the JPATestIT, but I created an Issue
on that one.
(http://issues.openengsb.org/jira/browse/OPENENGSB-2791)

Beside of that the Integration Tests Fail due to some problems with
the Java VM, probably the heap space but I am not sure. Here is a
Snippet from the log.

Running org.openengsb.itests.exam.CleanOpenEngSBAssertsIT
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Dokumente%20und%20Einstellungen/
User/.m2/repository/org/apache/karaf/org.apache.karaf.client/2.2.5/
org.apache.karaf.client-2.2.5.jar!/org/slf4j/impl/
StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Dokumente%20und%20Einstellungen/
User/.m2/repository/org/slf4j/slf4j-simple/1.6.1/slf4j-
simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Dokumente%20und%20Einstellungen/
User/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.6.3/pax-
logging-api-1.6.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Dokumente%20und%20Einstellungen/
User/.m2/repository/org/slf4j/slf4j-log4j12/1.6.4/slf4j-
log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
223203 [main] ERROR 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(RemoteBundleContextClientImpl.java:
234)
at
org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer.waitForState(KarafTestContainer.java:
601)
at
org.openengsb.labs.paxexam.karaf.container.internal.KarafTestContainer.start(KarafTestContainer.java:
203)
at
org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactor.invoke(AllConfinedStagedReactor.java:
67)
at org.ops4j.pax.exam.junit.JUnit4TestRunner
$3.evaluate(JUnit4TestRunner.java:289)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:
79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
49)
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:
87)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:
234)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:
133)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:
114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:
188)
at org.apache.maven.surefire.booter.ProviderFactory
$ProviderProxy.invoke(ProviderFactory.java:166)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:
86)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:
101)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
74)
Caused by: java.rmi.NotBoundException: 1a467b49-52e5-4c0a-a8b1-
f6aa2c4bc32a
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:136)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
409)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:
267)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:
553)
at sun.rmi.transport.tcp.TCPTransport
$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport
$ConnectionHandler.run(TCPTransport.java:667)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:
273)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
251)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:377)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at
org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.getRemoteBundleContext(RemoteBundleContextClientImpl.java:
263)
... 27 more
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
223.281 sec <<< FAILURE!
Running org.openengsb.itests.exam.ConsoleIT
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 214
sec <<< FAILURE!
Running org.openengsb.itests.exam.DomainEndpointFactoryIT
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 224.25
sec <<< FAILURE!
Running org.openengsb.itests.exam.EDBIT
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

kind regards
Chris

Andreas Pieber

未讀,
2012年3月3日 中午12:09:392012/3/3
收件者:openen...@googlegroups.com
Interesting since this seams to be the inner runtime and not the outer
one. For this there are various reasons. I expect two possible
solutions:

1) you give so much memory to the main VM that the internal VM simply
cant grep enough from your system. I this case eitehr reduce the size
of regular mvn vm or put more ram into your system ;-)

2) just to make sure to use the latest avialble VM version

Kind regards,
Andreas

回覆所有人
回覆作者
轉寄
0 則新訊息