Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Tomcat hangs on shutdown
Tomcat hangs on shutdown [message #1062679] Mon, 10 June 2013 11:04 Go to next message
Daria Huber is currently offline Daria HuberFriend
Messages: 14
Registered: June 2013
Junior Member
Hello everyone,

I have still a problem with my RAP application running on tomcat. My Tomcat hangs on shutdown.

I start a long running database operation. ProgressMonitorDialog is running and blocks UI. And then I try to shutdown my tomcat. Code snippet:see attachment "code snippet".

After a while I see this exception in a loop:
org.eclipse.core.runtime.AssertionFailedException: assertion failed: The applica
tion has not been initialized.
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
at org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(
InternalPlatform.java:139)
at org.eclipse.core.internal.runtime.InternalPlatform.addLogListener(Int
ernalPlatform.java:132)
at org.eclipse.core.runtime.Platform.addLogListener(Platform.java:498)
at org.eclipse.ui.statushandlers.StatusManager.<init>(StatusManager.java
:131)
at org.eclipse.ui.statushandlers.StatusManager.getManager(StatusManager.
java:125)
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopException(Workbe
nchAdvisor.java:323)
at org.eclipse.ui.internal.ExceptionHandler.handleException(ExceptionHan
dler.java:66)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2737)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
va:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:685)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
at cda.ea.manager.client.Application.createUI(Application.java:82)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle
.java:177)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.ru
n(RWTLifeCycle.java:289)
at java.lang.Thread.run(Thread.java:662)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Error while logging event loop exception:

I tried to analyse a thread dump, but I have no idea what it can be. Can you help me?

