Hi, I've taken a look at the failures and they all seem to stem from an inconsistency in the spec. The JmxConstants defines the tabular data type for the PROPERTIES_TYPE to be "PROPERTIES". Other bits of the spec indicate it should be "Properties". The CT uses "Properties" and our runtime validates the type against JmxConstants.PROPERTIES_TYPE and they don't match because of the mixture of case.
I'll raise a bug against the spec. Alasdair On 22 August 2011 06:48, David Bosschaert <[email protected]>wrote: > Hi all, > > I'm looking at the possibility of enhancing the Apache Aries > implementation so that it could become an implementation of the > updated OSGi-JMX spec (RFC 169 in [1]). > > As a starting point I was running the unmodified implementation > against the OSGi JMX TCK to see where we stand :) > With that I'm currently getting 14 errors (and 94 passes), where the > problems are either 'Invalid CompositeType' or 'Invalid TabularType' > ones (see below for two examples). > > <test name='testAddInformation' > class='org.osgi.test.cases.jmx.junit.ProvisioningServiceMBeanTestCase'> > <error > name='testAddInformation(org.osgi.test.cases.jmx.junit.ProvisioningServiceMBeanTestCase)' > type='java.lang.IllegalArgumentException: Invalid CompositeType > > [javax.management.openmbean.CompositeType(name=Property,items=((itemName=Key,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=Type,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=Value,itemType=javax.management.openmbean.SimpleType(name=java.lang.String))))]'> > <test name='testConfigurationGetBundleLocation' > class='org.osgi.test.cases.jmx.junit.ConfigurationAdminMBeanTestCase'> > <error > name='testConfigurationGetBundleLocation(org.osgi.test.cases.jmx.junit.ConfigurationAdminMBeanTestCase)' > type='java.io.IOException: Invalid TabularType > > [javax.management.openmbean.TabularType(name=Properties,rowType=javax.management.openmbean.CompositeType(name=Property,items=((itemName=Key,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=Type,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=Value,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)))),indexNames=(Key))]'> > > Are these errors known/expected or has anyone been able to run Aries > JMX successfully against the OSGi TCK? > > Thanks, > > David > > [1] http://www.osgi.org/download/osgi-early-draft-2011-05.pdf > -- Alasdair Nottingham [email protected]
