Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Problem using multiple services from single server

On 3/12/2015 4:57 AM, Peter Hermsdorf wrote:
Hi,

my switch to Eclipse 3.8 (Juno) and with that to ECF 3.9.3 was so far successful. That means after fiddling around with dependencies, launch configs and feature configuration i have a running server and a running RCP app with working _multiple_ service discovery - as expected! great!

:) so far so good. I still need to fix the build and test suites but that seems possible till now.

current open points:
1) on client side i still see the following error for every service imported:

!ENTRY org.eclipse.ecf.osgi.services.remoteserviceadmin 4 0 2015-03-12 10:58:40.889
!MESSAGE org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.remoteserviceadmin;code=4;message=org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin:postEvent:No EventAdmin service available to send eventTopic=org/osgi/service/remoteserviceadmin/IMPORT_REGISTRATION eventProperties={event=RemoteServiceAdminEvent[containerID=StringID[ecftcp://peter-desktop:8889/server], getType()=1, getSource()=org.eclipse.ecf.osgi.services.remoteserviceadmin_4.2.0.v20150306-2024 [91], getException()=null, getImportReference()=org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin$ImportReference@1276b35, getExportReference()=null], bundle.id=91, objectClass=[Ljava.lang.String;@ef769a, timestamp=1426154320883, endpoint.id=ecftcp://peter-desktop:8889/server, service.imported.configs=[Ljava.lang.String;@153b262, bundle.symbolicname=org.eclipse.ecf.osgi.services.remoteserviceadmin, import.registration=ECFEndpointDescription[{component.id=3, component.name=com.godyo.service, ecf.endpoint.id.ns=org.eclipse.ecf.core.identity.StringID, ecf.generic.server.port=8889, endpoint.id=ecftcp://peter-desktop:8889/server, endpoint.package.version.com.godyo.service.api=1.0.0, objectClass=[Ljava.lang.String;@137cdb0, remote.configs.supported=[Ljava.lang.String;@a111ba, remote.intents.supported=[Ljava.lang.String;@92e44d, service.imported=org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceImpl@1e47e28, service.imported.configs=[Ljava.lang.String;@16a85a}], bundle=org.eclipse.ecf.osgi.services.remoteserviceadmin_4.2.0.v20150306-2024 [91], bundle.version=4.2.0.v20150306-2024, bundle.signer=[Ljava.lang.String;@186ec5b};severity4;exception=null;children=[]]

but nevertheless the services are discovered and working

This message simply indicates that there is no consumer-side EventAdmin implementation available to distributed the IMPORT_REGISTRATION event as per the OSGi specification.  The spec says that such an event must be delivered via EventAdmin, and ECF prints the above if there is no EventAdmin present. 

Of course I can't tell, but you may eventually want to include EventAdmin in your client/consumer...if only because with the Eclipse UI 4.x stream (once you go to it), EventAdmin is used heavily.  The Equinox impl of EventAdmin is in this bundle:  org.eclipse.equinox.event.   If you have this bundle present then the above message from RSA impl will disappear.  As you have noted it isn't required for RSA operation, so at least until it's required for something else (4.x UI) you can leave it out and ECF will generate this message to log without any harmful effects.

It's good to hear that 3.8 + 3.9.3 will/is working for you, since presumably you want to be on a sustainable path for your product development.   I can't really speak to 3.8-specific issues though (only ECF RSA)...I hope this doesn't cause or lead to other problems, but I do think it's likely to be better than staying with Eclipse Indigo/Equinox 3.7/OSGi 4/ECF 3.7 for much longer.

Scott


Back to the top