Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Exception on setInput()
Exception on setInput() [message #87183] Wed, 02 July 2003 06:21 Go to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

I use JFace in standalone application. I use several TableViewer's
without problem, but in one TableViewer I receive following exception.
Is this bug, or I forgot something?

org.eclipse.core.internal.runtime.AssertionFailedException: assertion failed: The application has not been initialized.
at org.eclipse.core.internal.runtime.Assert.isTrue(Assert.java: 101)
at org.eclipse.core.internal.runtime.InternalPlatform.assertIni tialized(InternalPlatform.java:178)
at org.eclipse.core.internal.runtime.InternalPlatform.getPlugin Registry(InternalPlatform.java:397)
at org.eclipse.core.internal.runtime.InternalPlatform.getRuntim ePlugin(InternalPlatform.java:418)
at org.eclipse.core.internal.runtime.InternalPlatform.handleExc eption(InternalPlatform.java:429)
at org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:869)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1271)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:494)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:431)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredV iewer.java:861)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:801)
at org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:859)
at org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:821)
at org.eclipse.jface.viewers.TableViewer.inputChanged(TableView er.java:398)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:238)
at org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:991)
at ru.nlmk.cvts.train.DocumentNewDialog.createDialogArea(Docume ntNewDialog.java:272)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java: 577)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at ru.nlmk.cvts.train.DocumentsDialog.handleEditDocument(Docume ntsDialog.java:136)
at ru.nlmk.cvts.train.DocumentsDialog.buttonPressed(DocumentsDi alog.java:120)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.jav a:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583 )
at org.eclipse.jface.window.Window.open(Window.java:563)
at ru.nlmk.cvts.train.TrainEditDialog.handleDocs(TrainEditDialo g.java:757)
at ru.nlmk.cvts.train.TrainEditDialog$18.widgetSelected(TrainEd itDialog.java:730)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583 )
at org.eclipse.jface.window.Window.open(Window.java:563)
at ru.nlmk.cvts.train.Main.handleEditTrain(Main.java:232)
at ru.nlmk.cvts.train.Main$5.run(Main.java:653)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
at ru.nlmk.cvts.train.Main.run(Main.java:753)
at ru.nlmk.cvts.train.Main.main(Main.java:1017)

