Problems running ECF examples [message #600868] |
Wed, 01 March 2006 09:56  |
Eclipse User |
|
|
|
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 #601125 is a reply to message #601117] |
Thu, 02 March 2006 21:34   |
Eclipse User |
|
|
|
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 #601560 is a reply to message #601554] |
Fri, 07 April 2006 03:19  |
Eclipse User |
|
|
|
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
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.06049 seconds