Thanks in advance
Daria
Re: Tomcat hangs on shutdown [message #1062748 is a reply to message #1062679] Mon, 10 June 2013 15:20 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Daria,
sorry, but I have no solution in hand for RAP 1.5. As I already
mentioned in the bug
407371: Tomcat hangs during shutdown
https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
the UICallBack has been reworked in RAP 2.0 and I can't reproduce such a
hang anymore with RAP 2.0+. It's not possible to extract a simple patch
for backporting the reworked UICallBack (ServerPushSession). If you can
reproduce the hang with RAP 2.0+ please reopen the bug.
Best,
Ivan

On 6/10/2013 3:55 PM, Daria Huber wrote:
> Hello everyone,
>
> I have still a problem with my RAP application running on tomcat. My Tomcat hangs on shutdown.
>
> I start a long running database operation. ProgressMonitorDialog is running and blocks UI. And then I try to shutdown my tomcat. Code snippet:see attachment "code snippet".
>
> After a while I see this exception in a loop:
> org.eclipse.core.runtime.AssertionFailedException: assertion failed: The applica
> tion has not been initialized.
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
> at org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(
> InternalPlatform.java:139)
> at org.eclipse.core.internal.runtime.InternalPlatform.addLogListener(Int
> ernalPlatform.java:132)
> at org.eclipse.core.runtime.Platform.addLogListener(Platform.java:498)
> at org.eclipse.ui.statushandlers.StatusManager.<init>(StatusManager.java
> :131)
> at org.eclipse.ui.statushandlers.StatusManager.getManager(StatusManager.
> java:125)
> at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopException(Workbe
> nchAdvisor.java:323)
> at org.eclipse.ui.internal.ExceptionHandler.handleException(ExceptionHan
> dler.java:66)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2737)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
> va:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
> a:685)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
> at cda.ea.manager.client.Application.createUI(Application.java:82)
> at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle
> java:177)
> at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.ru
> n(RWTLifeCycle.java:289)
> at java.lang.Thread.run(Thread.java:662)
> at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
> Error while logging event loop exception:
>
> I tried to analyse a thread dump, but I have no idea what it can be. Can you help me?
>
> Thanks in advance
> Daria
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Tomcat hangs on shutdown [message #1062775 is a reply to message #1062748] Mon, 10 June 2013 17:02 Go to previous messageGo to next message
Daria Huber is currently offline Daria HuberFriend
Messages: 14
Registered: June 2013
Junior Member
Hallo Ivan,

Thanks for your quick reply.
We found already a solution for this bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
We used for refreshing of the tableview "Timer" and not "Executor". Timer is very sensitive to exceptions and is never destroyed if exception is thrown.

But I think we running here into this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=409843

What do you think?

Daria
Re: Tomcat hangs on shutdown [message #1062779 is a reply to message #1062775] Mon, 10 June 2013 17:16 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Daria,
it's possible. We didn't have time to investigate the issue in bug
409843 ( we are busy with Kepler release ). But it's definitely
something, which will address with a higher priority. Can you provide
thread dumps when Tomcat hangs (similar to those in bug 409843)?
Best,
Ivan

On 6/10/2013 8:02 PM, Daria Huber wrote:
> Hallo Ivan,
>
> Thanks for your quick reply.
> We found already a solution for this
> bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
> We used for refreshing of the tableview "Timer" and not "Executor".
> Timer is very sensitive to exceptions and is never destroyed if
> exception is thrown.
>
> But I think we running here into this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=409843
>
> What do you think?
>
> Daria

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Tomcat hangs on shutdown [message #1062863 is a reply to message #1062779] Tue, 11 June 2013 07:39 Go to previous messageGo to next message
Daria Huber is currently offline Daria HuberFriend
Messages: 14
Registered: June 2013
Junior Member
Hi Ivan,

I attached a thread dump to my first post here. Do you need something else? I will try to reproduce this bug with RAP 2.1. And will provide new thread dump if possible.

Daria
Re: Tomcat hangs on shutdown [message #1062869 is a reply to message #1062863] Tue, 11 June 2013 07:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Daria,
thread dumps from RAP 2.1 will be helpful.
Best,
Ivan

On 6/11/2013 10:39 AM, Daria Huber wrote:
> Hi Ivan,
>
> I attached a thread dump to my first post here. Do you need something
> else? I will try to reproduce this bug with RAP 2.1. And will provide
> new thread dump if possible.
>
> Daria

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Tomcat hangs on shutdown [message #1064034 is a reply to message #1062869] Mon, 17 June 2013 11:30 Go to previous messageGo to next message
Pierre Laaser is currently offline Pierre LaaserFriend
Messages: 1
Registered: June 2013
Junior Member
Hi Ivan,
lucky Daria is on vacation, and now it is up to me to solve our "Tomcat-shutdown"-problem.
We've now built our RAP application with RAP 2.1 M2 but the problem is still the same.
Attached you will find the associated threaddump, hope it helps.
Best regards
Pierre
Re: Tomcat hangs on shutdown [message #1064092 is a reply to message #1064034] Mon, 17 June 2013 15:11 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Pierre,
maybe Daria has a point and you are running into this bug:
409843: Session reaper gets blocked by the worker tread
https://bugs.eclipse.org/bugs/show_bug.cgi?id=409843
This bug has a priority and we will address it in a closed future after
the Kepler release. If you want to continue experimenting you could try
the proposed in the bug fix - use a distinct final object in
UIThread#getLock() instead of this.
In any case a self running snippet to reproduce the hang will be welcomed.
Best,
Ivan


On 6/17/2013 3:18 PM, Pierre Laaser wrote:
> Hi Ivan,
> lucky Daria is on vacation, and now it is up to me to solve our "Tomcat-shutdown"-problem.
> We've now built our RAP application with RAP 2.1 M2 but the problem is still the same.
> Attached you will find the associated threaddump, hope it helps.
> Best regards
> Pierre

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Tomcat hangs on shutdown [message #1064103 is a reply to message #1064034] Mon, 17 June 2013 16:06 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi again,
I think I've managed to reproduce it with our Workbench Demo. In
"Planning" perspective start long running operation with dialog and try
to shutdown the tomcat while the progress is running.
Best,
Ivan

On 6/17/2013 3:18 PM, Pierre Laaser wrote:
> Hi Ivan,
> lucky Daria is on vacation, and now it is up to me to solve our "Tomcat-shutdown"-problem.
> We've now built our RAP application with RAP 2.1 M2 but the problem is still the same.
> Attached you will find the associated threaddump, hope it helps.
> Best regards
> Pierre

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Tomcat hangs on shutdown [message #1064193 is a reply to message #1062775] Tue, 18 June 2013 08:00 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Daria,
as I can finally reproduce the issue (even with completely different
from your description setup) I've reopened the bug
407371: Tomcat hangs during shutdown
https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
Best,
Ivan

On 6/10/2013 8:02 PM, Daria Huber wrote:
> Hallo Ivan,
>
> Thanks for your quick reply.
> We found already a solution for this
> bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
> We used for refreshing of the tableview "Timer" and not "Executor".
> Timer is very sensitive to exceptions and is never destroyed if
> exception is thrown.
>
> But I think we running here into this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=409843
>
> What do you think?
>
> Daria

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Tomcat hangs on shutdown [message #1064482 is a reply to message #1064193] Wed, 19 June 2013 13:09 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
After two days of investigation this is not so correct. In the attached
thread dump by Pierre the Tomcat main thread is blocked. This is not the
case with our Workbench Demo where the Tomcat main thread terminated
successfully, but the JavaVM is not destroyed. Pierre, could you provide
a complete simple self-running project to reproduce the blocked Tomcat
main thread?
Thanks,
Ivan

On 6/18/2013 11:00 AM, Ivan Furnadjiev wrote:
> Hi Daria,
> as I can finally reproduce the issue (even with completely different
> from your description setup) I've reopened the bug
> 407371: Tomcat hangs during shutdown
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
> Best,
> Ivan
>
> On 6/10/2013 8:02 PM, Daria Huber wrote:
>> Hallo Ivan,
>>
>> Thanks for your quick reply.
>> We found already a solution for this
>> bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=407371
>> We used for refreshing of the tableview "Timer" and not "Executor".
>> Timer is very sensitive to exceptions and is never destroyed if
>> exception is thrown.
>>
>> But I think we running here into this bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=409843
>>
>> What do you think?
>>
>> Daria
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:MenuItem accelerator text
Next Topic:problem with controls width
Goto Forum:
  


Current Time: Tue Apr 16 22:29:26 GMT 2024

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

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

Back to the top