[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[ecf-dev] R-Osgi will not run
|
Hi,
I cannot get the consumer and host example to work with r_osgi. It
works fine with the generic provider.
Below is the output of the host and the consumer:
It seems to be this line:
[log;+0200 2010.05.26
19:20:40:781;ERROR;org.eclipse.ecf.osgi.services.distribution;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.distribution;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl:handleDiscoveredServiceAvailable:getRemoteServiceReferences
result is empty. containerHelper=RemoteServiceContainer
[containerID=r-osgi://jongw-laptop:9278,
container=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@b4aec7,
containerAdapter=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@b4aec7]remoteReferences=null;severity4;exception=null;children=[]]]
I notice that I get two 9278 port attempts but that both fail. I never
get the "PORT ALREADY IN USE ..." notice. I am running Windows 7. My
colleagues are running XP and their machines work happily.
Im a bit stuck to what might cause it. I am also puzzled on how to
activate logging for r-osgi.
Thanks for any pointers,
Wim
CONSUMER
osgi> [log;+0200 2010.05.26
19:20:59:963;INFO;org.eclipse.ecf.osgi.services.discovery;OSGi ECF
service discovery: remote service discovered
serviceInfo
location=osgiservices://172.17.2.42:9278/svc_8WMto+/ng9CVOgTg0iREPKTcapk=
serviceID=jmdns:_osgiservices._tcp.default._iana@osgiservices://172.17.2.42:9278/svc_8WMto+/ng9CVOgTg0iREPKTcapk=
serviceName=svc_8WMto+/ng9CVOgTg0iREPKTcapk=
priority=0
weight=0
discoveryServiceProperties
name=osgi.remote.service.interfaces;value[String]=org.eclipse.ecf.examples.remoteservices.hello.IHello
name=ecf.rsvc.ns;value[String]=ecf.namespace.r_osgi.remoteservice
name=ecf.sp.cns;value[String]=ecf.namespace.r_osgi
name=ecf.sp.ect;value[String]=ecf.r_osgi.peer
name=ecf.rsvc.id;value[bytes]=[53,52],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@5b0668
name=ecf.sp.cid;value[bytes]=[114,45,111,115,103,105,58,47,47,108,111,99,97,108,104,111,115,116,58,57,50,55,56],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@1d5a0
osgiServiceProperties
osgiServiceInterfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello
endpointSupportedConfigs=ecf.r_osgi.peer
endpointContainerID=r-osgi://localhost:9278
endpointContainerIDNamespace=ecf.namespace.r_osgi
remoteServiceID=54
remoteServiceIDNamespace=ecf.namespace.r_osgi.remoteservice
]
[log;+0200 2010.05.26
19:20:59:970;INFO;org.eclipse.ecf.osgi.services.distribution;OSGi ECF
service distribution: retrievingRemoteServiceReferences
endpointDescription=RemoteServiceEndpointDescriptionImpl[svcInterfaces=[org.eclipse.ecf.examples.remoteservices.hello.IHello];supportedConfigTypes=[ecf.r_osgi.peer];serviceIntents=null;location=null;remoteServiceId=54;discoveryServiceID=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://172.17.2.42:9278/svc_8WMto+/ng9CVOgTg0iREPKTcapk=;full=_osgiservices._tcp.default._iana@osgiservices://172.17.2.42:9278/svc_8WMto+/ng9CVOgTg0iREPKTcapk=];endpointID=null;endpointAsID=r-osgi://localhost:9278;connectTargetID=null;remoteServicesFilter=null;props={ecf.rsvc.ns=ecf.namespace.r_osgi.remoteservice,
osgi.remote.service.interfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello,
ecf.sp.cns=ecf.namespace.r_osgi, ecf.rsvc.id=[B@5b0668,
ecf.sp.ect=ecf.r_osgi.peer, ecf.sp.cid=[B@1d5a0}]
remoteServiceContainer
ID=r-osgi://jongw-laptop:9278
connectedID=null
]
[log;+0200 2010.05.26
19:21:00:10;ERROR;org.eclipse.ecf.osgi.services.distribution;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.distribution;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl:handleDiscoveredServiceAvailable:getRemoteServiceReferences
result is empty. containerHelper=RemoteServiceContainer
[containerID=r-osgi://jongw-laptop:9278,
container=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@d56b37,
containerAdapter=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@d56b37]remoteReferences=null;severity4;exception=null;children=[]]]
HOST:
osgi> [log;+0200 2010.05.26
19:20:36:736;INFO;org.eclipse.ecf.osgi.services.distribution;OSGi ECF
service discovery: publish
serviceReference={org.eclipse.ecf.osgi.services.discovery.ServicePublication}={osgi.remote.discovery.publication.service.properties={},
ecf.rsvc.ns=ecf.namespace.r_osgi.remoteservice,
osgi.remote.service.interfaces=[org.eclipse.ecf.examples.remoteservices.hello.IHello],
ecf.rsvc.id=[53,52], ecf.sp.ect=[ecf.r_osgi.peer],
ecf.sp.cid=r-osgi://localhost:9278, service.id=55}
serviceInfo
location=osgiservices://172.17.2.42:9278/svc_8WMto+/ng9CVOgTg0iREPKTcapk=
serviceID=jmdns:_osgiservices._tcp.default._iana@osgiservices://172.17.2.42:9278/svc_8WMto+/ng9CVOgTg0iREPKTcapk=
serviceName=svc_8WMto+/ng9CVOgTg0iREPKTcapk=
priority=0
weight=0
discoveryServiceProperties
name=ecf.rsvc.ns;value[String]=ecf.namespace.r_osgi.remoteservice
name=osgi.remote.service.interfaces;value[String]=org.eclipse.ecf.examples.remoteservices.hello.IHello
name=ecf.sp.cns;value[String]=ecf.namespace.r_osgi
name=ecf.rsvc.id;value[bytes]=[53,52],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@1398ff8
name=ecf.sp.ect;value[String]=ecf.r_osgi.peer
name=ecf.sp.cid;value[bytes]=[114,45,111,115,103,105,58,47,47,108,111,99,97,108,104,111,115,116,58,57,50,55,56],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@1b0b6a
osgiServiceProperties
osgiServiceInterfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello
endpointSupportedConfigs=ecf.r_osgi.peer
endpointContainerID=r-osgi://localhost:9278
endpointContainerIDNamespace=ecf.namespace.r_osgi
remoteServiceID=54
remoteServiceIDNamespace=ecf.namespace.r_osgi.remoteservice
]
[log;+0200 2010.05.26
19:20:40:781;ERROR;org.eclipse.ecf.osgi.services.distribution;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.distribution;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl:handleDiscoveredServiceAvailable:getRemoteServiceReferences
result is empty. containerHelper=RemoteServiceContainer
[containerID=r-osgi://jongw-laptop:9278,
container=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@b4aec7,
containerAdapter=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@b4aec7]remoteReferences=null;severity4;exception=null;children=[]]]
[log;+0200 2010.05.26
19:20:41:744;INFO;org.eclipse.ecf.examples.remoteservices.hello.host;OSGi
ECF service distribution: registered
serviceReference={org.eclipse.ecf.examples.remoteservices.hello.IHello}={org.eclipse.ecf.containerFactoryArgs=r-osgi://localhost:9278,
service.exported.configs=ecf.r_osgi.peer,
service.exported.interfaces=*, service.id=53}
remoteServiceContainer
ID=r-osgi://localhost:9278
connectedID=null
remoteServiceRegistration
remoteServiceID=r_osgiremoteservice:r-osgi://localhost:9278/54
properties
name=service.id;value[java.lang.Long]=54
name=objectClass;value[java.lang.String[]]=[org.eclipse.ecf.examples.remoteservices.hello.IHello]
name=service.remote.registration;value[java.lang.Boolean]=true
name=ecf.rsvc.ranking;value[java.lang.Integer]=0
name=ecf.rsvc.id;value[java.lang.Long]=54
name=ecf.robjectClass;value[java.lang.String[]]=[org.eclipse.ecf.examples.remoteservices.hello.IHello]
name=ecf.rsvc.cid;value[org.eclipse.ecf.provider.r_osgi.identity.R_OSGiID]=r-osgi://localhost:9278
]
Host: Hello Service Registered