Problem understand - "Discovery of Remote Services [message #624331] |
Tue, 18 November 2008 06:49 |
Neeraj Bhusare Messages: 178 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 |
Scott Lewis 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 |
Neeraj Bhusare Messages: 178 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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05625 seconds