Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Eception in UIThread
Eception in UIThread [message #820691] Wed, 14 March 2012 12:47 Go to next message
Thomas Weinstein is currently offline Thomas WeinsteinFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,

we have a RAP 1.3.0 application deployed in Tomcat.
Runs just fine, but from time to time, around once a week, customer reports that he's not able to start app in browser. After this we have to restart Tomcat and all works fine again.

Looking to the Logs we found:

.....
Caused by: org.eclipse.rwt.internal.lifecycle.UIThread$UIThreadTerminatedError
at org.eclipse.rwt.internal.lifecycle.UIThread.handleInterruptInSwitchThread(UIThread.java:92)
at org.eclipse.rwt.internal.lifecycle.UIThread.switchThread(UIThread.java:63)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:297)
at org.eclipse.swt.widgets.Display.sleep(Display.java:1128)
at com.daimler.nsw.epeditor2.dialogs.VersionedElementDialog.execute(VersionedElementDialog.java:177)
at com.daimler.nsw.epeditor2.core.View.startErprobungsprogrammOeffnen(View.java:558)
... 33 more

Any idea what the reason for this may be?
In what cases the UIThreadTerminatedError is thrown?
The class VersionedElementDialog displays a modal dialog on top of the app to let the user select a document.

Thank you for any hint.

Thomas
Re: Eception in UIThread [message #821445 is a reply to message #820691] Thu, 15 March 2012 11:07 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Thomas,

this is just a guess: are you catching Throwable (e.g. in the dialog's
exception handler)?
If so you'll have to make sure to re-throw ThreadDeath errors.
UIThreadTerminatedError is a subclass of ThreadDeath that indicates that
the UI thread was terminated.

HTH
Rüdiger

On 14.03.2012 13:47, Thomas Weinstein wrote:
> Hi,
>
> we have a RAP 1.3.0 application deployed in Tomcat. Runs just fine, but
> from time to time, around once a week, customer reports that he's not
> able to start app in browser. After this we have to restart Tomcat and
> all works fine again.
>
> Looking to the Logs we found:
>
> .....
> Caused by:
> org.eclipse.rwt.internal.lifecycle.UIThread$UIThreadTerminatedError
> at
> org.eclipse.rwt.internal.lifecycle.UIThread.handleInterruptInSwitchThread(UIThread.java:92)
>
> at
> org.eclipse.rwt.internal.lifecycle.UIThread.switchThread(UIThread.java:63)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:297)
>
> at org.eclipse.swt.widgets.Display.sleep(Display.java:1128)
> at
> com.daimler.nsw.epeditor2.dialogs.VersionedElementDialog.execute(VersionedElementDialog.java:177)
>
> at
> com.daimler.nsw.epeditor2.core.View.startErprobungsprogrammOeffnen(View.java:558)
>
> ... 33 more
>
> Any idea what the reason for this may be?
> In what cases the UIThreadTerminatedError is thrown?
> The class VersionedElementDialog displays a modal dialog on top of the
> app to let the user select a document.
>
> Thank you for any hint.
>
> Thomas
>
>
--
Rüdiger Herrmann
http://codeaffine.com
Previous Topic:Setting "ID" for TableItem
Next Topic:Integration of JavaFx 2.0 in RAP???
Goto Forum:
  


Current Time: Mon Dec 22 11:30:31 GMT 2014

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

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