• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • jSLP
  • Bugs

Exception on Declarative Services with target Attribute

Status: Beta
Brought to you by: rjan
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Bugs
    • Support Requests
    • Patches
    • Feature Requests
  • News
  • Discussion
  • CVS
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#46 Exception on Declarative Services with target Attribute

open
nobody
jSLP-OSGi (18)
5
2009-03-12
2009-03-12
Anonymous
No

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?)

Discussion

  • Nobody/Anonymous

    Nobody/Anonymous - 2009-03-12

    Version Info:
    http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/protocols/bundles/ch.ethz.iks.slp/?root=RT_Project

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB