Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Problems running ECF2.0.0 remote service examples
Problems running ECF2.0.0 remote service examples [message #624008] Fri, 01 August 2008 05:27 Go to next message
Xingxiao Lu is currently offline Xingxiao LuFriend
Messages: 91
Registered: July 2009
Member
Hi,
I'm quite new to ECF. I can't ran the remote service examples.
Following is the exception:


!ENTRY org.eclipse.osgi 4 0 2008-08-01 13:20:18.046
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:93)
at
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:108)
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)
Re: Problems running ECF2.0.0 remote service examples [message #624009 is a reply to message #624008] Fri, 01 August 2008 05:52 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi xxlu,

This NPE looks to be because the discoveryService is null in the
following code:


[89]discoveryService = Activator.getDefault().getDiscoveryService(5000);
[90]
[91]final String serviceName = System.getProperty("user.name") +
[92]System.currentTimeMillis(); //$NON-NLS-1$
[93]final IServiceID serviceID =
ServiceIDFactory.getDefault().createServiceID(discoveryServi ce.getServicesNamespace(),
getCompleteServiceType(), serviceName);

It is possible that the discovery service is null because of either

a) the jmdns provider bundle is not included in the set of bundles
needed for this app (it must be included so that the discoveryService
can be started and found)

b) the 5000ms timeout can be too short. In all the local tests I've
done 5000ms (5 sec) is long enough, but it is possible that under heavy
load conditions it's not long enough...and the jmdns bundle does not
have sufficient time to start. I've already changed the timeout to
15000ms and committed to HEAD and Release_2_0 branch. If you get the
source to org.eclipse.ecf.examples.remoteservices.server plugin:

Repository path: /cvsroot/technology
Module:
org.eclipse.ecf/examples/plugins/org.eclipse.ecf.examples.re moteservices.server

And get these fixes.

Scott


xxlu wrote:
> Hi,
> I'm quite new to ECF. I can't ran the remote service examples.
> Following is the exception:
>
>
> !ENTRY org.eclipse.osgi 4 0 2008-08-01 13:20:18.046
> !MESSAGE Application error
> !STACK 1
> java.lang.NullPointerException
> at
> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:93)
> at
> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:108)
> 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)
>
>
Re: Problems running ECF2.0.0 remote service examples [message #624031 is a reply to message #624009] Wed, 03 September 2008 08:59 Go to previous messageGo to next message
Anders Forsell is currently offline Anders ForsellFriend
Messages: 127
Registered: July 2009
Senior Member
I am also new to ECF and I'm having problems running the example (even with
the 15 sec timeout).

Here are the steps I did:

1. I imported org.eclipse.ecf.examples.remoteservices.client,
org.eclipse.ecf.examples.remoteservices.common and
org.eclipse.ecf.examples.remoteservices.server from CVS into a new
workspace.

2. I modified the Generic Remote EnvironmentInvo Server.launch configuration
to only have the three above workspace_bundles.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.pde.ui.EquinoxLauncher">
<booleanAttribute key="append.args" value="true"/>
<booleanAttribute key="automaticAdd" value="false"/>
<booleanAttribute key="automaticValidate" value="false"/>
<stringAttribute key="bootstrap" value=""/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="clearConfig" value="false"/>
<stringAttribute key="configLocation"
value=" ${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Gen eric
Remote EnvironmentInfo Server"/>
<booleanAttribute key="default_auto_start" value="false"/>
<intAttribute key="default_start_level" value="4"/>
<booleanAttribute key="includeOptional" value="true"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"
value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-console -consolelog -application
org.eclipse.ecf.examples.remoteservices.server.remoteService sServer -debug"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value=" -Dnet.slp.port=10427&#10;-Dch.ethz.iks.slp.debug=false&a mp;#10;-Dnet.slp.traceDATraffic=false&#10;-Dnet.slp.trac eMsg=false&#10;-Dnet.slp.traceDrop=false&#10;-Dnet.s lp.traceReg=false&#10;-Dnet.slp.failercount=3&#13;&a mp;#10;-Dnet.slp.multicastTimeouts=10,25,50,100,250,500,1000 &#13;&#10;-Dnet.slp.multicastMaximumWait=2000 "/>
<stringAttribute key="pde.version" value="3.3"/>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="target_bundles"
value="org.eclipse.osgi@:,org.eclipse.equinox.app@default:default,org.apache.commons.logging*1.0.4.v20080605-1930@default:default,org.eclipse.core.jobs@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi.util@default:default,org.eclipse.equinox.registry@default:default,org.apache.commons.logging*1.0.4.v200803061811@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,javax.servlet@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.runtime@default:true,org.eclipse.equinox.common@default:true,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.ecf.provider.jslp@default:default,org.eclipse.ecf.remoteservice@default:default,org.eclipse.ecf.provider.remoteservice@default:default,org.eclipse.ecf.provider@default:default,org.eclipse.ecf.provider.jmdns@default:default,org.eclipse.ecf.sharedobject@default:default,org.eclipse.ecf@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.ecf.provider.discovery@default:default,org.eclipse.ecf.discovery@default:default,ch.ethz.iks.slp@default:default"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>
<stringAttribute key="workspace_bundles"
value="org.eclipse.ecf.examples.remoteservices.server@default:default,org.eclipse.ecf.examples.remoteservices.common@default:default"/>
</launchConfiguration>

