Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [LifeCycle] Problem with disposed Context
[LifeCycle] Problem with disposed Context [message #48632] Fri, 21 September 2007 13:26 Go to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
Hi all, I've found this problem with new CVS updates, When you launch
Demo app and close workbench, If you try to refresh page, to entry into
application again, an exception is thrown:

java.lang.IllegalStateException: The context has been disposed.
at
org.eclipse.rwt.internal.service.ServiceContext.checkState(S erviceContext.java:154)
at
org.eclipse.rwt.internal.service.ServiceContext.getRequest(S erviceContext.java:82)
at
org.eclipse.rwt.internal.service.ContextProvider.getRequest( ContextProvider.java:128)
at
org.eclipse.rwt.internal.service.ContextProvider.getSession( ContextProvider.java:147)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.bufferThrowable(RWTLifeCycleBlockCon trol.java:90)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.run(RWTLifeCycleBlockControl.java:70 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olRunnable.run(RWTLifeCycleThreadPool.java:38)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olWorker.run(RWTLifeCycleThreadPool.java:66)


I've created this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204076 there are several
situations when this problem happens.

I was waiting for new performance improvements planned for this week,
but with this problem I'm blocked, My new application release will have
to await.

I'm not an expert in RAP Lifecycle but I think that Context should be
re-created when Entrypoint is called, but I don't know...

Please, a patch/workaround will be welcome.

Thanks in advance.
Roberto.
Re: [LifeCycle] Problem with disposed Context [message #49180 is a reply to message #48632] Mon, 24 September 2007 02:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

please update against the latest CVS versions and tell me whether the
situation has improved. Sorry for your inconvenience.

Ciao
Frank


"Roberto S
Re: [LifeCycle] Problem with disposed Context [message #49201 is a reply to message #49180] Mon, 24 September 2007 07:35 Go to previous messageGo to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
Hi Frank, now It works fine, I would like to test it a bit more, but all
seems to be OK.

Thank you.

Bye
Roberto.


Frank Appel escribió:
> Hi,
>
> please update against the latest CVS versions and tell me whether the
> situation has improved. Sorry for your inconvenience.
>
> Ciao
> Frank
>
>
> "Roberto Sá‡nchez" <roberto@autonomind.com> schrieb im Newsbeitrag
> news:fd0gpg$mt8$1@build.eclipse.org...
>> Hi all, I've found this problem with new CVS updates, When you launch Demo
>> app and close workbench, If you try to refresh page, to entry into
>> application again, an exception is thrown:
>>
>> java.lang.IllegalStateException: The context has been disposed.
>> at
>> org.eclipse.rwt.internal.service.ServiceContext.checkState(S erviceContext.java:154)
>> at
>> org.eclipse.rwt.internal.service.ServiceContext.getRequest(S erviceContext.java:82)
>> at
>> org.eclipse.rwt.internal.service.ContextProvider.getRequest( ContextProvider.java:128)
>> at
>> org.eclipse.rwt.internal.service.ContextProvider.getSession( ContextProvider.java:147)
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.bufferThrowable(RWTLifeCycleBlockCon trol.java:90)
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.run(RWTLifeCycleBlockControl.java:70 )
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olRunnable.run(RWTLifeCycleThreadPool.java:38)
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olWorker.run(RWTLifeCycleThreadPool.java:66)
>>
>>
>> I've created this bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=204076 there are several
>> situations when this problem happens.
>>
>> I was waiting for new performance improvements planned for this week, but
>> with this problem I'm blocked, My new application release will have to
>> await.
>>
>> I'm not an expert in RAP Lifecycle but I think that Context should be
>> re-created when Entrypoint is called, but I don't know...
>>
>> Please, a patch/workaround will be welcome.
>>
>> Thanks in advance.
>> Roberto.
>
>
Re: [LifeCycle] Problem with disposed Context [message #128061 is a reply to message #49201] Wed, 15 April 2009 18:17 Go to previous message
Hasan Ceylan is currently offline Hasan CeylanFriend
Messages: 198
Registered: July 2009
Senior Member
Hello,

We have been experiencing exactly the same problem against 1.2M6 release

java.lang.IllegalStateException: The context has been disposed.
at org.eclipse.rwt.internal.service.ServiceContext.checkState(S erviceContext.java:154)
at org.eclipse.rwt.internal.service.ServiceContext.getStateInfo (ServiceContext.java:104)
at org.eclipse.rwt.internal.service.ContextProvider.getStateInf o(ContextProvider.java:166)
at org.eclipse.rwt.internal.lifecycle.CurrentPhase.get(CurrentP hase.java:48)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :721)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:807)
at org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1430)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
at org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:119)
at org.eclipse.swt.widgets.Display$2.run(Display.java:649)
at org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 455)
at org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:647)
at org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1425)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2404)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 95)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:514)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:497)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
at com.turquality.server.rap.Application.createUI(Application.j ava:60)
at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
at java.lang.Thread.run(Thread.java:636)
Exception in thread "UIThread [79F5701409C7E6F2FCF5B12D127B16AD]" java.lang.IllegalStateException: The context has been disposed.
at org.eclipse.rwt.internal.service.ServiceContext.checkState(S erviceContext.java:154)
at org.eclipse.rwt.internal.service.ServiceContext.getRequest(S erviceContext.java:82)
at org.eclipse.rwt.internal.service.ContextProvider.getRequest( ContextProvider.java:129)
at org.eclipse.rwt.internal.service.ContextProvider.getSession( ContextProvider.java:148)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.setShutdownA dapter(RWTLifeCycle.java:345)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.access$0(RWT LifeCycle.java:342)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:130)
at java.lang.Thread.run(Thread.java:636)

