[
https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60372#action_60372
]
Freeman Fang edited comment on SMX4-545 at 7/1/10 12:28 AM:
------------------------------------------------------------
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start nmr-osgi bundle for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache
ServiceMix NMR OSGi
(org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see
org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle
[Apache ServiceMix NMR OSGi
(org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at
org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at
org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at
org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at
org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at
org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at
org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception
starting up
Seems now we have two system bundles(one with bundle id 0, one with bundle id
5, the second one should be here) both export org.osgi.util.tracker which
cause this error.
Best Regards
Freeman
was (Author: ffang):
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start nmr-osgi bundle for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache
ServiceMix NMR OSGi
(org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see
org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle
[Apache ServiceMix NMR OSGi
(org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at
org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at
org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at
org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at
org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at
org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at
org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception
starting up
Seems now we have two system bundle which export different version of
org.osgi.util.tracker which cause this error.
Best Regards
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff
> that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working
> properly. We need to update to Aries to get the fix, but that means also
> updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.