Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Juno, xtext 2.3 and RCP
Juno, xtext 2.3 and RCP [message #885273] Tue, 12 June 2012 18:07 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
I am trying to run xtext generated editors in Juno as a RCP config, but when
I try to open the editor there is an NPE in the Compatibility code. I get
the same result if I use the Arithmetics plugin in the RCP env. My guess is
there are some additional plugins needed , but the add required plugins
button is not calculating them correctly or some copatibility call gets
confused. If I take the same plugins and run them thru the debugger as a
vanilla eclipse env then all works ok.

1) Does not work: RCP runner with xtext editors (subset of plugins using add
required plugins)
WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor is
null.
2) Does not work: RCP runner with xtext editors (all plugins_)
WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor is
null.
3) Works: Eclipse runner with xtext editors all plugins

Any ideas. I am on Juno MC3
Re: Juno, xtext 2.3 and RCP [message #885578 is a reply to message #885273] Wed, 13 June 2012 09:19 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Could you provide more details on the stack trace?

Am 12.06.12 20:07, schrieb Drew:
> I am trying to run xtext generated editors in Juno as a RCP config, but
> when I try to open the editor there is an NPE in the Compatibility code.
> I get the same result if I use the Arithmetics plugin in the RCP env. My
> guess is there are some additional plugins needed , but the add required
> plugins button is not calculating them correctly or some copatibility
> call gets confused. If I take the same plugins and run them thru the
> debugger as a vanilla eclipse env then all works ok.
>
> 1) Does not work: RCP runner with xtext editors (subset of plugins using
> add required plugins)
> WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor
> is null.
> 2) Does not work: RCP runner with xtext editors (all plugins_)
> WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor
> is null.
> 3) Works: Eclipse runner with xtext editors all plugins
>
> Any ideas. I am on Juno MC3
>
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Juno, xtext 2.3 and RCP [message #885697 is a reply to message #885578] Wed, 13 June 2012 12:55 Go to previous messageGo to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
Sure here it is:


!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-06-13 08:31:09.163
!MESSAGE Unable to create class
'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle
'2253'
!STACK 0
org.eclipse.e4.core.di.InjectionException:
java.lang.IllegalArgumentException: can't find IDfind.ext
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(
InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(
InjectorImpl.java:837)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(
InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(
InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(
InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(
ContextInjectionFactory.java:161)
at
org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle
(
ReflectionContributionFactory.java:102)
at
org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate
(ReflectionContributionFactory.java:71)
at
org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(
ReflectionContributionFactory.java:53)
at
org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget
(
ContributedPartRenderer.java:141)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(
PartRenderingEngine.java:889)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(
PartRenderingEngine.java:623)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(
PartRenderingEngine.java:725)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(
PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run
(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(
PartRenderingEngine.java:675)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(
StackRenderer.java:1042)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer
$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(
UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(
Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(
UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(
E4Application.java:187)
at
org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(
UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent
(EventHandlerWrapper.java:197)
at
org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(
EventHandlerTracker.java:197)
at
org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(
EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(
EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(
EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(
EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(
EventBroker.java:81)
at
org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(
UIEventPublisher.java:57)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(
BasicNotifierImpl.java:374)
at
org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement
(
ElementContainerImpl.java:171)
at
org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(
ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(
ModelServiceImpl.java:385)
at
org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(
PartServiceImpl.java:578)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(
PartServiceImpl.java:314)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(
PartServiceImpl.java:962)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
WorkbenchPage.java:3071)
at org.eclipse.ui.internal.WorkbenchPage.access$21(
WorkbenchPage.java:2996)
at org.eclipse.ui.internal.WorkbenchPage$8.run(
WorkbenchPage.java:2978)
at org.eclipse.swt.custom.BusyIndicator.showWhile(
BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
WorkbenchPage.java:2974)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
WorkbenchPage.java:2933)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
WorkbenchPage.java:2924)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
at org.eclipse.ui.actions.OpenFileAction.openFile(
OpenFileAction.java:99)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(
OpenSystemEditorAction.java:99)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(
CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(
OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(
StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
StructuredViewer.java:1152)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(
CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269
)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(
Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run
(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(
PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
PlatformUI.java:149)
at com.sybase.cep.studio.rcp.Application.start(Application.java:28)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
EclipseAppHandle.java:196)
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(
EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(
EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.IllegalArgumentException: can't find IDfind.ext
at org.eclipse.jface.action.ContributionManager.insertAfter(
ContributionManager.java:334)
at org.eclipse.jface.action.SubContributionManager.insertAfter(
SubContributionManager.java:159)
at org.eclipse.ui.internal.EditorMenuManager.prependToGroup(
EditorMenuManager.java:122)
at org.eclipse.jface.action.SubContributionManager.prependToGroup(
SubContributionManager.java:261)
at
org.eclipse.ui.texteditor.BasicTextEditorActionContributor.contributeToMenu
(BasicTextEditorActionContributor.java:256)
at
org.eclipse.ui.editors.text.TextEditorActionContributor.contributeToMenu(
TextEditorActionContributor.java:129)
at org.eclipse.ui.part.EditorActionBarContributor.init(
EditorActionBarContributor.java:167)
at org.eclipse.ui.editors.text.TextEditorActionContributor.init(
TextEditorActionContributor.java:159)
at org.eclipse.ui.part.EditorActionBarContributor.init(
EditorActionBarContributor.java:146)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(
EditorReference.java:405)
at org.eclipse.ui.internal.EditorReference.initialize(
EditorReference.java:320)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(
CompatibilityPart.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
MethodRequestor.java:56)
... 93 more

!ENTRY org.eclipse.jface 4 2 2012-06-13 08:31:09.226
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
WorkbenchPage.java:3087)
at org.eclipse.ui.internal.WorkbenchPage.access$21(
WorkbenchPage.java:2996)
at org.eclipse.ui.internal.WorkbenchPage$8.run(
WorkbenchPage.java:2978)
at org.eclipse.swt.custom.BusyIndicator.showWhile(
BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
WorkbenchPage.java:2974)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
WorkbenchPage.java:2933)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
WorkbenchPage.java:2924)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
at org.eclipse.ui.actions.OpenFileAction.openFile(
OpenFileAction.java:99)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(
OpenSystemEditorAction.java:99)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(
CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(
OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(
StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
StructuredViewer.java:1152)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(
CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269
)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(
Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run
(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(
PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
PlatformUI.java:149)
at com.sybase.cep.studio.rcp.Application.start(Application.java:28)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
EclipseAppHandle.java:196)
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(
EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(
EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)



"Jan Koehnlein" <jan.koehnlein@xxxxxxxx> wrote in message
news:jr9lun$iji$1@xxxxxxxxe.org...
> Could you provide more details on the stack trace?
>
> Am 12.06.12 20:07, schrieb Drew:
>> I am trying to run xtext generated editors in Juno as a RCP config, but
>> when I try to open the editor there is an NPE in the Compatibility code.
>> I get the same result if I use the Arithmetics plugin in the RCP env. My
>> guess is there are some additional plugins needed , but the add required
>> plugins button is not calculating them correctly or some copatibility
>> call gets confused. If I take the same plugins and run them thru the
>> debugger as a vanilla eclipse env then all works ok.
>>
>> 1) Does not work: RCP runner with xtext editors (subset of plugins using
>> add required plugins)
>> WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor
>> is null.
>> 2) Does not work: RCP runner with xtext editors (all plugins_)
>> WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor
>> is null.
>> 3) Works: Eclipse runner with xtext editors all plugins
>>
>> Any ideas. I am on Juno MC3
>>
>>
>
>
> --
> Need professional support for Eclipse Modeling?
> Go visit: http://xtext.itemis.com
Re: Juno, xtext 2.3 and RCP [message #886115 is a reply to message #885697] Thu, 14 June 2012 09:16 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Hmmm, not a single xtext class in the stack trace.
It's likely you're missing some e4 plug-in. Did you try to put every
plug-in named org.eclipse.e4.* in your config?

Am 13.06.12 14:55, schrieb Drew:
> Sure here it is:
>
>
> !ENTRY org.eclipse.e4.ui.workbench 4 0 2012-06-13 08:31:09.163
> !MESSAGE Unable to create class
> 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle
> '2253'
> !STACK 0
> org.eclipse.e4.core.di.InjectionException:
> java.lang.IllegalArgumentException: can't find IDfind.ext
> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
> MethodRequestor.java:63)
> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(
> InjectorImpl.java:857)
> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(
> InjectorImpl.java:837)
> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(
> InjectorImpl.java:111)
> at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(
> InjectorImpl.java:318)
> at org.eclipse.e4.core.internal.di.InjectorImpl.make(
> InjectorImpl.java:240)
> at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(
> ContextInjectionFactory.java:161)
> at
> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle
>
> (
> ReflectionContributionFactory.java:102)
> at
> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate
> (ReflectionContributionFactory.java:71)
> at
> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(
> ReflectionContributionFactory.java:53)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget
>
> (
> ContributedPartRenderer.java:141)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(
> PartRenderingEngine.java:889)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(
> PartRenderingEngine.java:623)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(
> PartRenderingEngine.java:725)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(
> PartRenderingEngine.java:696)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run
> (PartRenderingEngine.java:690)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(
> PartRenderingEngine.java:675)
> at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(
> StackRenderer.java:1042)
> at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer
> $1.handleEvent(LazyStackRenderer.java:67)
> at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(
> UIEventHandler.java:41)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(
> Synchronizer.java:180)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(
> UISynchronizer.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
> at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(
> E4Application.java:187)
> at
> org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(
> UIEventHandler.java:38)
> at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent
> (EventHandlerWrapper.java:197)
> at
> org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(
> EventHandlerTracker.java:197)
> at
> org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(
> EventHandlerTracker.java:1)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
> EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
> ListenerQueue.java:148)
> at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(
> EventAdminImpl.java:135)
> at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(
> EventAdminImpl.java:78)
> at org.eclipse.equinox.internal.event.EventComponent.sendEvent(
> EventComponent.java:39)
> at org.eclipse.e4.ui.services.internal.events.EventBroker.send(
> EventBroker.java:81)
> at
> org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(
> UIEventPublisher.java:57)
> at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(
> BasicNotifierImpl.java:374)
> at
> org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement
>
> (
> ElementContainerImpl.java:171)
> at
> org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(
> ModelServiceImpl.java:418)
> at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(
> ModelServiceImpl.java:385)
> at
> org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(
> PartServiceImpl.java:578)
> at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(
> PartServiceImpl.java:314)
> at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(
> PartServiceImpl.java:962)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
> WorkbenchPage.java:3071)
> at org.eclipse.ui.internal.WorkbenchPage.access$21(
> WorkbenchPage.java:2996)
> at org.eclipse.ui.internal.WorkbenchPage$8.run(
> WorkbenchPage.java:2978)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(
> BusyIndicator.java:70)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
> WorkbenchPage.java:2974)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
> WorkbenchPage.java:2933)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
> WorkbenchPage.java:2924)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
> at org.eclipse.ui.actions.OpenFileAction.openFile(
> OpenFileAction.java:99)
> at org.eclipse.ui.actions.OpenSystemEditorAction.run(
> OpenSystemEditorAction.java:99)
> at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
> at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(
> CommonNavigatorManager.java:185)
> at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(
> OpenAndLinkWithEditorHelper.java:48)
> at org.eclipse.jface.viewers.StructuredViewer$2.run(
> StructuredViewer.java:866)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
> StructuredViewer.java:864)
> at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
> StructuredViewer.java:1152)
> at org.eclipse.ui.navigator.CommonViewer.handleOpen(
> CommonViewer.java:462)
> at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
> StructuredViewer.java:1256)
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
> OpenStrategy.java:275)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269
> )
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
> OpenStrategy.java:309)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(
> Display.java:4169)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run
> (PartRenderingEngine.java:1022)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
> Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(
> PartRenderingEngine.java:916)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
> E4Workbench.java:86)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
> Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
> Workbench.java:540)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
> PlatformUI.java:149)
> at com.sybase.cep.studio.rcp.Application.start(Application.java:28)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
> EclipseAppHandle.java:196)
> 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(
> EclipseStarter.java:353)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(
> EclipseStarter.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
> Caused by: java.lang.IllegalArgumentException: can't find IDfind.ext
> at org.eclipse.jface.action.ContributionManager.insertAfter(
> ContributionManager.java:334)
> at org.eclipse.jface.action.SubContributionManager.insertAfter(
> SubContributionManager.java:159)
> at org.eclipse.ui.internal.EditorMenuManager.prependToGroup(
> EditorMenuManager.java:122)
> at org.eclipse.jface.action.SubContributionManager.prependToGroup(
> SubContributionManager.java:261)
> at
> org.eclipse.ui.texteditor.BasicTextEditorActionContributor.contributeToMenu
> (BasicTextEditorActionContributor.java:256)
> at
> org.eclipse.ui.editors.text.TextEditorActionContributor.contributeToMenu(
> TextEditorActionContributor.java:129)
> at org.eclipse.ui.part.EditorActionBarContributor.init(
> EditorActionBarContributor.java:167)
> at org.eclipse.ui.editors.text.TextEditorActionContributor.init(
> TextEditorActionContributor.java:159)
> at org.eclipse.ui.part.EditorActionBarContributor.init(
> EditorActionBarContributor.java:146)
> at org.eclipse.ui.internal.EditorReference.createEditorActionBars(
> EditorReference.java:405)
> at org.eclipse.ui.internal.EditorReference.initialize(
> EditorReference.java:320)
> at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(
> CompatibilityPart.java:288)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
> MethodRequestor.java:56)
> ... 93 more
>
> !ENTRY org.eclipse.jface 4 2 2012-06-13 08:31:09.226
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> java.lang.NullPointerException
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
> WorkbenchPage.java:3087)
> at org.eclipse.ui.internal.WorkbenchPage.access$21(
> WorkbenchPage.java:2996)
> at org.eclipse.ui.internal.WorkbenchPage$8.run(
> WorkbenchPage.java:2978)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(
> BusyIndicator.java:70)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
> WorkbenchPage.java:2974)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
> WorkbenchPage.java:2933)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
> WorkbenchPage.java:2924)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
> at org.eclipse.ui.actions.OpenFileAction.openFile(
> OpenFileAction.java:99)
> at org.eclipse.ui.actions.OpenSystemEditorAction.run(
> OpenSystemEditorAction.java:99)
> at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
> at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(
> CommonNavigatorManager.java:185)
> at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(
> OpenAndLinkWithEditorHelper.java:48)
> at org.eclipse.jface.viewers.StructuredViewer$2.run(
> StructuredViewer.java:866)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
> StructuredViewer.java:864)
> at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
> StructuredViewer.java:1152)
> at org.eclipse.ui.navigator.CommonViewer.handleOpen(
> CommonViewer.java:462)
> at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
> StructuredViewer.java:1256)
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
> OpenStrategy.java:275)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269
> )
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
> OpenStrategy.java:309)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(
> Display.java:4169)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run
> (PartRenderingEngine.java:1022)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
> Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(
> PartRenderingEngine.java:916)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
> E4Workbench.java:86)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
> Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
> Workbench.java:540)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
> PlatformUI.java:149)
> at com.sybase.cep.studio.rcp.Application.start(Application.java:28)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
> EclipseAppHandle.java:196)
> 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(
> EclipseStarter.java:353)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(
> EclipseStarter.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
>
>
> "Jan Koehnlein" <jan.koehnlein@xxxxxxxx> wrote in message
> news:jr9lun$iji$1@xxxxxxxxe.org...
>> Could you provide more details on the stack trace?
>>
>> Am 12.06.12 20:07, schrieb Drew:
>>> I am trying to run xtext generated editors in Juno as a RCP config, but
>>> when I try to open the editor there is an NPE in the Compatibility code.
>>> I get the same result if I use the Arithmetics plugin in the RCP env. My
>>> guess is there are some additional plugins needed , but the add required
>>> plugins button is not calculating them correctly or some copatibility
>>> call gets confused. If I take the same plugins and run them thru the
>>> debugger as a vanilla eclipse env then all works ok.
>>>
>>> 1) Does not work: RCP runner with xtext editors (subset of plugins using
>>> add required plugins)
>>> WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor
>>> is null.
>>> 2) Does not work: RCP runner with xtext editors (all plugins_)
>>> WorkbenchPage.busyOpenEditor gets an NPE because the compatibilityEditor
>>> is null.
>>> 3) Works: Eclipse runner with xtext editors all plugins
>>>
>>> Any ideas. I am on Juno MC3
>>>
>>>
>>
>>
>> --
>> Need professional support for Eclipse Modeling?
>> Go visit: http://xtext.itemis.com
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Juno, xtext 2.3 and RCP [message #886215 is a reply to message #886115] Thu, 14 June 2012 12:59 Go to previous message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
Yes all the e4 plugins are there are there in the runtime config. I am
using the RC3 Modeling distro of June with xtext added if that is any help.
I guess I will wait for a later RC and see if that fixes the issue, at this
point I am pushing a rope.



"Jan Koehnlein" <jan.koehnlein@xxxxxxxx> wrote in message
news:jrca5q$l6d$1@xxxxxxxxe.org...
> Hmmm, not a single xtext class in the stack trace.
> It's likely you're missing some e4 plug-in. Did you try to put every
> plug-in named org.eclipse.e4.* in your config?
>
> Am 13.06.12 14:55, schrieb Drew:
>> Sure here it is:
>>
>>
>> !ENTRY org.eclipse.e4.ui.workbench 4 0 2012-06-13 08:31:09.163
>> !MESSAGE Unable to create class
>> 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from
>> bundle
>> '2253'
>> !STACK 0
>> org.eclipse.e4.core.di.InjectionException:
>> java.lang.IllegalArgumentException: can't find IDfind.ext
>> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
>> MethodRequestor.java:63)
>> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(
>> InjectorImpl.java:857)
>> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(
>> InjectorImpl.java:837)
>> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(
>> InjectorImpl.java:111)
>> at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(
>> InjectorImpl.java:318)
>> at org.eclipse.e4.core.internal.di.InjectorImpl.make(
>> InjectorImpl.java:240)
>> at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(
>> ContextInjectionFactory.java:161)
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle
>>
>> (
>> ReflectionContributionFactory.java:102)
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate
>> (ReflectionContributionFactory.java:71)
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(
>> ReflectionContributionFactory.java:53)
>> at
>> org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget
>>
>> (
>> ContributedPartRenderer.java:141)
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(
>> PartRenderingEngine.java:889)
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(
>> PartRenderingEngine.java:623)
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(
>> PartRenderingEngine.java:725)
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(
>> PartRenderingEngine.java:696)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run
>> (PartRenderingEngine.java:690)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(
>> PartRenderingEngine.java:675)
>> at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(
>> StackRenderer.java:1042)
>> at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer
>> $1.handleEvent(LazyStackRenderer.java:67)
>> at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(
>> UIEventHandler.java:41)
>> at org.eclipse.swt.widgets.Synchronizer.syncExec(
>> Synchronizer.java:180)
>> at org.eclipse.ui.internal.UISynchronizer.syncExec(
>> UISynchronizer.java:150)
>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
>> at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(
>> E4Application.java:187)
>> at
>> org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(
>> UIEventHandler.java:38)
>> at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent
>> (EventHandlerWrapper.java:197)
>> at
>> org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(
>> EventHandlerTracker.java:197)
>> at
>> org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(
>> EventHandlerTracker.java:1)
>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
>> EventManager.java:230)
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
>> ListenerQueue.java:148)
>> at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(
>> EventAdminImpl.java:135)
>> at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(
>> EventAdminImpl.java:78)
>> at org.eclipse.equinox.internal.event.EventComponent.sendEvent(
>> EventComponent.java:39)
>> at org.eclipse.e4.ui.services.internal.events.EventBroker.send(
>> EventBroker.java:81)
>> at
>> org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(
>> UIEventPublisher.java:57)
>> at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(
>> BasicNotifierImpl.java:374)
>> at
>> org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement
>>
>> (
>> ElementContainerImpl.java:171)
>> at
>> org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(
>> ModelServiceImpl.java:418)
>> at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(
>> ModelServiceImpl.java:385)
>> at
>> org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(
>> PartServiceImpl.java:578)
>> at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(
>> PartServiceImpl.java:314)
>> at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(
>> PartServiceImpl.java:962)
>> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
>> WorkbenchPage.java:3071)
>> at org.eclipse.ui.internal.WorkbenchPage.access$21(
>> WorkbenchPage.java:2996)
>> at org.eclipse.ui.internal.WorkbenchPage$8.run(
>> WorkbenchPage.java:2978)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(
>> BusyIndicator.java:70)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
>> WorkbenchPage.java:2974)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
>> WorkbenchPage.java:2933)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
>> WorkbenchPage.java:2924)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
>> at org.eclipse.ui.actions.OpenFileAction.openFile(
>> OpenFileAction.java:99)
>> at org.eclipse.ui.actions.OpenSystemEditorAction.run(
>> OpenSystemEditorAction.java:99)
>> at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
>> at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(
>> CommonNavigatorManager.java:185)
>> at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(
>> OpenAndLinkWithEditorHelper.java:48)
>> at org.eclipse.jface.viewers.StructuredViewer$2.run(
>> StructuredViewer.java:866)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
>> at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
>> StructuredViewer.java:864)
>> at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
>> StructuredViewer.java:1152)
>> at org.eclipse.ui.navigator.CommonViewer.handleOpen(
>> CommonViewer.java:462)
>> at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
>> StructuredViewer.java:1256)
>> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
>> OpenStrategy.java:275)
>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269
>> )
>> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
>> OpenStrategy.java:309)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(
>> Display.java:4169)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run
>> (PartRenderingEngine.java:1022)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
>> Realm.java:332)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(
>> PartRenderingEngine.java:916)
>> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
>> E4Workbench.java:86)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
>> Realm.java:332)
>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
>> Workbench.java:540)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
>> PlatformUI.java:149)
>> at com.sybase.cep.studio.rcp.Application.start(Application.java:28)
>> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
>> EclipseAppHandle.java:196)
>> 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(
>> EclipseStarter.java:353)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(
>> EclipseStarter.java:180)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>> Caused by: java.lang.IllegalArgumentException: can't find IDfind.ext
>> at org.eclipse.jface.action.ContributionManager.insertAfter(
>> ContributionManager.java:334)
>> at org.eclipse.jface.action.SubContributionManager.insertAfter(
>> SubContributionManager.java:159)
>> at org.eclipse.ui.internal.EditorMenuManager.prependToGroup(
>> EditorMenuManager.java:122)
>> at org.eclipse.jface.action.SubContributionManager.prependToGroup(
>> SubContributionManager.java:261)
>> at
>> org.eclipse.ui.texteditor.BasicTextEditorActionContributor.contributeToMenu
>> (BasicTextEditorActionContributor.java:256)
>> at
>> org.eclipse.ui.editors.text.TextEditorActionContributor.contributeToMenu(
>> TextEditorActionContributor.java:129)
>> at org.eclipse.ui.part.EditorActionBarContributor.init(
>> EditorActionBarContributor.java:167)
>> at org.eclipse.ui.editors.text.TextEditorActionContributor.init(
>> TextEditorActionContributor.java:159)
>> at org.eclipse.ui.part.EditorActionBarContributor.init(
>> EditorActionBarContributor.java:146)
>> at org.eclipse.ui.internal.EditorReference.createEditorActionBars(
>> EditorReference.java:405)
>> at org.eclipse.ui.internal.EditorReference.initialize(
>> EditorReference.java:320)
>> at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(
>> CompatibilityPart.java:288)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
>> MethodRequestor.java:56)
>> ... 93 more
>>
>> !ENTRY org.eclipse.jface 4 2 2012-06-13 08:31:09.226
>> !MESSAGE Problems occurred when invoking code from plug-in:
>> "org.eclipse.jface".
>> !STACK 0
>> java.lang.NullPointerException
>> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
>> WorkbenchPage.java:3087)
>> at org.eclipse.ui.internal.WorkbenchPage.access$21(
>> WorkbenchPage.java:2996)
>> at org.eclipse.ui.internal.WorkbenchPage$8.run(
>> WorkbenchPage.java:2978)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(
>> BusyIndicator.java:70)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
>> WorkbenchPage.java:2974)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
>> WorkbenchPage.java:2933)
>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(
>> WorkbenchPage.java:2924)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
>> at org.eclipse.ui.actions.OpenFileAction.openFile(
>> OpenFileAction.java:99)
>> at org.eclipse.ui.actions.OpenSystemEditorAction.run(
>> OpenSystemEditorAction.java:99)
>> at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
>> at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(
>> CommonNavigatorManager.java:185)
>> at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(
>> OpenAndLinkWithEditorHelper.java:48)
>> at org.eclipse.jface.viewers.StructuredViewer$2.run(
>> StructuredViewer.java:866)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
>> at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
>> StructuredViewer.java:864)
>> at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
>> StructuredViewer.java:1152)
>> at org.eclipse.ui.navigator.CommonViewer.handleOpen(
>> CommonViewer.java:462)
>> at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
>> StructuredViewer.java:1256)
>> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
>> OpenStrategy.java:275)
>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269
>> )
>> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
>> OpenStrategy.java:309)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(
>> Display.java:4169)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run
>> (PartRenderingEngine.java:1022)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
>> Realm.java:332)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(
>> PartRenderingEngine.java:916)
>> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
>> E4Workbench.java:86)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(
>> Realm.java:332)
>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
>> Workbench.java:540)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
>> PlatformUI.java:149)
>> at com.sybase.cep.studio.rcp.Application.start(Application.java:28)
>> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
>> EclipseAppHandle.java:196)
>> 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(
>> EclipseStarter.java:353)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(
>> EclipseStarter.java:180)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>>
>>
>>
>> "Jan Koehnlein" <jan.koehnlein@xxxxxxxx> wrote in message
>> news:jr9lun$iji$1@xxxxxxxxe.org...
>>> Could you provide more details on the stack trace?
>>>
>>> Am 12.06.12 20:07, schrieb Drew:
>>>> I am trying to run xtext generated editors in Juno as a RCP config, but
>>>> when I try to open the editor there is an NPE in the Compatibility
>>>> code.
>>>> I get the same result if I use the Arithmetics plugin in the RCP env.
>>>> My
>>>> guess is there are some additional plugins needed , but the add
>>>> required
>>>> plugins button is not calculating them correctly or some copatibility
>>>> call gets confused. If I take the same plugins and run them thru the
>>>> debugger as a vanilla eclipse env then all works ok.
>>>>
>>>> 1) Does not work: RCP runner with xtext editors (subset of plugins
>>>> using
>>>> add required plugins)
>>>> WorkbenchPage.busyOpenEditor gets an NPE because the
>>>> compatibilityEditor
>>>> is null.
>>>> 2) Does not work: RCP runner with xtext editors (all plugins_)
>>>> WorkbenchPage.busyOpenEditor gets an NPE because the
>>>> compatibilityEditor
>>>> is null.
>>>> 3) Works: Eclipse runner with xtext editors all plugins
>>>>
>>>> Any ideas. I am on Juno MC3
>>>>
>>>>
>>>
>>>
>>> --
>>> Need professional support for Eclipse Modeling?
>>> Go visit: http://xtext.itemis.com
>>
>
>
> --
> Need professional support for Eclipse Modeling?
> Go visit: http://xtext.itemis.com
Previous Topic:Problem migrating Standalone generator to 2.3
Next Topic:from XSD to Xtext without the using of Ecore model
Goto Forum:
  


Current Time: Fri Apr 19 08:14:43 GMT 2024

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

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

Back to the top