Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » What does this exception mean?
What does this exception mean? [message #157122] Sun, 07 November 2004 19:34 Go to next message
Eclipse UserFriend
Originally posted by: k.oriordan.oceanfree.net

Getting this exception when I try to draw a graph of figures using a
custom layout manager.

Any idea where to start looking to find out where the error is? It
occurs during this step - "while (!display.readAndDispatch())" in my
tester method, and during an EditPart.refresh() call in GEF.

Exception in thread "main" org.eclipse.swt.SWTException: Failed to
execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:2691)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:109)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at test.Tester.drawGraph2(Tester.java:115)
at test.Tester.main(Tester.java:62)
Re: What does this exception mean? [message #157132 is a reply to message #157122] Sun, 07 November 2004 21:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Kevin O'Riordan wrote:
> Getting this exception when I try to draw a graph of figures using a
> custom layout manager.
>
> Any idea where to start looking to find out where the error is? It
> occurs during this step - "while (!display.readAndDispatch())" in my
> tester method, and during an EditPart.refresh() call in GEF.
>

yes, try looking in test.Tester 'main' method line 62.


> Exception in thread "main" org.eclipse.swt.SWTException: Failed to
> execute runnable (java.lang.NullPointerException)
> at org.eclipse.swt.SWT.error(SWT.java:2691)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:109)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
> at test.Tester.drawGraph2(Tester.java:115)
> at test.Tester.main(Tester.java:62)


--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: What does this exception mean? [message #157172 is a reply to message #157122] Mon, 08 November 2004 05:28 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
That seems like a wrapper exception. Find the stack trace for the NPE that
got wrapped and you'll know the problem. If you overrode any of the
refresh*() methods in your EditPart, you might have introduced a NPE
somewhere there.

An alternative is to set a breakpoint for NPE while running your code.

--

Pratik Shah
"Kevin O'Riordan" <k.oriordan@oceanfree.net> wrote in message
news:cmltc4$5qh$1@eclipse.org...
> Getting this exception when I try to draw a graph of figures using a
> custom layout manager.
>
> Any idea where to start looking to find out where the error is? It occurs
> during this step - "while (!display.readAndDispatch())" in my tester
> method, and during an EditPart.refresh() call in GEF.
>
> Exception in thread "main" org.eclipse.swt.SWTException: Failed to execute
> runnable (java.lang.NullPointerException)
> at org.eclipse.swt.SWT.error(SWT.java:2691)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:109)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
> at test.Tester.drawGraph2(Tester.java:115)
> at test.Tester.main(Tester.java:62)
Previous Topic:Get EditPart
Next Topic:Centering graphicalViewer focus
Goto Forum:
  


Current Time: Sun Oct 06 10:28:59 GMT 2024

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

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

Back to the top