Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » InterruptedException from servlet containter thread
InterruptedException from servlet containter thread [message #506843] Mon, 11 January 2010 00:42 Go to next message
Paul Kendall is currently offline Paul KendallFriend
Messages: 40
Registered: July 2009
Member
Hi
We have this exception occur sometimes when we logout of our RAP
application. The way we log out is that we have a custom widget that
redirects to a JSP page when we set a URL on it. When this happens,
we occasionally get the exception below.

11 Jan 2010 11:36:47,254 | 9451458 [ERROR] {http-8080-Processor17}
(org.apache.tomcat.util.threads.ThreadPool) Unexpected exception
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:661)
at java.lang.Thread.run(Thread.java:619)

The interrupt is coming from the UICallbackManager.blockCallBackRequest in
the beforeDestroy implementation of the SessionStoreListener. By debugging
through it seems that the blockCallBackRequest method is always called from
the servlet thread, and so it seems to me that the SessionStoreListener in
this case is unnecessary. Thoughts?

Cheers,
Paul
Re: InterruptedException from servlet containter thread [message #506845 is a reply to message #506843] Mon, 11 January 2010 01:05 Go to previous messageGo to next message
Paul Kendall is currently offline Paul KendallFriend
Messages: 40
Registered: July 2009
Member
Paul Kendall wrote:

> Hi
> We have this exception occur sometimes when we logout of our RAP
> application. The way we log out is that we have a custom widget that
> redirects to a JSP page when we set a URL on it. When this happens,
> we occasionally get the exception below.
>
> 11 Jan 2010 11:36:47,254 | 9451458 [ERROR] {http-8080-Processor17}
> (org.apache.tomcat.util.threads.ThreadPool) Unexpected exception
> java.lang.InterruptedException
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:485)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:661)
> at java.lang.Thread.run(Thread.java:619)
>
> The interrupt is coming from the UICallbackManager.blockCallBackRequest in
> the beforeDestroy implementation of the SessionStoreListener. By debugging
> through it seems that the blockCallBackRequest method is always called
> from the servlet thread, and so it seems to me that the
> SessionStoreListener in this case is unnecessary. Thoughts?
>

Answering myself here. It looks like the problem can be fixed by adding a
call to Thread.interrupted() at the end of the finally block in the
UICallBackManager.blockCallBackRequest method.

Should I raise a bug for this?

> Cheers,
> Paul
Re: InterruptedException from servlet containter thread [message #507696 is a reply to message #506845] Thu, 14 January 2010 12:18 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hey Paul,

can you reproduce this problem in a safe way? Would be really interested
in some steps to reproduce it. In case you can, please open a bug for
this so we can take a look at it.

Regards,
Benny

Paul Kendall wrote:
> Paul Kendall wrote:
>
>> Hi
>> We have this exception occur sometimes when we logout of our RAP
>> application. The way we log out is that we have a custom widget that
>> redirects to a JSP page when we set a URL on it. When this happens,
>> we occasionally get the exception below.
>>
>> 11 Jan 2010 11:36:47,254 | 9451458 [ERROR] {http-8080-Processor17}
>> (org.apache.tomcat.util.threads.ThreadPool) Unexpected exception
>> java.lang.InterruptedException
>> at java.lang.Object.wait(Native Method)
>> at java.lang.Object.wait(Object.java:485)
>> at
>>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:661)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> The interrupt is coming from the UICallbackManager.blockCallBackRequest in
>> the beforeDestroy implementation of the SessionStoreListener. By debugging
>> through it seems that the blockCallBackRequest method is always called
>> from the servlet thread, and so it seems to me that the
>> SessionStoreListener in this case is unnecessary. Thoughts?
>>
>
> Answering myself here. It looks like the problem can be fixed by adding a
> call to Thread.interrupted() at the end of the finally block in the
> UICallBackManager.blockCallBackRequest method.
>
> Should I raise a bug for this?
>
>> Cheers,
>> Paul
>


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Previous Topic:Shell clipped within a View possible?
Next Topic:Menu Problem
Goto Forum:
  


Current Time: Fri Apr 19 21:02:42 GMT 2024

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

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

Back to the top