Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Problem understand - "Discovery of Remote Services
Problem understand - "Discovery of Remote Services [message #624331] Tue, 18 November 2008 06:49 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hello All,
I am trying to understand the Discovery of Remote
Services(http://wiki.eclipse.org/Discovery_of_Remote_Services) example,
but I am facing a problem running the same. Problem mentioned below.


Problem:On running the org.eclipse.ecf.remoteservices.server, the service
tracker returns a null value for the discovery service.
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)
at
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:94)
at
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:112)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

I am using Eclipse Ganymede and the latest ECF plugins.

It would be nice if someone could point me in the right direction.
Thanks in Advance.

Regards,
Neeraj Bhusare.


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Problem understand - "Discovery of Remote Services [message #624335 is a reply to message #624331] Tue, 18 November 2008 22:03 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Neeraj,

This can happen for a number of reasons (i.e. no IDiscoveryService
instances are found), but a common reason is that no provider bundle is
available/started.

Could this be the case with your configuration? i.e. do you have either
or both of the bundles:

org.eclipse.ecf.provider.jmdns (zeroconf)
org.eclipse.ecf.provider.jslp (slp)

installed in your target platform? You need at least one of these,
along with org.eclipse.ecf.discovery to have an IDiscoveryService
available via the service tracker.

Thanks. Do let us know if this solves your problem...if not we'll
attempt to help in other ways. BTW, you might be interested in the
slides (available after) from the talk given tomorrow at ESE 2008:
http://www.eclipsecon.org/summiteurope2008/sessions?id=89

Thanks,

Scott

Neeraj wrote:
> Hello All,
> I am trying to understand the Discovery of Remote
> Services(http://wiki.eclipse.org/Discovery_of_Remote_Services) example,
> but I am facing a problem running the same. Problem mentioned below.
>
> Problem:On running the org.eclipse.ecf.remoteservices.server, the
> service tracker returns a null value for the discovery service.
> org.eclipse.core.runtime.AssertionFailedException: null argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)
> at
> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:94)
>
> at
> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:112)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>
> I am using Eclipse Ganymede and the latest ECF plugins.
>
> It would be nice if someone could point me in the right direction.
> Thanks in Advance.
>
> Regards,
> Neeraj Bhusare.
>
Re: Problem understand - "Discovery of Remote Services [message #624336 is a reply to message #624335] Wed, 19 November 2008 06:48 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hi Scott,
Thanks for the reply. Please find my comments below.

Scott Lewis wrote:

> Hi Neeraj,

> This can happen for a number of reasons (i.e. no IDiscoveryService
> instances are found), but a common reason is that no provider bundle is
> available/started.

> Could this be the case with your configuration? i.e. do you have either
> or both of the bundles:

> org.eclipse.ecf.provider.jmdns (zeroconf)
> org.eclipse.ecf.provider.jslp (slp)

> installed in your target platform? You need at least one of these,
> along with org.eclipse.ecf.discovery to have an IDiscoveryService
> available via the service tracker.

I do have the org.eclipse.ecf.Discovery bundle installed. Based on your
suggestion, I included the other two - *.provider.jmnds and
*.provider.jspl in the target platform, but I still get a null value for
the IDiscoveryService instance.
Secondly, I tried the P2 Discovery example, and it seems to be working
fine.
Unlike the earlier example, this one only imports specific packages that
are required.

> Thanks. Do let us know if this solves your problem...if not we'll
> attempt to help in other ways.

I would be happy to know the other ways in which this problem can be
solved.

BTW, you might be interested in the slides (available after) from the talk
given tomorrow at ESE 2008:
http://www.eclipsecon.org/summiteurope2008/sessions?id=89

Ya sure. I am interested and looking forward to have a look at the slides.

> Thanks,

> Scott

Thanks,
Neeraj Bhusare

> Neeraj wrote:
>> Hello All,
>> I am trying to understand the Discovery of Remote
>> Services(http://wiki.eclipse.org/Discovery_of_Remote_Services) example,
>> but I am facing a problem running the same. Problem mentioned below.
>>
>> Problem:On running the org.eclipse.ecf.remoteservices.server, the
>> service tracker returns a null value for the discovery service.
>> org.eclipse.core.runtime.AssertionFailedException: null argument:
>> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)
>> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)
>> at
>>
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:94)
>>
>> at
>>
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:112)
>>
>> at
>>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>>
>> I am using Eclipse Ganymede and the latest ECF plugins.
>>
>> It would be nice if someone could point me in the right direction.
>> Thanks in Advance.
>>
>> Regards,
>> Neeraj Bhusare.
>>


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Problem understand - "Discovery of Remote Services [message #624343 is a reply to message #624336] Fri, 21 November 2008 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.lemmster.de

Neeraj wrote:

> BTW, you might be interested in the slides (available after) from the
> talk given tomorrow at ESE 2008:
> http://www.eclipsecon.org/summiteurope2008/sessions?id=89
>
> Ya sure. I am interested and looking forward to have a look at the slides.

http://www.eclipse.org/ecf/presentations/ese08/ESE_2008_ECF. pdf

Markus
Re: Problem understand - "Discovery of Remote Services [message #624434 is a reply to message #624343] Fri, 28 November 2008 15:24 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Thanks Markus for the links...

Markus Kuppe wrote:

> Neeraj wrote:

>> BTW, you might be interested in the slides (available after) from the
>> talk given tomorrow at ESE 2008:
>> http://www.eclipsecon.org/summiteurope2008/sessions?id=89
>>
>> Ya sure. I am interested and looking forward to have a look at the slides.

> http://www.eclipse.org/ecf/presentations/ese08/ESE_2008_ECF. pdf

> Markus

Regards,
Neeraj Bhusare


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Problem understand - "Discovery of Remote Services [message #902282 is a reply to message #624434] Thu, 16 August 2012 18:13 Go to previous message
Jan Novacek is currently offline Jan NovacekFriend
Messages: 3
Registered: August 2012
Junior Member
I am running into the same problem.
Providers are present.

Using the code from the example also gives me a 'null argument' failed assertion.

Also the example code seems to be offline, can I still find it somewhere?

I dont know how to use the Discovery API correctly.

[Updated on: Fri, 17 August 2012 03:54]

Report message to a moderator

Previous Topic:Problems with Class Loading: NullPointerException in ch.ethz.iks.r_osgi.impl.RemoteOSGiServiceImpl
Next Topic:Performance of Remote Call
Goto Forum:
  


Current Time: Thu Mar 28 21:10:35 GMT 2024

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

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

Back to the top