Tomcat hangs on shutdown [message #1062679] |
Mon, 10 June 2013 07:04  |
Eclipse User |
|
|
|
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 #1064482 is a reply to message #1064193] |
Wed, 19 June 2013 09:09  |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.05606 seconds