Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Problem getting Hello DS example to work
Problem getting Hello DS example to work [message #1292154] Fri, 11 April 2014 15:13 Go to next message
Craig Ching is currently offline Craig ChingFriend
Messages: 12
Registered: July 2009
Junior Member
I'm playing with the Hello samples from the ECF git repository. I can make hello.host and hello.consumer work using zeroconf,generic and I IIRC edef,generic, so that's cool. However, I want to play with the DS examples and they won't work at all. What can I do to troubleshoot this? I think starting with the service the first problem is that I don't see it listening on port 3787 as defined in the SCR component definition:

ecf.exported.containerfactoryargs=ecftcp://localhost:3787/server

Is that the right port to be looking for?

In the console window I'm only getting the osgi> prompt and nothing else, should I be seeing more here?

Where can I look for more information on this?

Thanks for any help!

Cheers,
Re: Problem getting Hello DS example to work [message #1292238 is a reply to message #1292154] Fri, 11 April 2014 16:46 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Craig,

Craig Ching wrote on Fri, 11 April 2014 11:13
I'm playing with the Hello samples from the ECF git repository. I can make hello.host and hello.consumer work using zeroconf,generic and I IIRC edef,generic, so that's cool. However, I want to play with the DS examples and they won't work at all. What can I do to troubleshoot this? I think starting with the service the first problem is that I don't see it listening on port 3787 as defined in the SCR component definition:

ecf.exported.containerfactoryargs=ecftcp://localhost:3787/server

Is that the right port to be looking for?

In the console window I'm only getting the osgi> prompt and nothing else, should I be seeing more here?

Where can I look for more information on this?

Thanks for any help!

Cheers,


Unfortunately, I'm not able to reproduce any problem with running the hello ds consumer...i.e. I just ran things locally just now (with latest/3.8.1) and it ran fine.

But before asking some questions...to help diagnose further...I should point out that we now have more recently created examples of using OSGi Remote Services...and these examples have more docs/tutorial associated with them...and they specifically emphasize the DS usage on the consumer.

I'm referring to the the 'timeservice' examples. Here's a tutorial associated with these examples:

https://wiki.eclipse.org/Tutorial:_Building_your_first_OSGi_Remote_Service

Here is the git location for them:

http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/examples/bundles

The projects all start with 'com.mycorp.examples.timeservice.*'

The 'Hello' examples...while still completely valid...were created before ECF's implementation of OSGi Remote Services was complete/operational. So although we are/will still maintain them, we are not emphasizing them in new documentation...rather we are emphasizing use of our impl of the OSGi Remote Services standard (which ECF fully implements...along with 'RSA'...Remote Service Admin...which is the enterprise standard remote services management agent).

One more thing to say...we are in the final testing phase prior to our 3.8.1 release (which we will probably use for the Juno simultaneous release)...and so you might wish to use this upcoming release, as it has special support for Java8 in remote services...e.g. see this description:

https://wiki.eclipse.org/ECF/Asynchronous_Remote_Services

Finally, if you want to use/test 3.8.1 prior to final release see:

http://build.ecf-project.org/repo/C-HEAD-sdk.feature/lastSuccessful/archive/site.p2/

But be advised that it's not released yet...with all the usual caveats.

Now...returning to your troubles with the hello examples.

First, what version of ECF (and Eclipse) are you using?

I'm assuming that you are running/starting these products configurations in Eclipse:

Host

/org.eclipse.ecf.examples.remoteservices.hello.host/products/Hello Service Host (zeroconf,generic).product

Consumer:

/org.eclipse.ecf.examples.remoteservices.hello.ds.consumer/products/Hello Service Consumer DS (zeroconf,generic).product

Is this right? (especially the consumer?)

If these are the ones that you are using then here are some questions to help diagnose:

a) If you start the host...and then the consumer...and on the consumer nothing but the OSGi> prompt appears (i.e. zeroconf discovery doesn't happen), then at the OSGi prompt on the consumer please type:

OSGi> ss

This will produce as output a listing of all the bundles running, their version, and their state. I would like to see the output of this (as new/reply posting)...as this will tell us if there is any bundle that shouldn't be there, should be there that isn't, and/or whether they are started properly. The reason this is important is that it could be that either the ECF Remote Services bundles aren't present or started...or perhaps even DS isn't present or started at proper level.

One thing you might try, however, would be to delete the launch configs that have been created (with the same name as the product config...in the Run/Debug Configurations... part of Eclipse). And after deleting them, simply recreate them by clicking on the product configuration 'Launch an Eclipse Application in Debug Mode' link in the lower left of the Eclipse product configuration editor.

Ok...please let me know how things go (by posting on this forum), and I'll help as much as necessary. Another thing you might wish to do (if you want to follow even closer what's going on with ECF) is to join the ecf-dev mailing list:

https://dev.eclipse.org/mailman/listinfo/ecf-dev

I and other committers will provide support in both locations, however.


Re: Problem getting Hello DS example to work [message #1292334 is a reply to message #1292238] Fri, 11 April 2014 18:36 Go to previous messageGo to next message
Craig Ching is currently offline Craig ChingFriend
Messages: 12
Registered: July 2009
Junior Member
Hey Scott,

Thanks for the quick response! So, quite a lengthy response and I'll get to the rest of it if it's relevant after I ask this:

Scott Lewis wrote on Fri, 11 April 2014 12:46

Host

/org.eclipse.ecf.examples.remoteservices.hello.host/products/Hello Service Host (zeroconf,generic).product


I'm using the Hello Service DS Host, should I not be using that one? I had really hoped I could use DS for both the host and the consumer.

As for the version, I think I'm using 3.8.0, I used the "latest" link to build my target platform and it seems like that's what the stuff under the software site link configuration in my TP says (I installed both ECF SDK 3.8.0 and OSGi Remove Services SDK 3.8.0). But when I look at ss output, I have a mix of versions on the bundles, but I could see that being normal. Here's ss output on the DS host:

osgi> ss
"Framework is launched."


id State Bundle
0 ACTIVE org.eclipse.osgi_3.9.1.v20140110-1610
2 ACTIVE org.eclipse.equinox.common_3.6.200.v20130402-1505
3 ACTIVE org.eclipse.equinox.util_1.0.500.v20130404-1337
4 ACTIVE org.eclipse.ecf.examples.remoteservices.hello.ds.host_3.0.0.qualifier
6 ACTIVE org.eclipse.equinox.app_1.3.100.v20130327-1442
7 ACTIVE org.eclipse.ecf.identity_3.2.0.v20130604-1622
8 ACTIVE org.eclipse.ecf.osgi.services.distribution_2.0.300.v20140309-0741
9 ACTIVE org.eclipse.core.contenttype_3.4.200.v20130326-1255
10 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
11 ACTIVE org.eclipse.ecf.examples.remoteservices.hello_3.0.100.qualifier
12 ACTIVE org.eclipse.equinox.console_1.0.100.v20130429-0953
13 ACTIVE org.eclipse.equinox.concurrent_1.1.0.v20130327-1442
14 ACTIVE org.eclipse.ecf_3.2.0.v20130604-1622
16 ACTIVE org.eclipse.ecf.provider.jmdns_4.2.0.v20140309-0741
17 RESOLVED org.eclipse.osgi.services.remoteserviceadmin_1.5.0.v20140309-0741
18 ACTIVE org.eclipse.ecf.sharedobject_2.4.0.v20140309-0741
19 ACTIVE org.eclipse.core.jobs_3.5.300.v20130429-1813
20 ACTIVE org.eclipse.equinox.event_1.3.0.v20130327-1442
22 RESOLVED org.eclipse.osgi.services_3.3.100.v20130513-1956
23 ACTIVE org.eclipse.ecf.remoteservice_8.3.0.v20140309-0741
24 ACTIVE org.eclipse.ecf.provider_4.4.0.v20140309-0741
25 ACTIVE org.eclipse.ecf.discovery_5.0.0.v20140309-0741
26 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
27 RESOLVED javax.xml_1.3.4.v201005080400
28 ACTIVE org.eclipse.ecf.provider.remoteservice_4.0.100.v20140309-0741
29 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
30 ACTIVE org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy_1.0.0.v20140309-0741
31 ACTIVE org.eclipse.equinox.preferences_3.5.100.v20130422-1538
32 ACTIVE org.eclipse.ecf.osgi.services.remoteserviceadmin_4.0.0.v20140309-0741
33 ACTIVE org.eclipse.equinox.ds_1.4.101.v20130813-1853
34 ACTIVE org.eclipse.core.runtime_3.9.100.v20131218-1515
35 ACTIVE org.eclipse.equinox.registry_3.5.301.v20130717-1549
osgi>

Thanks much for your help!

Cheers,
Re: Problem getting Hello DS example to work [message #1313403 is a reply to message #1292334] Thu, 24 April 2014 21:44 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

>
I'm using the Hello Service DS Host, should I not be using that one? I had really hoped I could use DS for both the host and the consumer.

You can.
Previous Topic:Make an service that is already registered remote?
Next Topic:Reuse Eclipse proxy handling when making HTTP connections
Goto Forum:
  


Current Time: Thu Mar 28 16:41:41 GMT 2024

Powered by FUDForum. Page generated in 0.01823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top