This is becoming a habit, sorry...
I've been trying to use dm Server and declarative services to provide an SPI, bundles present a service to a host bundle which has a selection mechanism and facade for the rest of the application.
I'm seeing:
trying to deploy the host bundle, before any services are added to it.Code:Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'memberType' of bean class [org.springframework.osgi.service.importer.support.OsgiServiceCollectionProxyFactoryBean]: Bean property 'memberType' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1012) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:857) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1338)
The OSGi context is thus:
I get this problem with no actual Java code in the bundle, just the context file... Any ideas?Code:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi" xsi:schemaLocation="http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-2.0-m1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <osgi:set id="tldHandlers" interface="com.othellonames.orp.tld.TLDHandler" /> </beans>


.
