Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321382 - RAP throws IllegalStateException when it should handle an other exception
Summary: RAP throws IllegalStateException when it should handle an other exception
Status: RESOLVED INVALID
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 12:55 EDT by Philipp Leusmann CLA
Modified: 2010-07-30 14:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Leusmann CLA 2010-07-30 12:55:42 EDT
Build Identifier: 

In one of my classes a java.lang.ExceptionInInitializerError occurs, but it never gets logged.

Thas is, in the "catch (Throwable thr)"-block of UIThreadController#run(), ContextProvider.getStateInfo() is called to store the throwable in. But this method itself throws an IllegalStateException in ServiceContext#chackState(). 

Thus the "original" exception never makes it to the log.



Reproducible: Always

Steps to Reproduce:
1. throw a random RuntimeException in a static initializer in the IEntryPoint
Comment 1 Rüdiger Herrmann CLA 2010-07-30 14:11:13 EDT
I cannot reproduce the problem with CVS HEAD.
Everything works as expected: an HTTP 500 error page is shown with the stack strace.
Please reopen if have further information.
Comment 2 Rüdiger Herrmann CLA 2010-07-30 14:13:16 EDT
You may have run into bug 316676 which is fixed in the meanwhile and will be published in 1.4M1 and 1.3 SR1.