[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 Scott,

On 22 April 2011 05:25, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:
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?

Pradeep has tried this on Equinox.
Â
Â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?

I think we should mention this in the user guide for samples. For example, if we are trying a sample, what set of bundles to be started and ÂtheirÂprerequisites. That will certainly help new comers to ECF IMHO.


Thanks and Regards,
Harshana

Thanks,

Scott



_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



--
Thanks and Regards,
Harshana Martin
--
Harshana Eranga Martin
Software Engineer,
WSO2 Inc.
Web: http://wso2.comÂ
ÂÂ Â Â Â ÂÂhttp://wso2.org

ECF Committer: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05