Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Problem with ECF Hello examples
Problem with ECF Hello examples [message #625196] Mon, 12 April 2010 14:38 Go to next message
Jorge is currently offline Jorge
Messages: 11
Registered: March 2010
Junior Member
Hello, I'm having trouble running the examples:

org.eclipse.ecf.internal.examples.remoteservices.hello
org.eclipse.ecf.internal.examples.remoteservices.hello.consu mer
org.eclipse.ecf.internal.examples.remoteservices.hello.host

The problem is that when I run, sometimes they work and make remote calls, and sometimes not. I thought it might be a problem with the port but even restarting the PC same thing happens. This is the log showing:


Host:

[log;+0200 2010.04.12 20:32:15:148;WARNING;org.eclipse.ecf.osgi.services.distribut ion;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.o sgi.services.distribution;code=2;message=org.eclipse.ecf.int ernal.osgi.services.distribution.DiscoveredServiceTrackerImp l:handleDiscoveredServiceAvailable:No local RemoteServiceContainers found for endpoint description=ServiceEndpointDescriptionImpl[;providedInterfac es=[org.eclipse.ecf.examples.remoteservices.hello.IHello];su pportedConfigTypes[ecf.generic.server];serviceIntentsnull;lo cation=null;remoteServiceId=0;discoveryServiceID=ServiceID[t ype=ServiceTypeID[typeName=_osgiservices._tcp.default._iana] ;location=osgiservices://192.168.1.101:3787;full= _osgiservices._tcp.default._iana@osgiservices://192.168.1.10 1:3787];endpointID=null;endpointAsID=StringID[ecftcp://localhost:3787/server ];connectTargetID=null;remoteServicesFilter=null;props={ecf. rsvc.ns=ecf.namespace.generic.remoteservice, osgi.remote.service.interfaces=org.eclipse.ecf.examples.remo teservices.hello.IHello, ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, ecf.rsvc.id=[B@10efd7c, ecf.sp.ect=ecf.generic.server, ecf.sp.cid=[B@12412e7}];severity2;exception=null;children=[]]]
Host: Hello Service Registered

Consumer:

osgi> [log;+0200 2010.04.12 20:32:28:488;WARNING;org.eclipse.ecf.osgi.services.distribut ion;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.o sgi.services.distribution;code=2;message=org.eclipse.ecf.int ernal.osgi.services.distribution.DiscoveredServiceTrackerImp l:handleDiscoveredServiceAvailable:No local RemoteServiceContainers found for endpoint description= org.eclipse.ecf.provider.localdiscovery.RemoteServiceEndpoin tDescriptionImpl @19a029e;severity2;exception=null;children=[]]]

Have you had this problem? Thanks for your help.
Re: Problem with ECF Hello examples [message #625197 is a reply to message #625196] Tue, 13 April 2010 17:56 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
Hi Jorge,

Jorge wrote:
> Hello, I'm having trouble running the examples:
>
> org.eclipse.ecf.internal.examples.remoteservices.hello
> org.eclipse.ecf.internal.examples.remoteservices.hello.consu mer
> org.eclipse.ecf.internal.examples.remoteservices.hello.host
>
> The problem is that when I run, sometimes they work and make remote
> calls, and sometimes not. I thought it might be a problem with the port
> but even restarting the PC same thing happens. This is the log showing:
>
>
> Host:
>
> [log;+0200 2010.04.12
> 20:32:15:148;WARNING;org.eclipse.ecf.osgi.services.distribut ion;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.o sgi.services.distribution;code=2;message=org.eclipse.ecf.int ernal.osgi.services.distribution.DiscoveredServiceTrackerImp l:handleDiscoveredServiceAvailable:No
> local RemoteServiceContainers found for endpoint
> description=ServiceEndpointDescriptionImpl[;providedInterfac es=[org.eclipse.ecf.examples.remoteservices.hello.IHello];su pportedConfigTypes[ecf.generic.server];serviceIntentsnull;lo cation=null;remoteServiceId=0;discoveryServiceID=ServiceID[t ype=ServiceTypeID[typeName=_osgiservices._tcp.default._iana] ;location=osgiservices://192.168.1.101:3787;full= _osgiservices._tcp.default._iana@osgiservices://192.168.1.10 1:3787];endpointID=null;endpointAsID=StringID[ecftcp://localhost:3787/server ];connectTargetID=null;remoteServicesFilter=null;props={ecf. rsvc.ns=ecf.namespace.generic.remoteservice,
> osgi.remote.service.interfaces=org.eclipse.ecf.examples.remo teservices.hello.IHello,
> ecf.sp.cns=org.eclipse.ecf.core.identity.StringID,
> ecf.rsvc.id=[B@10efd7c, ecf.sp.ect=ecf.generic.server,
> ecf.sp.cid=[B@12412e7}];severity2;exception=null;children=[]]]
> Host: Hello Service Registered
>
> Consumer:
>
> osgi> [log;+0200 2010.04.12
> 20:32:28:488;WARNING;org.eclipse.ecf.osgi.services.distribut ion;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.o sgi.services.distribution;code=2;message=org.eclipse.ecf.int ernal.osgi.services.distribution.DiscoveredServiceTrackerImp l:handleDiscoveredServiceAvailable:No
> local RemoteServiceContainers found for endpoint
> description= org.eclipse.ecf.provider.localdiscovery.RemoteServiceEndpoin tDescriptionImpl @19a029e;severity2;exception=null;children=[]]]


This message indicates that although the service is discovered, there
are no client remote service containers created to use it.

On the consumer/client side...which product are you starting from? It
looks like you are using the ECF generic provider on the service host
(i.e. ecf.generic.server is what is used on the host)...but are you
starting the client with -containerType ecf.generic.client (the default
is r-osgi...and since you are using the ecf.generic.server on the
service host the consumer does not have a compatible container type when
discovered, and that's why it says: "No local RemoteServiceContainers
found for endpoint...")

At least that's the way it looks. Not that the product configurations
(in products directory in hello.consumer project) have products that can
be used to determine which provider to use when launched. These
products just specify a command line parameter...e.g. -containerType
ecf.generic.client that specifies the type of container to create for/on
the client.

The main/important thing is that the container type is
appropriate/compatible on both ends (i.e. ecf.generic.server and
ecf.generic.client...or ecf.r-osgi.peer on both).

BTW, you can set a breakpoint on line 57 of
org.eclipse.ecf.internal.examples.remoteservices.hello.consu mer.HelloConsumerApplication
and you can see what the container type is by examining the value of the
containerType member variable.

Hope this helps. Please let all know if this does not fix what you are
experiencing.

Scott
Previous Topic:Share Editor with Open Fire XMPPS
Next Topic:Remote service registration using OSGi Blueprint
Goto Forum:
  


Current Time: Mon Sep 01 14:50:53 EDT 2014

Powered by FUDForum. Page generated in 0.18144 seconds