Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Close RAP Application
Close RAP Application [message #100343] Mon, 28 July 2008 14:10 Go to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi,

Am facing couble problem when i try to close RAP application.

1: when I close the application using file -> exit , the browser throw an
exeption:
HTTP ERROR: 500
Internal Server Error
RequestURI=/rap

**notes: no exception thrown in the console or workspace log.


2: Same exception is also thrown when refresh the browser , although that
the confirmation dialog is asking if i want to leave the session.


3: In my application I have a login shell before creating the application
workbench, is it possible when i close the application to return back to
the login shell.


any help

Salwa
Re: Close RAP Application [message #100611 is a reply to message #100343] Tue, 29 July 2008 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

what are you doing in the exit code?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Salwa [mailto:salwa.moh@gmail.com]
Bereitgestellt: Montag, 28. Juli 2008 16:10
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Close RAP Application
Betreff: Close RAP Application

Hi,

Am facing couble problem when i try to close RAP application.

1: when I close the application using file -> exit , the browser throw
an
exeption:
HTTP ERROR: 500
Internal Server Error
RequestURI=/rap

**notes: no exception thrown in the console or workspace log.


2: Same exception is also thrown when refresh the browser , although
that
the confirmation dialog is asking if i want to leave the session.


3: In my application I have a login shell before creating the
application
workbench, is it possible when i close the application to return back to

the login shell.


any help

Salwa
Re: Close RAP Application [message #100705 is a reply to message #100611] Tue, 29 July 2008 11:37 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi,
I just registered the Exit action in the Actionbaradvisor:

exitAction = ActionFactory.QUIT.create(window);
register(exitAction);

and in the ApplicationWorkbenchWindowAdvisor i override the
preWindowShellClose method:
{
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
boolean
answer=MessageDialog.openConfirm(configurer.getWindow().getS hell(),
"Confirm Platform Exit", "Are you sure you want to exit?");
if (answer == true) {
return true;
}
return false
}

However, when I debug it, I found that this method is never called.

Regards
Salwa
Re: Close RAP Application [message #100719 is a reply to message #100705] Tue, 29 July 2008 12:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

the overridden WorkbenchWindowAdvisor#preWindowShellClose method is
indeed never called, which from my current point of view I would
consider to be a bug. But nevertheless I could not reproduce the problem
using the ActionFactory#QUIT action.

With the RAP version in my workspace (== CVS-Head) the workbench window
closes and only the blue-white background is visible. After pressing F5
the session restarts with a new workbench window.

So it's difficult to say what's happening. As you report an Internal
Server Error you may try to set an Java Exception Breakpoint to nail
down the problem in debug mode.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Salwa [mailto:salwa.moh@gmail.com]
Bereitgestellt: Dienstag, 29. Juli 2008 13:38
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Close RAP Application
Betreff: Re: Close RAP Application

Hi,
I just registered the Exit action in the Actionbaradvisor:

exitAction = ActionFactory.QUIT.create(window);
register(exitAction);

and in the ApplicationWorkbenchWindowAdvisor i override the
preWindowShellClose method:
{
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
boolean
answer=MessageDialog.openConfirm(configurer.getWindow().getS hell(),
"Confirm Platform Exit", "Are you sure you want to exit?");
if (answer == true) {
return true;
}
return false
}

However, when I debug it, I found that this method is never called.

Regards
Salwa
Re: Close RAP Application [message #101389 is a reply to message #100719] Wed, 06 August 2008 17:33 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi Frank,

I debug my application , and when I refresh the browser I capture these
info:

this org.eclipse.rwt.internal.service.ServiceContext@ad8f2b
disposed true
request null
response null
sessionStore null
stateInfo null

------------------------------------

UIThread(Thread).dispatchUncaughtException(Throwable) line: not available

this Thread[UIThread [1xt7wh81cykbx],6,main]
arg0 java.lang.IllegalStateException: The context has been disposed.
cause java.lang.IllegalStateException: The context has been disposed.
detailMessage The context has been disposed.
stackTrace null

----------------------------------------
I got this Exceptin in My console:

Exception in thread "UIThread [1xt7wh81cykbx]"
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:165)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:133)
at java.lang.Thread.run(Unknown Source)


ANy help to fibure of what is missing ,, and why am geting this exception
Regards
Salwa
Re: Close RAP Application [message #101504 is a reply to message #101389] Thu, 07 August 2008 08:57 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I'm really sorry, but as I can't reproduce the problem on my machine I
have no clue what's going on. Maybe you're able to strip the problem
down to a little demo project that you can attach to a post so that I
can have a look at it?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Salwa [mailto:salwa.moh@gmail.com]
Bereitgestellt: Mittwoch, 6. August 2008 19:33
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Close RAP Application
Betreff: Re: Close RAP Application

Hi Frank,

I debug my application , and when I refresh the browser I capture these
info:

this org.eclipse.rwt.internal.service.ServiceContext@ad8f2b
disposed true
request null
response null
sessionStore null
stateInfo null

------------------------------------

UIThread(Thread).dispatchUncaughtException(Throwable) line: not
available

this Thread[UIThread [1xt7wh81cykbx],6,main]
arg0 java.lang.IllegalStateException: The context has been disposed.
cause java.lang.IllegalStateException: The context has been
disposed.
detailMessage The context has been disposed.
stackTrace null

----------------------------------------
I got this Exceptin in My console:

Exception in thread "UIThread [1xt7wh81cykbx]"
java.lang.IllegalStateException:The context has been disposed.
at
org.eclipse.rwt.internal.service.ServiceContext.checkState(S erviceContex
t.java:154)
at
org.eclipse.rwt.internal.service.ServiceContext.getStateInfo (ServiceCont
ext.java:104)
at
org.eclipse.rwt.internal.service.ContextProvider.getStateInf o(ContextPro
vider.java:165)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(R
WTLifeCycle.java:133)
at java.lang.Thread.run(Unknown Source)


ANy help to fibure of what is missing ,, and why am geting this
exception
Regards
Salwa
Previous Topic:RAP 1.2 ???
Next Topic:Browser Memory Usage
Goto Forum:
  


Current Time: Thu Apr 25 17:37:31 GMT 2024

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

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

Back to the top