Any hints?

Hasan Ceylan

Roberto Sá‡nchez wrote:

> Hi Frank, now It works fine, I would like to test it a bit more, but all
> seems to be OK.
>
> Thank you.
>
> Bye
> Roberto.
>
>
> Frank Appel escribió:
>> Hi,
>>
>> please update against the latest CVS versions and tell me whether the
>> situation has improved. Sorry for your inconvenience.
>>
>> Ciao
>> Frank
>>
>>
>> "Roberto Sá‡nchez" <roberto@autonomind.com> schrieb im Newsbeitrag
>> news:fd0gpg$mt8$1@build.eclipse.org...
>>> Hi all, I've found this problem with new CVS updates, When you launch
>>> Demo app and close workbench, If you try to refresh page, to entry into
>>> application again, an exception is thrown:
>>>
>>> java.lang.IllegalStateException: The context has been disposed.
>>> at
>>> org.eclipse.rwt.internal.service.ServiceContext.checkState(S erviceContext.java:154)
>>> at
>>> org.eclipse.rwt.internal.service.ServiceContext.getRequest(S erviceContext.java:82)
>>> at
>>> org.eclipse.rwt.internal.service.ContextProvider.getRequest( ContextProvider.java:128)
>>> at
>>> org.eclipse.rwt.internal.service.ContextProvider.getSession( ContextProvider.java:147)
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.bufferThrowable(RWTLifeCycleBlockCon trol.java:90)
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.run(RWTLifeCycleBlockControl.java:70 )
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olRunnable.run(RWTLifeCycleThreadPool.java:38)
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olWorker.run(RWTLifeCycleThreadPool.java:66)
>>>
>>>
>>> I've created this bug:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=204076 there are several
>>> situations when this problem happens.
>>>
>>> I was waiting for new performance improvements planned for this week,
>>> but with this problem I'm blocked, My new application release will have
>>> to await.
>>>
>>> I'm not an expert in RAP Lifecycle but I think that Context should be
>>> re-created when Entrypoint is called, but I don't know...
>>>
>>> Please, a patch/workaround will be welcome.
>>>
>>> Thanks in advance.
>>> Roberto.
>>
>>
Previous Topic:Performance
Next Topic:Drag and Drop
Goto Forum:
  


Current Time: Thu Apr 25 06:31:42 GMT 2024

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

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

Back to the top