Results 1 to 3 of 3

Thread: org.springframework.osgi.service.ServiceUnavailabl eException of available service

  1. #1
    Join Date
    Jun 2006
    Posts
    27

    Default org.springframework.osgi.service.ServiceUnavailabl eException of available service

    Hi, i am using Spring DM 2.0.0 M1 and i get a weird error telling me that a service is not available: org.springframework.osgi.service.ServiceUnavailabl eException

    The thing is that this service is available. I verfify that by creating a service tracker in another bundle that started and the service shows up. And even when i use "bundle myServiceExportingBundle" under the eclipse console i see that the service is exported under the correct interface.

    What bothers me is that the execption occurs when accessing the proxy of the service inside of the class that depends on the service. I thougt that it should never reach this point because of the unavailability.

  2. #2
    Join Date
    Jun 2006
    Posts
    27

    Default

    Fixed it. The problem was that an exeception was thrown inside of the service. The service was available but in a stale state. I recommend to always look into the metadata\.plugins\org.eclipse.pde.core Folder when hunting down issues inside of eclipse.

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Moved thread to dmServer area. By the way, glad to see the issue is resolved.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •