Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Problems running ECF examples
Problems running ECF examples [message #600868] Wed, 01 March 2006 14:56 Go to next message
Rob Light is currently offline Rob LightFriend
Messages: 5
Registered: July 2009
Junior Member
Eclipse version: 3.1.0
ECF version: latest CVS

I'll break this down into each example I've tried to run so far...

ECF Hello Client 1
------------------
After launching this example I get a "Launch Error" dialog window with
the message "Could not launch the configuration. Details are in the log.
Would you like to open it?" I click yes on the dialog and here's what's
in the log:

!ENTRY org.eclipse.osgi 2006-03-01 09:34:11.851
!MESSAGE Bundle update@plugins/org.eclipse.ant.ui_3.1.0.jar [6] was not
resolved.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing optionally required bundle org.eclipse.ui.ide_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing optionally required bundle org.eclipse.ui.views_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing optionally required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing optionally required bundle
org.eclipse.ui.workbench.texteditor_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing optionally required bundle org.eclipse.ui.editors_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing required bundle org.eclipse.ui.externaltools_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing required bundle org.eclipse.ui.console_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing required bundle org.eclipse.debug.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing required bundle org.eclipse.jdt.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-01 09:34:11.867
!MESSAGE Missing required bundle org.eclipse.jdt.debug.ui_0.0.0.

There are many more "!ENTRY" messages that are similar in nature.

To solve this problem I go into the run configuration editor under the
"Plug-ins" tab and select all items under the "External Plug-ins" group
under the "Choose plug-ins and fragments to lunch from the list" list.

Now after launching this example I get a new empty Eclipse application
with a new "ECF" menu with a "ECF Hello World" item under it and after
selecting it I get the following in my first Eclipse application console
window:

org.eclipse.ecf.internal.core.Trace: OFF
org.eclipse.ecf.core.ContainerInstantiationException:
ContainerTypeDescription named 'ecf.generic.client' not found
at
org.eclipse.ecf.core.ContainerFactory.getDescriptionByName(C ontainerFactory.java:126)
at
org.eclipse.ecf.core.SharedObjectContainerFactory.createShar edObjectContainer(SharedObjectContainerFactory.java:86)
at
org.eclipse.ecf.example.hello.HelloClient.createAndConnect(H elloClient.java:34)
at
org.eclipse.ecf.example.hello.actions.HelloAction.run(HelloA ction.java:31)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:223)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

This is where I need help on this one.

ECF Example Collab Client 1
---------------------------
After launching this example I get a "Launcher" dialog window with the
message "Launching failed because the org.eclipse.osgi plug-in is not
included in the configuration you are launching. To fix the problem, go
to the Plug-ins tab of this launch configuration and ensure that the
option selected includes said plug-in."

To solve this problem I go into the run configuration editor under the
"Plug-ins" tab and select the "org.eclipse.osgi (3.1.0)" item under the
"External Plug-ins" group under the "Choose plug-ins and fragments to
lunch from the list" list.

Now after launching this example I get a "Launch Error" dialog window
with the message "Could not launch the configuration. Details are in the
log. Would you like to open it?" I click yes on the dialog and here's
what's in the log:

!ENTRY org.eclipse.osgi 2006-03-01 09:51:37.222
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service.
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:367)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

This is the only "!ENTRY" message.

