Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace: AssertionFailedException: application not initialized
JFace: AssertionFailedException: application not initialized [message #448615] Wed, 12 January 2005 08:45 Go to next message
Oliver Schmidt is currently offline Oliver SchmidtFriend
Messages: 17
Registered: July 2009
Junior Member
IŽm using JFace in a standalone application on a Mac and run into an
AssertionFailedException:
assertion failed: The application has not been initialized.

The application runs without any problems on Windows and most of the
application works on a Mac. I havenŽt succeeded yet in reproducing the
error in a snippet.

I tried -disableassertions and -disablesystemassertions but nothing
changed.
IŽm using an ApplicationWindow now, but nothing changed (previously i used
TreeViewer directly in a standard SWT shell).

Here is the stack trace:

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:194)
at
org.eclipse.core.internal.runtime.InternalPlatform.getPlugin Registry(InternalPlatform.java:416)
at
org.eclipse.core.internal.runtime.InternalPlatform.getRuntim ePlugin(InternalPlatform.java:437)
at
org.eclipse.core.internal.runtime.InternalPlatform.handleExc eption(InternalPlatform.java:448)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1018)
at org.eclipse.core.runtime.Platform.run(Platform.java:420)
at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:365)
at
org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:584)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:679)
at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:184)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:231)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1232)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1256)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1241)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 089)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2900)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2568)
at de.ifsoft.docsim.swt.b.if(Unknown Source)
at de.ifsoft.docsim.swt.HomeoArchiv.goto(Unknown Source)
at de.ifsoft.docsim.swt.HomeoArchiv.L(Unknown Source)
at de.ifsoft.docsim.swt.HomeoArchiv.main(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicatio nLauncher.java:52)
Re: JFace: AssertionFailedException: application not initialized - SOLUTION [message #448657 is a reply to message #448615] Wed, 12 January 2005 21:05 Go to previous message
Oliver Schmidt is currently offline Oliver SchmidtFriend
Messages: 17
Registered: July 2009
Junior Member
Every exception that occurs in a standalone JFace application,
is accidentally converted in an AssertionFailedException, if you
use a runtime.jar version thatŽs too old.
(fortunately i found a description of this problem in Googles cache,
i didnŽt find a hint in the eclipse newsgroups).

I donŽt know in which version this was fixed, but at least 3.1M4 handles
exceptions correctly! :-)

It worked in Windows and didnŽt work on Mac because there is a different
behaviour for selection-change-event in a tree.
In Windows you always get a not empty array of selected TreeItems,
on a Mac this array can be empty!

Bye,
Oliver
(change "-@-" to "@" in E-Mail)
Previous Topic:swt.dll and mips
Next Topic:JFace elements without JFace application possible?
Goto Forum:
  


Current Time: Fri Apr 26 11:46:41 GMT 2024

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

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

Back to the top