Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348391

Summary: [cm] Config Admin fails CT (3/26)
Product: [Eclipse Project] Equinox Reporter: John Ross <jwross>
Component: CompendiumAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: 3.7   
Target Milestone: Luna   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 348062    

Description John Ross CLA 2011-06-06 09:42:06 EDT
CM is currently failing the following tests.

org.osgi.test.cases.cm
org.osgi.test.cases.cm.junit.CMControl
testDynamicBinding(org.osgi.test.cases.cm.junit.CMControl)
junit.framework.ComparisonFailure: Dynamic binding(UNINSTALLED):confs[0].getBundleLocation() must be the target bundle expected:<bundleentry://4.fwk15218962/targetb1.jar> but was:<null>

	at junit.framework.Assert.assertEquals(Assert.java:81)

	at org.osgi.test.cases.cm.junit.CMControl.testDynamicBinding(CMControl.java:862)

	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 junit.framework.TestCase.runTest(TestCase.java:164)

	at junit.framework.TestCase.runBare(TestCase.java:130)

	at junit.framework.TestResult$1.protect(TestResult.java:106)

	at junit.framework.TestResult.runProtected(TestResult.java:124)

	at junit.framework.TestResult.run(TestResult.java:109)

	at junit.framework.TestCase.run(TestCase.java:120)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at aQute.junit.Activator.test(Activator.java:200)

	at aQute.junit.Activator.run(Activator.java:51)



testManagedServiceRegistrationWithMultiplPIDs(org.osgi.test.cases.cm.junit.CMControl)
junit.framework.AssertionFailedError: ManagedService MUST be called back even if no configuration.

	at junit.framework.Assert.fail(Assert.java:47)

	at junit.framework.Assert.assertTrue(Assert.java:20)

	at org.osgi.test.cases.cm.junit.CMControl.internalTestRegisterManagedServiceWithMultiplePIDs(CMControl.java:2031)

	at org.osgi.test.cases.cm.junit.CMControl.testManagedServiceRegistrationWithMultiplPIDs(CMControl.java:1988)

	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 junit.framework.TestCase.runTest(TestCase.java:164)

	at junit.framework.TestCase.runBare(TestCase.java:130)

	at junit.framework.TestResult$1.protect(TestResult.java:106)

	at junit.framework.TestResult.runProtected(TestResult.java:124)

	at junit.framework.TestResult.run(TestResult.java:109)

	at junit.framework.TestCase.run(TestCase.java:120)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at aQute.junit.Activator.test(Activator.java:200)

	at aQute.junit.Activator.run(Activator.java:51)



testManagedServiceRegistrationDuplicatedTargets(org.osgi.test.cases.cm.junit.CMControl)
junit.framework.AssertionFailedError: Both ManagedService MUST be called back even if no configuration.

	at junit.framework.Assert.fail(Assert.java:47)

	at junit.framework.Assert.assertTrue(Assert.java:20)

	at org.osgi.test.cases.cm.junit.CMControl.testManagedServiceRegistrationDuplicatedTargets(CMControl.java:2139)

	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 junit.framework.TestCase.runTest(TestCase.java:164)

	at junit.framework.TestCase.runBare(TestCase.java:130)

	at junit.framework.TestResult$1.protect(TestResult.java:106)

	at junit.framework.TestResult.runProtected(TestResult.java:124)

	at junit.framework.TestResult.run(TestResult.java:109)

	at junit.framework.TestCase.run(TestCase.java:120)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at aQute.junit.Activator.test(Activator.java:200)

	at aQute.junit.Activator.run(Activator.java:51)
Comment 1 Thomas Watson CLA 2012-04-25 11:20:37 EDT
Not happening for Juno.
Comment 2 Thomas Watson CLA 2014-02-24 10:30:23 EST
This has been fixed in Luna.