Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Jaas Login integration refresh problem
Jaas Login integration refresh problem [message #871480] Mon, 14 May 2012 06:23 Go to next message
Piotr Slonicz is currently offline Piotr SloniczFriend
Messages: 13
Registered: August 2011
Location: Munich
Junior Member
I have following problem with Jaas Login integration. After I have integrated my application with Equinox Security Framework using Wiki example (wiki.eclipse.org/RAP/Equinox_Security_Integration). My application starts and login-box is shown to user. When I try to login (with/ without Name/Pass) and then try to refresh (F5) my application, all works fine, but when I try to refresh (F5) my application direct after it has been started, it crashes/doesn't response anymore - I have to restart my server (the same problem appears in the Wiki example). It seems for me to be a problem with Lifecycle: components are not right disposed or there is a some problem with UIThread.

What I have to add/change in my code to avoid crashes after the login box is being refreshed?

Maybe this problem is alraedy known, but I haven't found any helpfully informations about it.

Thank you for any hints.

Re: Jaas Login integration refresh problem [message #871488 is a reply to message #871480] Mon, 14 May 2012 07:55 Go to previous messageGo to next message
Mitch B. is currently offline Mitch B.Friend
Messages: 29
Registered: September 2011
Junior Member
We have the same problem here. Using RAP 1.5M6, the application/session seems to break if you donĀ“t complete the workbench build process (createUI -> createAndRunWorkbench and so on). After refreshing or using another entrypoint(which also fails) inside the application the same session is used and the constructor of the entrypoint/application will not be called. Deleting the session-cookie is the workaround to be able to use the application again. We would be very glad to get any hints or proper solutions to avoid this scenario.

regards, Mitch
Re: Jaas Login integration refresh problem [message #872252 is a reply to message #871488] Tue, 15 May 2012 19:13 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Mitch,

I'm not aware of this problem but it sounds like a regression, maybe
related to our changes for bug 372296 [1].

Can you describe a way of reproducing this problem with a simple Hello
World application? If this worked with an earlier version and does not
work anymore, please file a bug [2].

Regards, Ralf

[1] 372296: Distinguish Ajax requests from initial request
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372296
[2] http://eclipse.org/rap/bugs

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Jaas Login integration refresh problem [message #872480 is a reply to message #872252] Wed, 16 May 2012 07:46 Go to previous messageGo to next message
Piotr Slonicz is currently offline Piotr SloniczFriend
Messages: 13
Registered: August 2011
Location: Munich
Junior Member
Hi Ralf,

in my application (without JAAS) in works as follows (with timeoutsession):
1. Cookies in Firefox enabled
UIThread (Session) is created.
a) after timeoutsession time UIThread is rip.
b) before timeoutsession the f5 key is pressed - the same UIThread.

2. Cookies in Firefox disabled
Every time the f5 key is pressed new UIThread is created, but after timeoutsession time UIThread is rip.

I have tested JAAS Wiki Example with
- RAP 1.5M6
- Eclipse Indigo SR2
- FireFox
- with timeoutsession (15[s])
and hier are some of my conclusions:

1. Cookies in Firefox enabled
a) after F5 is pressed application does not resonse
- but when after timeoutsession time F5 is pressed new UIThread is created.
b) after login/cancel refresh work fine

Refresh seems not to working fine before timeoutsession time. After it (timeoutsession time) new UIThread is created, but all others are never ripped.

2. Cookies in Firefox disabled
a) after timeoutsession time UIThread is still aktiv.
b) after F5 is pressed new UIThread is created.
c) after login/cancel refresh work fine

Refresh seems to works fine, but the UIThread and ModelContext Thread are never killed.

After I have integrated my application with JAAS I have also JAAS - refresh problems. I hope this Informations are helpfull to analize this problem.

Regards,
Piotr
Re: Jaas Login integration refresh problem [message #872955 is a reply to message #871480] Thu, 17 May 2012 07:11 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi all,
I've managed to reproduce the issue with the demo project attached to
the Wiki page for RAP and Equinox Security integration. I've opened a
bug to track the progress on it:
379785: Unable to restart the session (F5) under some constellation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=379785
Best,
Ivan

On 5/14/2012 9:23 AM, Missing name Mising name wrote:
> I have following problem with Jaas Login integration. After I have
> integrated my application with Equinox Security Framework using Wiki
> example (wiki.eclipse.org/RAP/Equinox_Security_Integration). My
> application starts and login-box is shown to user. When I try to login
> (with/ without Name/Pass) and then try to refresh (F5) my application,
> all works fine, but when I try to refresh (F5) my application direct
> after it has been started, it crashes/doesn't response anymore - I
> have to restart my server (the same problem appears in the Wiki
> example). It seems for me to be a problem with Lifecycle: components
> are not right disposed or there is a some problem with UIThread.
>
> What I have to add/change in my code to avoid crashes after the login
> box is being refreshed?
>
> Maybe this problem is alraedy known, but I haven't found any helpfully
> informations about it.
>
> Thank you for any hints.
>
>

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Trouble with virtual table and notifyResize()
Next Topic:Jboss problems with javax.servlet
Goto Forum:
  


Current Time: Tue Oct 19 07:06:01 GMT 2021

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

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

Back to the top