Logout fails [message #1059376] |
Fri, 17 May 2013 18:38 |
Boy D'Poy Messages: 67 Registered: October 2011 |
Member |
|
|
Hi All,
I'm trying to evaluate the Bahbah project I downloaded from github (https://github.com/BSI-Business-Systems-Integration-AG/org.eclipsescout.demo.git)
First of all as the examples that I write myself, the disconnection appears to fail, one's immediately reconnected after clicking "Logout" from the menu, by cons when we put a breakpoint in the method "AbstractClientSession#stopSession (int)", a step-by-step run leads to some effective logout but an exception is thrown as this:
!ENTRY org.eclipse.scout.rt.client 1 0 2013-05-17 20:17:03.921
!MESSAGE org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:374) logout on server
!STACK 0
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy16.logout(Unknown Source)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:370)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:344)
at org.eclipse.scout.bahbah.client.ui.desktop.Desktop$LogoutMenu.execAction(Desktop.java:86)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.doAction(AbstractAction.java:292)
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:629)
at org.eclipse.scout.rt.ui.rap.action.AbstractRwtMenuAction$2.run(AbstractRwtMenuAction.java:220)
at org.eclipse.scout.rt.ui.rap.concurrency.RwtScoutSynchronizer$1.runVoid(RwtScoutSynchronizer.java:61)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: ProcessingException[ProcessingStatus[ERROR code=0 Calling ILogoutService.logout() java.lang.InterruptedException: Annulé par l'utilisateur]]
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:163)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:175)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
at com.sun.proxy.$Proxy16.logout(Unknown Source)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:370)
at org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:344)
at org.eclipse.scout.bahbah.client.ui.desktop.Desktop$LogoutMenu.execAction(Desktop.java:86)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.doAction(AbstractAction.java:292)
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:629)
at org.eclipse.scout.rt.ui.rap.action.AbstractRwtMenuAction$2.run(AbstractRwtMenuAction.java:220)
at org.eclipse.scout.rt.ui.rap.concurrency.RwtScoutSynchronizer$1.runVoid(RwtScoutSynchronizer.java:61)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:167)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:175)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
... 12 more
Caused by: java.lang.InterruptedException: Annulé par l'utilisateur
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.tunnelOnline(InternalHttpServiceTunnel.java:181)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.tunnelOnline(HttpServiceTunnel.java:122)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.tunnel(AbstractServiceTunnel.java:194)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:125)
... 15 more
!ENTRY org.eclipse.scout.rt.client 1 0 2013-05-17 20:17:08.738
!MESSAGE org.eclipse.scout.rt.client.AbstractClientSession.stopSession(AbstractClientSession.java:378) end session event loop
So what's really happening?
Is the session properly closed and resources freed at "Logout" click?
If not, what are the best practices to adopt, especially in this case where It seems to me that the processing of notifications prevents clients' disconnection.
Thanks!
-
Attachment: bahbah.zip
(Size: 280.66KB, Downloaded 268 times)
Once You Go Scout, You Never Come Out!
|
|
|
|
|
|
Re: Logout fails [message #1060431 is a reply to message #1060289] |
Fri, 24 May 2013 15:35 |
|
Hi Boy
Overriding this method is not recommended. This logout location is the url which is responsible to logout and not the url after a logout. So if you override this method, you just redirect the call but don't invalidate the session.
The automatic relogin happens because the redirect url after a logout is the base url which typically is /web. If you want to change it you can do this by setting a property in the config.ini of the rap plugin:
org.eclipse.scout.rt.ui.rap.servletfilter.LogoutFilter#redirectUrl=res/logout.html
See the javadoc of the LogoutFilter for more details.
I'm not sure why the exception occurs. It may be because rap cancels all running jobs when stopping the session. Which version of scout are you using?
Regards
Claudio
|
|
|
|
Re: Logout fails [message #1060515 is a reply to message #1060505] |
Sat, 25 May 2013 21:23 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
Boy D'Poy wrote on Sat, 25 May 2013 17:27The Scout version I currently use is 3.8.2, but It's the same case on 3.9 (Bahbah project is built on Scout 3.9)
As indicated on the presentation page of the scout demo applications, these demo apps are a work in progress.
You have different branches in the repository:
* master -> Eclispe Kepler EPP (Eclipse 4.3 + Scout 3.9)
* 3.8 -> Eclispe Juno EPP (Eclipse 4.2 + Scout 3.8)
We plan to add other branches for other combinations in the future.
Be aware that there is a big difference for RAP between Juno and Kepler: with Kepler we have upgraded RAP to Kepler 2.0.
[Updated on: Sat, 25 May 2013 21:24] Report message to a moderator
|
|
|
|
Re: Logout fails [message #1061178 is a reply to message #1060626] |
Thu, 30 May 2013 12:17 |
Boy D'Poy Messages: 67 Registered: October 2011 |
Member |
|
|
Quote:I tried to implement the solution Claudio indicated, but I the current Scout releases 3.8.2 & 3.9[.0.20130522-0147]
Ignore this partially plz, only for 3.9, not for 3.8.2, beacause it was due to a bad upgrade from eclipse 4.3.M.7 to 4.3.RC1.
I implemented the solution as recommended and it worked fine!
Thank you, but I would be very grateful to take a look at this question I submit a few days ago : http://www.eclipse.org/forums/index.php/t/487941/
Once You Go Scout, You Never Come Out!
|
|
|
Powered by
FUDForum. Page generated in 0.03869 seconds