Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ercp-dev] eSWT Demo: Unhandled event loop exception - Reason: NullPointerException

Hello eRCP Developers,

I'm using the J9 as VM and the eRCP 1.2 Runtime package as Target Platform.

If i start eSWT Demo App (org.eclipse.ercp.swt.demo) with eWorkbench i'm getting a Unhandled event loop exception because an NullPointerException. (Look at strack-trace below).

I'm just doing this:
- I select the showcase "Label".
- I press the command "Start".
- Now i can see the Label example.
- And if i click on the command "Back to Menu".
- I'm getting the "Unhandled event loop exception".

I'm not just getting the exception with the "Label" showcase, also with Calendar, CaptionedControl, Command, Composite, Low-Level-Graphics, Menu, MessageBox, MobileShell, MultiPage, PhoneBook, Table BUT NOT WITH Browser, MVC-ListBox and Tree.

I checked out the source via CVS at :pserver:anonymous@xxxxxxxxxxxxxxx:/cvsroot/rt, but also the plugin (org.eclipse.ercp.swt.demo_1.2.0.jar) in the eRCP Runtime package causes the same exception.

I don't think that this is a bug, but more an configuration fault in my eclipse.
Do you have any idea, why i get this error ?

Regards
Lukas

java.lang.NullPointerException
at org.eclipse.ercp.swt.samples.eswtdemo.MainMenu$MyBackground.controlResized(MainMenu.java:174) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:148)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:614)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:649)
  at org.eclipse.swt.widgets.Widget.internal_sendEvent(Widget.java:618)
  at org.eclipse.swt.widgets.Control.setBounds(Control.java:1403)
  at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:370)
  at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198)
  at org.eclipse.swt.widgets.Composite.layout(Composite.java:341)
  at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:373)
  at org.eclipse.swt.widgets.Control.setBounds(Control.java:1426)
  at org.eclipse.ui.internal.LayoutPart.setBounds(LayoutPart.java:328)
at org.eclipse.ui.internal.presentations.PresentablePart.setBounds(PresentablePart.java:118) at org.eclipse.ui.internal.presentations.NativeStackPresentation.setControlSize(NativeStackPresentation.java:59) at org.eclipse.ui.internal.presentations.NativeStackPresentation.setBounds(NativeStackPresentation.java:45)
  at org.eclipse.ui.internal.PartStack.setBounds(PartStack.java:941)
  at org.eclipse.ui.internal.LayoutTree.doSetBounds(LayoutTree.java:543)
  at org.eclipse.ui.internal.LayoutTree.setBounds(LayoutTree.java:534)
at org.eclipse.ui.internal.PartSashContainer.resizeSashes(PartSashContainer.java:759) at org.eclipse.ui.internal.PartSashContainer.access$0(PartSashContainer.java:750) at org.eclipse.ui.internal.PartSashContainer$1.controlResized(PartSashContainer.java:165) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:148)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:614)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:649)
  at org.eclipse.swt.widgets.Widget.internal_sendEvent(Widget.java:618)
  at org.eclipse.swt.widgets.Control.setBounds(Control.java:1403)
  at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:370)
  at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198)
  at org.eclipse.swt.widgets.Composite.layout(Composite.java:341)
  at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:373)
  at org.eclipse.ui.internal.layout.TrimLayout.layout(TrimLayout.java:575)
  at org.eclipse.swt.widgets.Composite.layout(Composite.java:341)
at org.eclipse.ercp.swt.mobile.CommandHandle.handleEvent(Command.java:1706)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
  at org.eclipse.swt.widgets.Display.filterEvent(Display.java:562)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:613)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:649)
  at org.eclipse.swt.widgets.Widget.internal_sendEvent(Widget.java:618)
  at org.eclipse.swt.widgets.Control.focusCallback(Control.java:2417)
  at com.ibm.ugl.p3ml.OS.Display_ReadAndDispatch(Native Method)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1404)
  at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1581)
  at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1545)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:270)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
  at org.eclipse.ercp.eworkbench.eWorkbench.run(eWorkbench.java:74)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195) 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:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
  at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Unhandled event loop exception
Reason:
java.lang.NullPointerException


Back to the top