Having a Declarative Service with a Service reference like:
<reference
name="Db4oServiceFactory"
interface="com.db4o.osgi.Db4oService"
target="(component.factory=com.db4o.osgi.Db4oServiceFactory)"
bind="bindDB4O"
unbind="unbindDB4O"
cardinality="0..1"
policy="dynamic"
/>
will result in a ServiceLocationException in ch.ethz.iks.slp.impl.SLPMessage.attributeStringToList(String):
extra data found
s=[Ljava.lang.String;@1ac1e22),(Db4oServiceFactory.target=(c
^
happens on:
SLPServiceRegistration reg [...];
reg.register(advertiser);
I guess there are actually 2 Issues:
1. the String[] for the objectClass Attribute gets directly casted to String (somewhere along the way).
2. parse Error on:
(Db4oServiceFactory.target=(component.factory=com.db4o.osgi.Db4oServiceFactory))
(Probably the nested filter Expression?)
Version Info:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/protocols/bundles/ch.ethz.iks.slp/?root=RT_Project