This is where I need help on this one.
Re: Problems running ECF examples [message #601109 is a reply to message #600868] Thu, 02 March 2006 01:48 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Rob,

Rob Light wrote:
<stuff deleted>
>
> To solve this problem I go into the run configuration editor under the
> "Plug-ins" tab and select all items under the "External Plug-ins" group
> under the "Choose plug-ins and fragments to lunch from the list" list.

You should select the plugins under "External Plug-ins"...but *also*
select under "Workspace Plugins" all the org.eclipse.ecf.* items in your
workspace. Then you also might select "Add Required Plugins" on the
right of the list

<stuff deleted>

>
> ECF Example Collab Client 1
> ---------------------------
> After launching this example I get a "Launcher" dialog window with the
> message "Launching failed because the org.eclipse.osgi plug-in is not
> included in the configuration you are launching. To fix the problem, go
> to the Plug-ins tab of this launch configuration and ensure that the
> option selected includes said plug-in."
>
> To solve this problem I go into the run configuration editor under the
> "Plug-ins" tab and select the "org.eclipse.osgi (3.1.0)" item under the
> "External Plug-ins" group under the "Choose plug-ins and fragments to
> lunch from the list" list.

You should probably select everything under the "External Plug-ins"
category...and then select the "Add Required Plugins" button as well.

Thanks,

Scott
Re: Problems running ECF examples [message #601117 is a reply to message #601109] Thu, 02 March 2006 16:17 Go to previous messageGo to next message
Rob Light is currently offline Rob LightFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Scott,

Thanks helping to get me through these examples. I think we're still
not quite there yet I'm afraid...

Scott Lewis wrote:
> You should select the plugins under "External Plug-ins"...but *also*
> select under "Workspace Plugins" all the org.eclipse.ecf.* items in your
> workspace. Then you also might select "Add Required Plugins" on the
> right of the list

I selected everything under "Workspace Plug-ins" and "External Plug-ins"
then after running the "ECF Hello Client 1" and selecting "ECF Hellow
World" item under the "ECF" menu I now see the following messages in the
console window:

org.eclipse.ecf.internal.core.Trace: OFF
HELLO WORLD StringID[myobject]. I'm activated!
(trace)org.eclipse.ecf.provider.Trace.err[03/02/06;11:02:59: 750]GUID[bYNOGSvBE..cUcRqzSfo6zKxXWU-]:org.eclipse.ecf.provi der.generic.TCPClientSOContainer:Exception
in connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at
org.eclipse.ecf.provider.comm.tcp.SocketFactory.createSocket (SocketFactory.java:30)
at org.eclipse.ecf.provider.comm.tcp.Client.connect(Client.java :259)
at
org.eclipse.ecf.provider.generic.ClientSOContainer.connect(C lientSOContainer.java:130)
at
org.eclipse.ecf.example.hello.HelloClient.createAndConnect(H elloClient.java:42)
at
org.eclipse.ecf.example.hello.actions.HelloAction.run(HelloA ction.java:31)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:223)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
org.eclipse.ecf.core.ContainerConnectException: exception connecting to
ecftcp://localhost:3282/server
at
org.eclipse.ecf.provider.generic.ClientSOContainer.connect(C lientSOContainer.java:159)
at
org.eclipse.ecf.example.hello.HelloClient.createAndConnect(H elloClient.java:42)
at
org.eclipse.ecf.example.hello.actions.HelloAction.run(HelloA ction.java:31)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:223)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at
org.eclipse.ecf.provider.comm.tcp.SocketFactory.createSocket (SocketFactory.java:30)
at org.eclipse.ecf.provider.comm.tcp.Client.connect(Client.java :259)
at
org.eclipse.ecf.provider.generic.ClientSOContainer.connect(C lientSOContainer.java:130)
... 27 more

Is this correct? Do I need to run something else too?

Also, when I try running the "ECF Dynamic Service Discovery" view and
click on the "Start network service discovery" button I see the
following in the console window:

org.eclipse.ecf.internal.core.Trace: OFF
org.eclipse.ecf.provider.jmdns.Trace: OFF
Unhandled event loop exception
Reason:
java.lang.ExceptionInInitializerError

IIRC, I was able to run these examples from the pre-built ECF plugin
download but for some reason the code from CVS is really giving me fits.

