Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] Standalone SWT + JFace Application Error

Hi Guys,

I am getting an error when attempting to use the TreeViewer component
in JFace.

The stack trace is attached.

I am running using Eclipse 2.1 M1. The application is currently being
run via the Eclipse UI. I have the following on my classpath:

runtime.jar
workbench.jar
jface.jar
swt.jar

The actual error is Application not initialised. Is there anything I
need to do in order to setup the runtime so I can run the application
standalone. I want to deploy the application via web start.

Any light you can shed on the matter would be appreciated. If I need to
send this to another list please let me know, and accept my apologies
for the incorrect posting.

kind regards

Robert Keith
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.assertInitialized(InternalPlatform.java:191)
	at org.eclipse.core.internal.runtime.InternalPlatform.getPluginRegistry(InternalPlatform.java:410)
	at org.eclipse.core.internal.runtime.InternalPlatform.getRuntimePlugin(InternalPlatform.java:431)
	at org.eclipse.core.internal.runtime.InternalPlatform.handleException(InternalPlatform.java:442)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1008)
	at org.eclipse.core.runtime.Platform.run(Platform.java:413)
	at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1271)
	at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:320)
	at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:303)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:289)
	at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand(AbstractTreeViewer.java:697)
	at org.eclipse.jface.viewers.AbstractTreeViewer$4.treeExpanded(AbstractTreeViewer.java:709)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:175)
	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.Widget.sendEvent(Widget.java:872)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:857)
	at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:1929)
	at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3822)
	at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:658)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2859)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:2558)
	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1250)
	at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:156)
	at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:1538)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2841)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:2558)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1326)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1739)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
	at org.eclipse.jface.window.Window.open(Window.java:563)
	at dataplan.digitaltester.ui.AppView.main(AppView.java:211)

Back to the top