Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF Errors
GEF Errors [message #168749] Fri, 18 February 2005 10:30 Go to next message
Eclipse UserFriend
Originally posted by: a.morgan.pilz.ie

Hi Guys,

I am having trouble debugging my GEF application because of the poor error
information I am getting.
For example when creating an EditPart I call a method which in certain
circumstances returns null.
This error is not reported right away but instead I get the error message at
the end of this post returned.
Obviously this is of no use to me and I end up stepping through every line
to find the problem.
And when I do get NullPointer or ClassCastExceptions they never have
stacktraces.
Does everyone else suffer from this or am I doing something wrong ?

Thanks,
Alan.

Unhandled event loop exception

Reason:

Widget is disposed

right away but instead I get this returned
Re: GEF Errors [message #168935 is a reply to message #168749] Sun, 20 February 2005 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi

take a look in the .log file in your workspace/.metadata
directory.

greetings

Andreas
Re: GEF Errors [message #169037 is a reply to message #168749] Mon, 21 February 2005 09:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

news.eclipse.org wrote:
> Hi Guys,
>
> I am having trouble debugging my GEF application because of the poor error
> information I am getting.
> For example when creating an EditPart I call a method which in certain
> circumstances returns null.
> This error is not reported right away but instead I get the error message at
> the end of this post returned.
> Obviously this is of no use to me and I end up stepping through every line
> to find the problem.
> And when I do get NullPointer or ClassCastExceptions they never have
> stacktraces.
> Does everyone else suffer from this or am I doing something wrong ?
>
> Thanks,
> Alan.
>
> Unhandled event loop exception
>
> Reason:
>
> Widget is disposed
>
> right away but instead I get this returned
>
>

you can add -consoleLog to your launchers options. Also you can set the
debugger to stop when it gets a NullPointerException. You often miss
the exceptions in these GUI based programs as sometimes they occur in
different threads.


Cl
Re: GEF Errors [message #171089 is a reply to message #168749] Tue, 08 March 2005 22:48 Go to previous messageGo to next message
Eclipse UserFriend
And let's not forget the Error Log view.

"news.eclipse.org" <a.morgan@pilz.ie> wrote in message
news:cv51oq$bed$1@www.eclipse.org...
> Hi Guys,
>
> I am having trouble debugging my GEF application because of the poor error
> information I am getting.
> For example when creating an EditPart I call a method which in certain
> circumstances returns null.
> This error is not reported right away but instead I get the error message
at
> the end of this post returned.
> Obviously this is of no use to me and I end up stepping through every line
> to find the problem.
> And when I do get NullPointer or ClassCastExceptions they never have
> stacktraces.
> Does everyone else suffer from this or am I doing something wrong ?
>
> Thanks,
> Alan.
>
> Unhandled event loop exception
>
> Reason:
>
> Widget is disposed
>
> right away but instead I get this returned
>
>
Re: GEF Errors [message #171138 is a reply to message #168749] Wed, 09 March 2005 03:18 Go to previous message
Eclipse UserFriend
Originally posted by: kvdijken.tiscali.nl

I got this error (or a similar, don't remember exactly) in this scenario:

- open multiple GEF editors in eclipse
- close eclipse
- open eclipse again, it will show tabs for each editor in the previous
session, but only calls createPartControl() for the active editor.
- close eclipse again. At this moment I got this error message in
createPartControl() for an editor for which only the tab was displayed but
not has become active yet (in this eclipse-session). I suppose on closing
eclipse, all editors are closed one-by-one. By closing one of the editors,
the next one becomes active, and createPartControl() for that editor gets
called. When you do something on the Composite parent of this editor in
createPartControl (as I did) you will get the errormessage on the parent,
which is disposed at that time.

Hop this helps,

Koen


news.eclipse.org wrote:

> Hi Guys,

> I am having trouble debugging my GEF application because of the poor error
> information I am getting.
> For example when creating an EditPart I call a method which in certain
> circumstances returns null.
> This error is not reported right away but instead I get the error message at
> the end of this post returned.
> Obviously this is of no use to me and I end up stepping through every line
> to find the problem.
> And when I do get NullPointer or ClassCastExceptions they never have
> stacktraces.
> Does everyone else suffer from this or am I doing something wrong ?

> Thanks,
> Alan.

> Unhandled event loop exception

> Reason:

> Widget is disposed

> right away but instead I get this returned
Previous Topic:Determine nature of drag in createDragSourceFeedbackFigure
Next Topic:EditPart Refresh Problem
Goto Forum:
  


Current Time: Tue Oct 28 06:45:03 EDT 2025

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

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

Back to the top