Thanks again,
Rob
Re: Problems running ECF examples [message #601125 is a reply to message #601117] Fri, 03 March 2006 02:34 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Rob,

Rob Light wrote:
> Hi Scott,
>
> Thanks helping to get me through these examples. I think we're still
> not quite there yet I'm afraid...
>
<stuff deleted>

>
> Is this correct? Do I need to run something else too?

Yes...you need to run an ECF server on localhost:3282. There are
several run configs for running a localhost server as a Java app...the
best one to use is called "ECF Collab Server" and it is under the "Java
Application" area in the Run.../Debug... menu. You should start this
server before connecting.

Note you can also use the "ECF Hello Server" run config...although get
an update from dev.eclipse.org because I just found and fixed a problem
in that run config.

Now, you can also run a server completely outside of Eclipse if you
want...as a java application. There is a startup script called
'startserver.cmd|sh' in the following location:

<eclipseworkspace>/org.eclipse.ecf.server-feature/bin/startserver.cmd
(windows)
or
<eclipseworkspace>/org.eclipse.ecf.server-feature/bin/startserver.sh
(linux/mac)

Running these scripts will start a server with published URL of
ecftcp://localhost:3282/server, which is the one used by default for the
ECF Hello Client.

Note we are working on a number of things to change/improve the
usability of dealing with ECF servers...in particular, using the Equinox
Servlet Incubator project:
http://www.eclipse.org/equinox/incubator/server/embedding_in _a_servlet_container.php

And running ECF servers (like the generic server) as plugins in a tomcat
(e.g.) servlet container. Although not ready yet, you can see this work
in the new org.eclipse.ecf.server plugin...which you can access from CVS
if you like, but it's not yet complete. We're working on it actively
though.


>
> Also, when I try running the "ECF Dynamic Service Discovery" view and
> click on the "Start network service discovery" button I see the
> following in the console window:
>
> org.eclipse.ecf.internal.core.Trace: OFF
> org.eclipse.ecf.provider.jmdns.Trace: OFF
> Unhandled event loop exception
> Reason:
> java.lang.ExceptionInInitializerError

This is surprising. Could you look in the error log and find the stack
trace for this? I'm using jmdns for zeroconf discovery nearly
continuously, and I think some other folks are as well...so

>
> IIRC, I was able to run these examples from the pre-built ECF plugin
> download but for some reason the code from CVS is really giving me fits.

Hmmm. Don't understand this as the CVS code is precisely the source of
0.7.2 build. In any event, let me know if you have more details on the
ExceptionInInitializerError above and we'll track down what's going on.

Thanks,

Scott
Re: Problems running ECF examples [message #601155 is a reply to message #601125] Wed, 08 March 2006 19:29 Go to previous messageGo to next message
Rob Light is currently offline Rob LightFriend
Messages: 5
Registered: July 2009
Junior Member
Scott Lewis wrote:
>> Also, when I try running the "ECF Dynamic Service Discovery" view and
>> click on the "Start network service discovery" button I see the
>> following in the console window:
>>
>> org.eclipse.ecf.internal.core.Trace: OFF
>> org.eclipse.ecf.provider.jmdns.Trace: OFF
>> Unhandled event loop exception
>> Reason:
>> java.lang.ExceptionInInitializerError
>
> This is surprising. Could you look in the error log and find the stack
> trace for this? I'm using jmdns for zeroconf discovery nearly
> continuously, and I think some other folks are as well...so

Here's the stack trace from the ".log" file:

java.lang.ExceptionInInitializerError
at
org.eclipse.ecf.provider.jmdns.container.ContainerInstantiat or.createInstance(ContainerInstantiator.java:22)
at
org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:171)
at
org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:181)
at
org.eclipse.ecf.example.collab.DiscoveryStartup.setupDiscove ry(DiscoveryStartup.java:58)
at
org.eclipse.ecf.example.collab.DiscoveryStartup.<init>(DiscoveryStartup.java:38)
at
org.eclipse.ecf.example.collab.ClientPlugin.initDiscovery(Cl ientPlugin.java:137)
at
org.eclipse.ecf.example.collab.ClientPlugin$1.startDiscovery (ClientPlugin.java:77)
at org.eclipse.ecf.ui.views.DiscoveryView$11.run(DiscoveryView. java:562)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.NullPointerException
at
org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
... 32 more
Re: Problems running ECF examples [message #601163 is a reply to message #601155] Wed, 08 March 2006 20:07 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Rob,

Thanks for the reports...a question or two for you:

First, the problem seems to be:

> Caused by: java.lang.NullPointerException
> at
> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
>
> ... 32 more

But I'm currently frankly puzzled as to how this NPE could occur. Maybe
you could help me track this down a little.

Here's the line in the class initialization that is throwing the NPE:

....
public static final String JMDNS_NAMESPACE_ID = JmdnsPlugin.getDefault()
.getNamespaceIdentifier();
....


It seems that the getDefault() is returning null and so the call to
getNamespaceIdentifier() is throwing (it seems that way anyway). I
don't know how this could possibly occur, however, as the JmdnsPlugin is
the class that is activated by the OSGI runtime the first time the
org.eclipse.ecf.provider.jmdns is loaded. And this singleton default is
set in the JmdnsPlugin constructor (which should be being called by the
OSGI runtime when before *any* classes are loaded from the
provider.jmdns plugin.

Obviously I can't reproduce this exception, so Rob would you be willing
to help out with tracking this down a little more? Do you have an
environment where you could set a breakpoint on this line (that starts
public static final...) and run the debugger to debug into the call to
getDefault()?

And one more thought...what version of Eclipse are you using? Is it
pre-3.1?

Thanksinadvance for help,

Scott
Re: Problems running ECF examples [message #601242 is a reply to message #601109] Sat, 18 March 2006 23:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rs.ruben-storm.de

Hey i have a simular problem, i accidently deleted the .eclipse in the
home directory, now it does not even start anymore, does anyone know a
solution??
Here my error

!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-19 00:04:25.726
!MESSAGE Missing required bundle org.eclipse.debug.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-19 00:04:25.726
!MESSAGE Missing required bundle org.eclipse.cdt.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-19 00:04:25.726
!MESSAGE Missing required bundle org.eclipse.ui.console_0.0.0.
Re: Problems running ECF examples [message #601247 is a reply to message #601242] Sat, 18 March 2006 23:45 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Storm,

These bundles (org.eclipse.ui, org.eclipse.debug.ui,
org.eclipse.ui.console) are needed just to start Eclipse (forgetting
about ECF). If they have been deleted then I would suggest installing a
new copy of the Eclipse SDK (preferrably 3.2M5a) from:

http://download.eclipse.org/eclipse/downloads/index.php

And then installing the latest version of ECF SDK (0.7.5) from:

http://www.eclipse.org/ecf/downloads.html

Scott

Storm wrote:
>
> Hey i have a simular problem, i accidently deleted the .eclipse in the
> home directory, now it does not even start anymore, does anyone know a
> solution??
> Here my error
>
> !MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
> !SUBENTRY 1 org.eclipse.osgi 2006-03-19 00:04:25.726
> !MESSAGE Missing required bundle org.eclipse.debug.ui_0.0.0.
> !SUBENTRY 1 org.eclipse.osgi 2006-03-19 00:04:25.726
> !MESSAGE Missing required bundle org.eclipse.cdt.ui_0.0.0.
> !SUBENTRY 1 org.eclipse.osgi 2006-03-19 00:04:25.726
> !MESSAGE Missing required bundle org.eclipse.ui.console_0.0.0.
>
>
Re: Problems running ECF examples [message #601549 is a reply to message #601163] Wed, 05 April 2006 23:43 Go to previous messageGo to next message
Bill Joy is currently offline Bill JoyFriend
Messages: 60
Registered: July 2009
Member
I am getting this error too now after updating from ECF 0.7.3 to 0.7.6. I
am using Eclipse 3.1 and JDK 1.5.

The JmdnsPlugin constructor was never called. Each call to
JmdnsPlugin.getDefault() returns null causing a caught exception during the
Trace.create("container") execution initiated at line 49 in
JMDNSDiscoveryContainer and an uncaught exception initializing
JMDNS_NAMESPACE_ID on the line following it.

I am not running any ECF samples. I was executing my own code which does:

private final String JMDNS_CONTAINER = "ecf.discovery.jmdns";
//$NON-NLS-1$
ContainerFactory.getDefault().createContainer(JMDNS_CONTAINE R)

The output is:

org.eclipse.ecf.provider.jmdns.Trace: OFF
java.lang.ExceptionInInitializerError
at
org.eclipse.ecf.provider.jmdns.container.ContainerInstantiat or.createInstance(ContainerInstantiator.java:22)
at
org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:209)
at
org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:223)
<snip>
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
... 10 more


"Scott Lewis" <slewis@composent.com> wrote in message
news:440F399F.4080609@composent.com...
> Hi Rob,
>
> Thanks for the reports...a question or two for you:
>
> First, the problem seems to be:
>
>> Caused by: java.lang.NullPointerException
>> at
>> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
>> ... 32 more
>
> But I'm currently frankly puzzled as to how this NPE could occur. Maybe
> you could help me track this down a little.
>
> Here's the line in the class initialization that is throwing the NPE:
>
> ...
> public static final String JMDNS_NAMESPACE_ID = JmdnsPlugin.getDefault()
> .getNamespaceIdentifier();
> ...
>
>
> It seems that the getDefault() is returning null and so the call to
> getNamespaceIdentifier() is throwing (it seems that way anyway). I don't
> know how this could possibly occur, however, as the JmdnsPlugin is the
> class that is activated by the OSGI runtime the first time the
> org.eclipse.ecf.provider.jmdns is loaded. And this singleton default is
> set in the JmdnsPlugin constructor (which should be being called by the
> OSGI runtime when before *any* classes are loaded from the provider.jmdns
> plugin.
>
> Obviously I can't reproduce this exception, so Rob would you be willing to
> help out with tracking this down a little more? Do you have an
> environment where you could set a breakpoint on this line (that starts
> public static final...) and run the debugger to debug into the call to
> getDefault()?
>
> And one more thought...what version of Eclipse are you using? Is it
> pre-3.1?
>
> Thanksinadvance for help,
>
> Scott
Re: Problems running ECF examples [message #601554 is a reply to message #601549] Fri, 07 April 2006 06:32 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Bill,

Hmmm. So far I can't reproduce this with 3.2M5 or 3.2M6, but I do get
it consistently with 3.1. Bother.

I suspect it's some interaction with the way/timing of bundle
initialization and changes in platform behavior from 3.1 to 3.2.

I will take a look at this tomorrow (fri) and get a fix in as soon as
possible. I suspect that I'll be able to do a 0.7.7 build this weekend
(4/8) with the fix.

Scott


Bill Joy wrote:
> I am getting this error too now after updating from ECF 0.7.3 to 0.7.6. I
> am using Eclipse 3.1 and JDK 1.5.
>
> The JmdnsPlugin constructor was never called. Each call to
> JmdnsPlugin.getDefault() returns null causing a caught exception during the
> Trace.create("container") execution initiated at line 49 in
> JMDNSDiscoveryContainer and an uncaught exception initializing
> JMDNS_NAMESPACE_ID on the line following it.
>
> I am not running any ECF samples. I was executing my own code which does:
>
> private final String JMDNS_CONTAINER = "ecf.discovery.jmdns";
> //$NON-NLS-1$
> ContainerFactory.getDefault().createContainer(JMDNS_CONTAINE R)
>
> The output is:
>
> org.eclipse.ecf.provider.jmdns.Trace: OFF
> java.lang.ExceptionInInitializerError
> at
> org.eclipse.ecf.provider.jmdns.container.ContainerInstantiat or.createInstance(ContainerInstantiator.java:22)
> at
> org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:209)
> at
> org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:223)
> <snip>
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
> ... 10 more
>
>
> "Scott Lewis" <slewis@composent.com> wrote in message
> news:440F399F.4080609@composent.com...
>> Hi Rob,
>>
>> Thanks for the reports...a question or two for you:
>>
>> First, the problem seems to be:
>>
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
>>> ... 32 more
>> But I'm currently frankly puzzled as to how this NPE could occur. Maybe
>> you could help me track this down a little.
>>
>> Here's the line in the class initialization that is throwing the NPE:
>>
>> ...
>> public static final String JMDNS_NAMESPACE_ID = JmdnsPlugin.getDefault()
>> .getNamespaceIdentifier();
>> ...
>>
>>
>> It seems that the getDefault() is returning null and so the call to
>> getNamespaceIdentifier() is throwing (it seems that way anyway). I don't
>> know how this could possibly occur, however, as the JmdnsPlugin is the
>> class that is activated by the OSGI runtime the first time the
>> org.eclipse.ecf.provider.jmdns is loaded. And this singleton default is
>> set in the JmdnsPlugin constructor (which should be being called by the
>> OSGI runtime when before *any* classes are loaded from the provider.jmdns
>> plugin.
>>
>> Obviously I can't reproduce this exception, so Rob would you be willing to
>> help out with tracking this down a little more? Do you have an
>> environment where you could set a breakpoint on this line (that starts
>> public static final...) and run the debugger to debug into the call to
>> getDefault()?
>>
>> And one more thought...what version of Eclipse are you using? Is it
>> pre-3.1?
>>
>> Thanksinadvance for help,
>>
>> Scott
>
>
Re: Problems running ECF examples [message #601560 is a reply to message #601554] Fri, 07 April 2006 07:19 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Folks,

Fix found, applied, and tested on 3.1 and 3.2M6. See this bug report

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

For a copy of the jmdns feature (attached as zip) v0.7.7. I expect to
do an ECF stable build this weekend as well and distribute 0.7.7 stable
at that time. But for those that want it now, please go to the above
bug report, download the attached zip file, and unzip the feature to
your <eclipsehome> directory.

Scott


Scott Lewis wrote:
> Hi Bill,
>
> Hmmm. So far I can't reproduce this with 3.2M5 or 3.2M6, but I do get
> it consistently with 3.1. Bother.
>
> I suspect it's some interaction with the way/timing of bundle
> initialization and changes in platform behavior from 3.1 to 3.2.
>
> I will take a look at this tomorrow (fri) and get a fix in as soon as
> possible. I suspect that I'll be able to do a 0.7.7 build this weekend
> (4/8) with the fix.
>
> Scott
>
>
> Bill Joy wrote:
>> I am getting this error too now after updating from ECF 0.7.3 to
>> 0.7.6. I am using Eclipse 3.1 and JDK 1.5.
>>
>> The JmdnsPlugin constructor was never called. Each call to
>> JmdnsPlugin.getDefault() returns null causing a caught exception
>> during the Trace.create("container") execution initiated at line 49 in
>> JMDNSDiscoveryContainer and an uncaught exception initializing
>> JMDNS_NAMESPACE_ID on the line following it.
>>
>> I am not running any ECF samples. I was executing my own code which
>> does:
>>
>> private final String JMDNS_CONTAINER = "ecf.discovery.jmdns";
>> //$NON-NLS-1$
>> ContainerFactory.getDefault().createContainer(JMDNS_CONTAINE R)
>>
>> The output is:
>>
>> org.eclipse.ecf.provider.jmdns.Trace: OFF
>> java.lang.ExceptionInInitializerError
>> at
>> org.eclipse.ecf.provider.jmdns.container.ContainerInstantiat or.createInstance(ContainerInstantiator.java:22)
>>
>> at
>> org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:209)
>>
>> at
>> org.eclipse.ecf.core.ContainerFactory.createContainer(Contai nerFactory.java:223)
>>
>> <snip>
>> at java.lang.Thread.run(Thread.java:595)
>> Caused by: java.lang.NullPointerException
>> at
>> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
>>
>> ... 10 more
>>
>>
>> "Scott Lewis" <slewis@composent.com> wrote in message
>> news:440F399F.4080609@composent.com...
>>> Hi Rob,
>>>
>>> Thanks for the reports...a question or two for you:
>>>
>>> First, the problem seems to be:
>>>
>>>> Caused by: java.lang.NullPointerException
>>>> at
>>>> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner. <clinit>(JMDNSDiscoveryContainer.java:51)
>>>> ... 32 more
>>> But I'm currently frankly puzzled as to how this NPE could occur.
>>> Maybe you could help me track this down a little.
>>>
>>> Here's the line in the class initialization that is throwing the NPE:
>>>
>>> ...
>>> public static final String JMDNS_NAMESPACE_ID = JmdnsPlugin.getDefault()
>>> .getNamespaceIdentifier();
>>> ...
>>>
>>>
>>> It seems that the getDefault() is returning null and so the call to
>>> getNamespaceIdentifier() is throwing (it seems that way anyway). I
>>> don't know how this could possibly occur, however, as the JmdnsPlugin
>>> is the class that is activated by the OSGI runtime the first time the
>>> org.eclipse.ecf.provider.jmdns is loaded. And this singleton default
>>> is set in the JmdnsPlugin constructor (which should be being called
>>> by the OSGI runtime when before *any* classes are loaded from the
>>> provider.jmdns plugin.
>>>
>>> Obviously I can't reproduce this exception, so Rob would you be
>>> willing to help out with tracking this down a little more? Do you
>>> have an environment where you could set a breakpoint on this line
>>> (that starts public static final...) and run the debugger to debug
>>> into the call to getDefault()?
>>>
>>> And one more thought...what version of Eclipse are you using? Is it
>>> pre-3.1?
>>>
>>> Thanksinadvance for help,
>>>
>>> Scott
>>
>>
Previous Topic:Retrieving a specific version from cvs
Next Topic:Weird ECF usage
Goto Forum:
  


Current Time: Fri Mar 29 07:43:35 GMT 2024

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

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

Back to the top