Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321382

Summary: RAP throws IllegalStateException when it should handle an other exception
Product: [RT] RAP Reporter: Philipp Leusmann <leusmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.