3. Then I right-click the modified launch configuration and run Debug.

=> I get the following failure:
Configuration location:
file:/C:/Users/anders/Documents/Eclipse-Workspaces/ECFTest/. metadata/.plugins/org.eclipse.pde.core/Generic
Remote EnvironmentInfo Server/
Configuration file:
file:/C:/Users/anders/Documents/Eclipse-Workspaces/ECFTest/. metadata/.plugins/org.eclipse.pde.core/Generic
Remote EnvironmentInfo Server/config.ini loaded
Install location:
file:/C:/eclipse-rcp-ganymede-win32/eclipse/
Framework located:
file:/C:/eclipse-rcp-ganymede-win32/eclipse/plugins/org.ecli pse.osgi_3.4.0.v20080605-1900.jar
Framework classpath:
file:/C:/eclipse-rcp-ganymede-win32/eclipse/plugins/org.ecli pse.osgi_3.4.0.v20080605-1900.jar
Debug options:
file:/C:/eclipse-rcp-ganymede-win32/eclipse/.options not found

osgi> Time to load bundles: 24
Starting application: 606
DEBUG OUTPUT: false
Registered remote service
org.eclipse.ecf.examples.remoteservices.common.IRemoteEnviro nmentInfo with
org.eclipse.ecf.provider.generic.TCPServerSOContainer@e1eae7,ID=StringID[ecftcp://localhost:3285/server]
!SESSION 2008-09-03
10:42:19.618 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_10-ea
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Framework arguments: -application
org.eclipse.ecf.examples.remoteservices.server.remoteService sServer
Command-line arguments: -dev
file:C:/Users/anders/Documents/Eclipse-Workspaces/ECFTest/.m etadata/.plugins/org.eclipse.pde.core/Generic
Remote EnvironmentInfo
Server/dev.properties -console -consolelog -application
org.eclipse.ecf.examples.remoteservices.server.remoteService sServer -debug

!ENTRY org.eclipse.osgi 4 0 2008-09-03 10:42:42.038
!MESSAGE Application error
!STACK 1
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:92)
at
org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:110)
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)

What am I missing?

---
Anders

