Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Null Pointer Exception in org.eclipse.draw2d.ToolTipHelper
Null Pointer Exception in org.eclipse.draw2d.ToolTipHelper [message #249255] Fri, 12 June 2009 07:43 Go to next message
Eclipse UserFriend
Originally posted by: markus.franz.kapelan.com

Hi all,

i am having a problem with my GMF application, yet as the Problem is an
Exception in a draw2d class, i hope that this is the right place to ask
for help:

The problem is there for a long time (different versions of Galileo),
but my configuration right now is as follows:
Eclipse Galileo in the Cocoa 64 Bit Version on Mac OS X 10.5.7 with GEF
All-in-One SDK 3.5.0.v20090422..., GMF SDK 2.2.0.v20090114...

My application is running fine, but my conole log is stuffed full with
the following NPE:


java.lang.NullPointerException
at org.eclipse.draw2d.ToolTipHelper$3.mouseEnter(ToolTipHelper. java:133)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:187)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3542)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1247)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1270)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1255)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 076)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3440)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3099)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at xxx.XXXApplication.start(XXXApplication.java:19)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


The reason being that the "timer" in ToolTipHelper is null when
hookShellListeners() calls timer.cancel().

There is no "real" problem (the application does not seem to mind), but
as the console is spammed with this NPE, it is a real pain to look for
other Exceptions while developing (not to mention the how cluttered the
log would be if i released my application with this problem still
present...).
What bugs me most is that my collegues using Windows machines never see
that problem.
Has anyone seen this problem before or may direct me to the newsgroup i
am most likely to get help?

gr.

Markus
Re: Null Pointer Exception in org.eclipse.draw2d.ToolTipHelper [message #249263 is a reply to message #249255] Sat, 13 June 2009 00:48 Go to previous messageGo to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Looks like you are seeing this bug:

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

HTH
Ben

Markus Franz wrote:
> Hi all,
>
> i am having a problem with my GMF application, yet as the Problem is an
> Exception in a draw2d class, i hope that this is the right place to ask
> for help:
>
> The problem is there for a long time (different versions of Galileo),
> but my configuration right now is as follows:
> Eclipse Galileo in the Cocoa 64 Bit Version on Mac OS X 10.5.7 with GEF
> All-in-One SDK 3.5.0.v20090422..., GMF SDK 2.2.0.v20090114...
>
> My application is running fine, but my conole log is stuffed full with
> the following NPE:
>
>
> java.lang.NullPointerException
> at
> org.eclipse.draw2d.ToolTipHelper$3.mouseEnter(ToolTipHelper. java:133)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:187)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3542)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1247)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1270)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1255)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 076)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3440)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3099)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at xxx.XXXApplication.start(XXXApplication.java:19)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> 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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
>
> The reason being that the "timer" in ToolTipHelper is null when
> hookShellListeners() calls timer.cancel().
>
> There is no "real" problem (the application does not seem to mind), but
> as the console is spammed with this NPE, it is a real pain to look for
> other Exceptions while developing (not to mention the how cluttered the
> log would be if i released my application with this problem still
> present...).
> What bugs me most is that my collegues using Windows machines never see
> that problem.
> Has anyone seen this problem before or may direct me to the newsgroup i
> am most likely to get help?
>
> gr.
>
> Markus
Re: Null Pointer Exception in org.eclipse.draw2d.ToolTipHelper [message #249271 is a reply to message #249255] Sat, 13 June 2009 21:26 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Yes, it's been reported by other person as well and the setup of the same
Cocoa 64 bit. Did you see this happening with any other GEF milestone
build? What about GEF 3.4.2?
We're mainly working on WinXP 32 bit, so we've never seen this issue. Did
you see it happening on Linux?
Please raise a bug. I have a feeling the problem is in SWT, since Draw2D
hasn't really changed from 3.4.2 to 3.5.

Cheers,
Alex
Re: Null Pointer Exception in org.eclipse.draw2d.ToolTipHelper [message #249280 is a reply to message #249271] Mon, 15 June 2009 07:25 Go to previous message
Eclipse UserFriend
Originally posted by: markus.franz.kapelan.com

Hi,

thanks for your responses. I am positive that i indeed have found bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278593 in another
circumstance (GMF). I can confirm that the Bug is not present in GEF
3.4.2. I do not have a Linux machine at hand so no idea there...
As the Bug contains a patch that seems to resolve the bug (although i
think it does only "cure" the symptom, not the problem) i will wait for
that fix to be integrated into Draw2d. I also had the feeling that the
underlying problem may be with SWT, unfortunately i do not have the time
to investigate this further...

Thanks for pointing me to the bug.

Markus

> Hi,
>
> Yes, it's been reported by other person as well and the setup of the
> same Cocoa 64 bit. Did you see this happening with any other GEF
> milestone build? What about GEF 3.4.2?
> We're mainly working on WinXP 32 bit, so we've never seen this issue.
> Did you see it happening on Linux?
> Please raise a bug. I have a feeling the problem is in SWT, since Draw2D
> hasn't really changed from 3.4.2 to 3.5.
>
> Cheers,
> Alex
>
Previous Topic:Problem with mouse hover in draw2d figure
Next Topic:Connect nodes via keyboard
Goto Forum:
  


Current Time: Sun Nov 23 10:08:42 GMT 2014

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

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