[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[gemini-dev] Issue in integration test.
|
Hi all,
I still trying to make a full installation work on the master branch. I have found, I think some issues and solutions.
I have finally found where the issue comes from for the bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=381871
I can propose a patch for this one.
I have found in the same time that boot-bundles.properties is not in sync with the build process so I a have patch to filter the resource with the maven properties.
But when I do it I fall into a new issue. Can someone help me to explain the following stack?
-------------------------------------------------------------------------------
Test set: org.eclipse.gemini.blueprint.iandt.serviceProxyFactoryBean.ServiceProxyFactoryBeanTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.594 sec <<< FAILURE!
testFactoryBeanForOneServiceAsClass(org.eclipse.gemini.blueprint.iandt.serviceProxyFactoryBean.ServiceProxyFactoryBeanTest) Time elapsed: 0 sec <<< ERROR!
java.lang.IllegalStateException: Unable to dynamically start generated unit test bundle
at org.eclipse.gemini.blueprint.test.AbstractOnTheFlyBundleCreatorTests.postProcessBundleContext(AbstractOnTheFlyBundleCreatorTests.java:530)
at org.eclipse.gemini.blueprint.test.AbstractConfigurableBundleCreatorTests.postProcessBundleContext(AbstractConfigurableBundleCreatorTests.java:221)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:245)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:357)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:188)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:170)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.run(AbstractOsgiTests.java:167)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
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:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: org.osgi.framework.BundleException: The bundle "TestBundle-testFactoryBeanForOneServiceAsClass-org.eclipse.gemini.blueprint.iandt.serviceProxyFactoryBean.ServiceProxyFactoryBeanTest_0.0.0 [20]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.gemini.blueprint.iandt; version="0.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
at org.eclipse.gemini.blueprint.test.AbstractOnTheFlyBundleCreatorTests.installAndStartBundle(AbstractOnTheFlyBundleCreatorTests.java:550)
at org.eclipse.gemini.blueprint.test.AbstractOnTheFlyBundleCreatorTests.postProcessBundleContext(AbstractOnTheFlyBundleCreatorTests.java:527)
... 31 more
-------------------------------------------------------------------------------
Test set: org.eclipse.gemini.blueprint.iandt.serviceProxyFactoryBean.ServiceProxyFactoryBeanTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.594 sec <<< FAILURE!
testFactoryBeanForOneServiceAsClass(org.eclipse.gemini.blueprint.iandt.serviceProxyFactoryBean.ServiceProxyFactoryBeanTest) Time elapsed: 0 sec <<< ERROR!
java.lang.IllegalStateException: Unable to dynamically start generated unit test bundle
at org.eclipse.gemini.blueprint.test.AbstractOnTheFlyBundleCreatorTests.postProcessBundleContext(AbstractOnTheFlyBundleCreatorTests.java:530)
at org.eclipse.gemini.blueprint.test.AbstractConfigurableBundleCreatorTests.postProcessBundleContext(AbstractConfigurableBundleCreatorTests.java:221)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:245)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:357)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:188)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:170)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.eclipse.gemini.blueprint.test.AbstractOsgiTests.run(AbstractOsgiTests.java:167)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
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:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: org.osgi.framework.BundleException: The bundle "TestBundle-testFactoryBeanForOneServiceAsClass-org.eclipse.gemini.blueprint.iandt.serviceProxyFactoryBean.ServiceProxyFactoryBeanTest_0.0.0 [20]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.gemini.blueprint.iandt; version="0.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
at org.eclipse.gemini.blueprint.test.AbstractOnTheFlyBundleCreatorTests.installAndStartBundle(AbstractOnTheFlyBundleCreatorTests.java:550)
at org.eclipse.gemini.blueprint.test.AbstractOnTheFlyBundleCreatorTests.postProcessBundleContext(AbstractOnTheFlyBundleCreatorTests.java:527)
... 31 more
Thanks in advance,
Regards,
Romain.