--
SY, Konstantin.
Re: Exception on setInput() [message #88570 is a reply to message #87183] Thu, 03 July 2003 17:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

As you can see from the exception, running JFace in a stand-alone
application is not supported. Either you'll need to manually rip out
the pieces of JFaces that depend on the platform, or wait for the rich
client platform (minimal Eclipse) that is being developed for Eclipse 3.0.

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

Konstantin Scheglov wrote:
> I use JFace in standalone application. I use several TableViewer's
> without problem, but in one TableViewer I receive following exception.
> Is this bug, or I forgot something?
>
> org.eclipse.core.internal.runtime.AssertionFailedException: assertion failed: The application has not been initialized.
> at org.eclipse.core.internal.runtime.Assert.isTrue(Assert.java: 101)
> at org.eclipse.core.internal.runtime.InternalPlatform.assertIni tialized(InternalPlatform.java:178)
> at org.eclipse.core.internal.runtime.InternalPlatform.getPlugin Registry(InternalPlatform.java:397)
> at org.eclipse.core.internal.runtime.InternalPlatform.getRuntim ePlugin(InternalPlatform.java:418)
> at org.eclipse.core.internal.runtime.InternalPlatform.handleExc eption(InternalPlatform.java:429)
> at org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:869)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1271)
> at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:494)
> at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:431)
> at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredV iewer.java:861)
> at org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:801)
> at org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:859)
> at org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:821)
> at org.eclipse.jface.viewers.TableViewer.inputChanged(TableView er.java:398)
> at org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:238)
> at org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:991)
> at ru.nlmk.cvts.train.DocumentNewDialog.createDialogArea(Docume ntNewDialog.java:272)
> at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java: 577)
> at org.eclipse.jface.window.Window.create(Window.java:302)
> at org.eclipse.jface.window.Window.open(Window.java:552)
> at ru.nlmk.cvts.train.DocumentsDialog.handleEditDocument(Docume ntsDialog.java:136)
> at ru.nlmk.cvts.train.DocumentsDialog.buttonPressed(DocumentsDi alog.java:120)
> at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.jav a:423)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:583 )
> at org.eclipse.jface.window.Window.open(Window.java:563)
> at ru.nlmk.cvts.train.TrainEditDialog.handleDocs(TrainEditDialo g.java:757)
> at ru.nlmk.cvts.train.TrainEditDialog$18.widgetSelected(TrainEd itDialog.java:730)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:583 )
> at org.eclipse.jface.window.Window.open(Window.java:563)
> at ru.nlmk.cvts.train.Main.handleEditTrain(Main.java:232)
> at ru.nlmk.cvts.train.Main$5.run(Main.java:653)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
> at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:456)
> at org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionContributionItem.java:403)
> at org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionItem.java:397)
> at org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(ActionContributionItem.java:72)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
> at ru.nlmk.cvts.train.Main.run(Main.java:753)
> at ru.nlmk.cvts.train.Main.main(Main.java:1017)
>
Re: Exception on setInput() [message #88705 is a reply to message #88570] Thu, 03 July 2003 23:16 Go to previous message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

John Arthorne <John_Arthorne@oti.com_> wrote:

> As you can see from the exception, running JFace in a stand-alone
> application is not supported. Either you'll need to manually rip out
Hm...
I found bug in my application - problem was, that _LabelProvider_ throws
ClassCastException. However as you can see, resulting exception was really
strange...


> the pieces of JFaces that depend on the platform, or wait for the rich
> client platform (minimal Eclipse) that is being developed for Eclipse 3.0.

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=36967
> --

> Konstantin Scheglov wrote:
>> I use JFace in standalone application. I use several TableViewer's
>> without problem, but in one TableViewer I receive following exception.
>> Is this bug, or I forgot something?
>>
>> org.eclipse.core.internal.runtime.AssertionFailedException: assertion failed: The application has not been initialized.
>> at org.eclipse.core.internal.runtime.Assert.isTrue(Assert.java: 101)
>> at org.eclipse.core.internal.runtime.InternalPlatform.assertIni tialized(InternalPlatform.java:178)
>> at org.eclipse.core.internal.runtime.InternalPlatform.getPlugin Registry(InternalPlatform.java:397)
>> at org.eclipse.core.internal.runtime.InternalPlatform.getRuntim ePlugin(InternalPlatform.java:418)
>> at org.eclipse.core.internal.runtime.InternalPlatform.handleExc eption(InternalPlatform.java:429)
>> at org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:869)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
>> at org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1271)
>> at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:494)
>> at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableV iewer.java:431)
>> at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredV iewer.java:861)
>> at org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:801)
>> at org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:859)
>> at org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:821)
>> at org.eclipse.jface.viewers.TableViewer.inputChanged(TableView er.java:398)
>> at org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:238)
>> at org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:991)
>> at ru.nlmk.cvts.train.DocumentNewDialog.createDialogArea(Docume ntNewDialog.java:272)
>> at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java: 577)
>> at org.eclipse.jface.window.Window.create(Window.java:302)
>> at org.eclipse.jface.window.Window.open(Window.java:552)
>> at ru.nlmk.cvts.train.DocumentsDialog.handleEditDocument(Docume ntsDialog.java:136)
>> at ru.nlmk.cvts.train.DocumentsDialog.buttonPressed(DocumentsDi alog.java:120)
>> at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.jav a:423)
>> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:583 )
>> at org.eclipse.jface.window.Window.open(Window.java:563)
>> at ru.nlmk.cvts.train.TrainEditDialog.handleDocs(TrainEditDialo g.java:757)
>> at ru.nlmk.cvts.train.TrainEditDialog$18.widgetSelected(TrainEd itDialog.java:730)
>> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:583 )
>> at org.eclipse.jface.window.Window.open(Window.java:563)
>> at ru.nlmk.cvts.train.Main.handleEditTrain(Main.java:232)
>> at ru.nlmk.cvts.train.Main$5.run(Main.java:653)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
>> at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:456)
>> at org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionContributionItem.java:403)
>> at org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionItem.java:397)
>> at org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(ActionContributionItem.java:72)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2034)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1741)
>> at ru.nlmk.cvts.train.Main.run(Main.java:753)
>> at ru.nlmk.cvts.train.Main.main(Main.java:1017)
>>


--
SY, Konstantin.
Previous Topic:how to debug eclipse in eclipse?
Next Topic:Unable to get the Constructor added to the DOMType
Goto Forum:
  


Current Time: Thu Jul 24 21:11:28 EDT 2025

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

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

Back to the top