Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Unhandled event loop exception
Unhandled event loop exception [message #449845] Mon, 22 May 2006 11:36 Go to next message
Eclipse UserFriend
Hi,

I am getting Unhandled event loop exception while trying to set the input
to a treeViewer.
Please Note: There is already some data present inside the treeViewer.

The details from the log file is as below:

!ENTRY org.eclipse.ui 4 4 2006-05-22 18:34:05.984
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-05-22 18:34:06.00
!MESSAGE java.lang.StackOverflowError
!STACK 0
java.lang.StackOverflowError

Any idea why is this happening?

Thanks,
Alex
Re: Unhandled event loop exception [message #449849 is a reply to message #449845] Mon, 22 May 2006 15:55 Go to previous messageGo to next message
Eclipse UserFriend
A stack overflow usually means that there an infinite loop somewhere in your
code.

"Alex " <alex@yahoo.com> wrote in message
news:19f01a16994a16b94cd37ae36e2015d3$1@www.eclipse.org...
> Hi,
>
> I am getting Unhandled event loop exception while trying to set the input
> to a treeViewer. Please Note: There is already some data present inside
> the treeViewer.
>
> The details from the log file is as below:
>
> !ENTRY org.eclipse.ui 4 4 2006-05-22 18:34:05.984
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2006-05-22 18:34:06.00
> !MESSAGE java.lang.StackOverflowError
> !STACK 0
> java.lang.StackOverflowError
>
> Any idea why is this happening?
>
> Thanks,
> Alex
>
Re: Unhandled event loop exception [message #449852 is a reply to message #449849] Tue, 23 May 2006 03:22 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply.

Any idea how can I prevent this situation in my case.

I also tried to remove the data from the treeViewer before setting the new
input to it, but still getting the same error.

Thanks,
Alex
Re: Unhandled event loop exception [message #449859 is a reply to message #449845] Tue, 23 May 2006 09:46 Go to previous messageGo to next message
Eclipse UserFriend
What is the loop in that stack trace? i.e. give us 2 iterations of the
repeated stack trace.

Later,
PW
Re: Unhandled event loop exception [message #449869 is a reply to message #449852] Tue, 23 May 2006 12:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kammerj.bit-sys.com

> Thanks for your reply.
>
> Any idea how can I prevent this situation in my case.
>
> I also tried to remove the data from the treeViewer
> before setting the new
> input to it, but still getting the same error.
>
> Thanks,
> Alex
>
>


Do you have a recursive method in there somewhere? I'd step through the code using the debugger to see where it is getting stuck, My guess is you've got a recursuve method that has a bad or missing end condition (or one that had already been passed when the arguments were initially passed in) and thus each call into the method adds to the stack until you've used up your memeory.

-- Kammer
Re: Unhandled event loop exception [message #449889 is a reply to message #449845] Wed, 24 May 2006 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: maren.settekorn.infineon.com

In my application I sometimes get an unhandled event loop exception when
an exception e. g. ArrayIndexOutOfBoundsException occures in one of the
classes in the plugin my RCP uses, not the one I'm writing, which is not
catched anywhere. Surrounding the critical code with
try..catch (Exception e) e.printStackTrace was extremely helpful to find
the cause of the exception.

MfG Maren
Re: Unhandled event loop exception [message #450083 is a reply to message #449889] Fri, 26 May 2006 05:50 Go to previous message
Eclipse UserFriend
Thanks everyone for your suggestions.

Actually there was a problem in my treeViewers.getParent() method, which
was not returning the valid Parent. This method was internally getting
called from the recursive method AbstractTreeViewer.internalExpand() and
thus it was going into infinite loop.

Regards,
Alex
Previous Topic:MenuBar/Toolbar
Next Topic:Design question about Perspectives & Views
Goto Forum:
  


Current Time: Sun Nov 09 09:29:11 EST 2025

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

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

Back to the top