"Scott Lewis" <slewis@composent.com> skrev i meddelandet
news:4892A4B6.4000900@composent.com...
> Hi xxlu,
>
> This NPE looks to be because the discoveryService is null in the following
> code:
>
>
> [89]discoveryService = Activator.getDefault().getDiscoveryService(5000);
> [90]
> [91]final String serviceName = System.getProperty("user.name") +
> [92]System.currentTimeMillis(); //$NON-NLS-1$
> [93]final IServiceID serviceID =
> ServiceIDFactory.getDefault().createServiceID(discoveryServi ce.getServicesNamespace(),
> getCompleteServiceType(), serviceName);
>
> It is possible that the discovery service is null because of either
>
> a) the jmdns provider bundle is not included in the set of bundles needed
> for this app (it must be included so that the discoveryService can be
> started and found)
>
> b) the 5000ms timeout can be too short. In all the local tests I've done
> 5000ms (5 sec) is long enough, but it is possible that under heavy load
> conditions it's not long enough...and the jmdns bundle does not have
> sufficient time to start. I've already changed the timeout to 15000ms and
> committed to HEAD and Release_2_0 branch. If you get the source to
> org.eclipse.ecf.examples.remoteservices.server plugin:
>
> Repository path: /cvsroot/technology
> Module:
> org.eclipse.ecf/examples/plugins/org.eclipse.ecf.examples.re moteservices.server
>
> And get these fixes.
>
> Scott
>
>
> xxlu wrote:
>> Hi,
>> I'm quite new to ECF. I can't ran the remote service examples.
>> Following is the exception:
>>
>>
>> !ENTRY org.eclipse.osgi 4 0 2008-08-01 13:20:18.046
>> !MESSAGE Application error
>> !STACK 1
>> java.lang.NullPointerException
>> at
>> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:93)
>> at
>> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:108)
>> 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)
>
Re: Problems running ECF2.0.0 remote service examples [message #624063 is a reply to message #624031] Sun, 14 September 2008 21:12 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Anders,

Sorry about the slow reply.

You are not missing anything. At first glance, this seems to be some
problem with interaction between the jslp and the jmdns-based discovery
providers that is preventing this discoveryService lookup from
succeeding (and resulting in a NPE). I've created bug for this here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=247238

Please join that bug and we'll track progress there.

Scott

Anders Forsell wrote:
> I am also new to ECF and I'm having problems running the example (even
> with the 15 sec timeout).
>
> Here are the steps I did:
>
> 1. I imported org.eclipse.ecf.examples.remoteservices.client,
> org.eclipse.ecf.examples.remoteservices.common and
> org.eclipse.ecf.examples.remoteservices.server from CVS into a new
> workspace.
>
> 2. I modified the Generic Remote EnvironmentInvo Server.launch
> configuration to only have the three above workspace_bundles.
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <launchConfiguration type="org.eclipse.pde.ui.EquinoxLauncher">
> <booleanAttribute key="append.args" value="true"/>
> <booleanAttribute key="automaticAdd" value="false"/>
> <booleanAttribute key="automaticValidate" value="false"/>
> <stringAttribute key="bootstrap" value=""/>
> <stringAttribute key="checked" value="[NONE]"/>
> <booleanAttribute key="clearConfig" value="false"/>
> <stringAttribute key="configLocation"
> value=" ${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Gen eric
> Remote EnvironmentInfo Server"/>
> <booleanAttribute key="default_auto_start" value="false"/>
> <intAttribute key="default_start_level" value="4"/>
> <booleanAttribute key="includeOptional" value="true"/>
> <booleanAttribute
> key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
> value="-console -consolelog -application
> org.eclipse.ecf.examples.remoteservices.server.remoteService sServer
> -debug"/>
> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
> value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
> <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
> value=" -Dnet.slp.port=10427&#10;-Dch.ethz.iks.slp.debug=false&a mp;#10;-Dnet.slp.traceDATraffic=false&#10;-Dnet.slp.trac eMsg=false&#10;-Dnet.slp.traceDrop=false&#10;-Dnet.s lp.traceReg=false&#10;-Dnet.slp.failercount=3&#13;&a mp;#10;-Dnet.slp.multicastTimeouts=10,25,50,100,250,500,1000 &#13;&#10;-Dnet.slp.multicastMaximumWait=2000 "/>
>
> <stringAttribute key="pde.version" value="3.3"/>
> <booleanAttribute key="show_selected_only" value="false"/>
> <stringAttribute key="target_bundles"
> value="org.eclipse.osgi@:,org.eclipse.equinox.app@default:default,org.apache.commons.logging*1.0.4.v20080605-1930@default:default,org.eclipse.core.jobs@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi.util@default:default,org.eclipse.equinox.registry@default:default,org.apache.commons.logging*1.0.4.v200803061811@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,javax.servlet@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.runtime@default:true,org.eclipse.equinox.common@default:true,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.ecf.provider.jslp@default:default,org.eclipse.ecf.remoteservice@default:default,org.eclipse.ecf.provider.remoteservice@default:default,org.eclipse.ecf.provider@default:default,org.eclipse.ecf.provider.jmdns@default:default,org.eclipse.ecf.sharedobject@default:default,org.eclipse.ecf@default:defa
ult,org.eclipse.ecf.identity@default:default,org.eclipse.ecf.provider.discovery@default:default,org.eclipse.ecf.discovery@default:default,ch.ethz.iks.slp@default:default"/>
>
> <booleanAttribute key="tracing" value="false"/>
> <booleanAttribute key="useDefaultConfigArea" value="true"/>
> <stringAttribute key="workspace_bundles"
> value="org.eclipse.ecf.examples.remoteservices.server@default:default,org.eclipse.ecf.examples.remoteservices.common@default:default"/>
>
> </launchConfiguration>
>
> 3. Then I right-click the modified launch configuration and run Debug.
>
> => I get the following failure:
> Configuration location:
>
> file:/C:/Users/anders/Documents/Eclipse-Workspaces/ECFTest/. metadata/.plugins/org.eclipse.pde.core/Generic
> Remote EnvironmentInfo Server/
> Configuration file:
>
> file:/C:/Users/anders/Documents/Eclipse-Workspaces/ECFTest/. metadata/.plugins/org.eclipse.pde.core/Generic
> Remote EnvironmentInfo Server/config.ini loaded
> Install location:
> file:/C:/eclipse-rcp-ganymede-win32/eclipse/
> Framework located:
>
> file:/C:/eclipse-rcp-ganymede-win32/eclipse/plugins/org.ecli pse.osgi_3.4.0.v20080605-1900.jar
>
> Framework classpath:
>
> file:/C:/eclipse-rcp-ganymede-win32/eclipse/plugins/org.ecli pse.osgi_3.4.0.v20080605-1900.jar
>
> Debug options:
> file:/C:/eclipse-rcp-ganymede-win32/eclipse/.options not found
>
> osgi> Time to load bundles: 24
> Starting application: 606
> DEBUG OUTPUT: false
> Registered remote service
> org.eclipse.ecf.examples.remoteservices.common.IRemoteEnviro nmentInfo
> with
> org.eclipse.ecf.provider.generic.TCPServerSOContainer@e1eae7,ID=StringID[ecftcp://localhost:3285/server]
>
> !SESSION 2008-09-03 10:42:19.618
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_10-ea
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
> Framework arguments: -application
> org.eclipse.ecf.examples.remoteservices.server.remoteService sServer
> Command-line arguments: -dev
> file:C:/Users/anders/Documents/Eclipse-Workspaces/ECFTest/.m etadata/.plugins/org.eclipse.pde.core/Generic
> Remote EnvironmentInfo Server/dev.properties -console -consolelog
> -application
> org.eclipse.ecf.examples.remoteservices.server.remoteService sServer -debug
>
> !ENTRY org.eclipse.osgi 4 0 2008-09-03 10:42:42.038
> !MESSAGE Application error
> !STACK 1
> 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:92)
>
> at
> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:110)
>
> 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)
>
> What am I missing?
>
> ---
> Anders
>
> "Scott Lewis" <slewis@composent.com> skrev i meddelandet
> news:4892A4B6.4000900@composent.com...
>> Hi xxlu,
>>
>> This NPE looks to be because the discoveryService is null in the
>> following code:
>>
>>
>> [89]discoveryService = Activator.getDefault().getDiscoveryService(5000);
>> [90]
>> [91]final String serviceName = System.getProperty("user.name") +
>> [92]System.currentTimeMillis(); //$NON-NLS-1$
>> [93]final IServiceID serviceID =
>> ServiceIDFactory.getDefault().createServiceID(discoveryServi ce.getServicesNamespace(),
>> getCompleteServiceType(), serviceName);
>>
>> It is possible that the discovery service is null because of either
>>
>> a) the jmdns provider bundle is not included in the set of bundles
>> needed for this app (it must be included so that the discoveryService
>> can be started and found)
>>
>> b) the 5000ms timeout can be too short. In all the local tests I've
>> done 5000ms (5 sec) is long enough, but it is possible that under
>> heavy load conditions it's not long enough...and the jmdns bundle does
>> not have sufficient time to start. I've already changed the timeout
>> to 15000ms and committed to HEAD and Release_2_0 branch. If you get
>> the source to org.eclipse.ecf.examples.remoteservices.server plugin:
>>
>> Repository path: /cvsroot/technology
>> Module:
>> org.eclipse.ecf/examples/plugins/org.eclipse.ecf.examples.re moteservices.server
>>
>>
>> And get these fixes.
>>
>> Scott
>>
>>
>> xxlu wrote:
>>> Hi,
>>> I'm quite new to ECF. I can't ran the remote service examples.
>>> Following is the exception:
>>>
>>>
>>> !ENTRY org.eclipse.osgi 4 0 2008-08-01 13:20:18.046
>>> !MESSAGE Application error
>>> !STACK 1
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:93)
>>>
>>> at
>>> org.eclipse.ecf.internal.examples.remoteservices.server.Disc overableServer.start(DiscoverableServer.java:108)
>>>
>>> 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)
>>
>
Previous Topic:How to publish remote services (r-osgi) automatically / discover peers ?
Next Topic:ECF service threads
Goto Forum:
  


Current Time: Sat Apr 27 01:26:27 GMT 2024

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

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

Back to the top