[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] How to consume HelloWorld remote OSGI Samples in eclipse platform

Hi Markus and Pradeep,

On 4/21/2011 12:40 AM, Markus Alexander Kuppe wrote:
On 04/21/2011 09:04 AM, Pradeep Fernando wrote:
hi,

here is the error i'm getting;


osgi> [log;+0530 2011.04.21 12:20:42:118;ERROR;org.eclipse.ecf.osgi.services.remoteserviceadmin;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.remoteserviceadmin;code=4;message=org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin:importService:selectRemoteServiceReference returned null for rsRefs=[RemoteServiceReferenceImpl[registration=RemoteServiceRegistrationImpl[remoteServiceID=org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://localhost:3787/server];containerRelativeID=1];rserviceranking=0;classes=[org.eclipse.ecf.examples.remoteservices.hello.IHello];state=0;properties={ecf.rsvc.id=1}]]],targetID=StringID[ecftcp://localhost:3787/server],idFilter=[Lorg.eclipse.ecf.core.identity.ID;@7461f533,interfaces=[org.eclipse.ecf.examples.remoteservices.hello.IHello],rsFilter=null,rsContainerID=StringID[igztzOaP+19to5iQu/JDCEuxO3U=];severity4;exception=org.osgi.framework.BundleException: Bundle=org.eclipse.ecf.examples.remoteservices.hello in wrong state (4) for using BundleContext proxy service factory;children=[]]][log;+0530 2011.04.21 12:20:42:122;WARNING;org.eclipse.ecf.osgi.services.remoteserviceadmin;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.remoteserviceadmin;code=2;message=org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin:postEvent:No event admin available to post event=RemoteServiceAdminEvent[containerID=null, getType()=5, getSource()=org.eclipse.ecf.osgi.services.distribution_2.0.0.v20110313-1843 [21], getException()=org.osgi.framework.BundleException: Bundle=org.eclipse.ecf.examples.remoteservices.hello in wrong state (4) for using BundleContext proxy service factory, getImportReference()=null, getExportReference()=null];severity2;exception=null;children=[]]]

org.osgi.framework.BundleException:
Bundle=org.eclipse.ecf.examples.remoteservices.hello in wrong state
(4) for using BundleContext proxy service factory
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.getProxyServiceFactoryContext(RemoteServiceAdmin.java:1476)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.createAndRegisterProxy(RemoteServiceAdmin.java:1407)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.importService(RemoteServiceAdmin.java:1923)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.importService(RemoteServiceAdmin.java:302)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager.handleEndpointAdded(AbstractTopologyManager.java:225)
	at org.eclipse.ecf.internal.osgi.services.distribution.BasicTopologyManager.endpointAdded(BasicTopologyManager.java:77)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionLocator$1.dispatchEvent(EndpointDescriptionLocator.java:154)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
[log;+0530 2011.04.21
12:20:42:122;ERROR;org.eclipse.ecf.osgi.services.remoteserviceadmin;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.remoteserviceadmin;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.BasicTopologyManager:handleInvalidImportRegistration:importRegistration=ImportRegistration[importEndpoint=ImportEndpoint[rsReference=null,
proxyRegistration=null,
importReference=null]];severity4;exception=org.osgi.framework.BundleException:
Bundle=org.eclipse.ecf.examples.remoteservices.hello in wrong state
(4) for using BundleContext proxy service factory;children=[]]]
org.osgi.framework.BundleException:
Bundle=org.eclipse.ecf.examples.remoteservices.hello in wrong state
(4) for using BundleContext proxy service factory
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.getProxyServiceFactoryContext(RemoteServiceAdmin.java:1476)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.createAndRegisterProxy(RemoteServiceAdmin.java:1407)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.importService(RemoteServiceAdmin.java:1923)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.importService(RemoteServiceAdmin.java:302)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager.handleEndpointAdded(AbstractTopologyManager.java:225)
	at org.eclipse.ecf.internal.osgi.services.distribution.BasicTopologyManager.endpointAdded(BasicTopologyManager.java:77)
	at org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionLocator$1.dispatchEvent(EndpointDescriptionLocator.java:154)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)



--Pradeep
Hi Pradeep,

you will have to make sure the
org.eclipse.ecf.examples.remoteservices.hello bundle is in the ACTIVE
state prior to remoting.

Is this something specific to Felix? I've never seen it on Equinox. Should it be considered a framework bug?


Is there something we can do...with the examples or RSA...to prevent this?

Thanks,

Scott