|
Replies:
4
-
Last Post:
Jun 18, 2009 8:56 AM
by: bryanut
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
JSF - javax.faces.STATE_SAVING_METHOD
Posted:
Jun 18, 2009 5:57 AM
|
|
|
We are having with a JSF application and it's navigation. On occassion the when hitting the next button the application will return to the starting page. It is as if session data has been lost so the application thinks the user is entering the first time. This is a random occurence and happens on IE, Firefox and Opera.
The app is running on glassfish (proxied and load balanced).
We are not sure how to diagnose the issue. Any help would be appreciated.
There is some debate amongst the developers whether javax.faces.STATE_SAVING_METHOD should be set to "client" (the netbeans default setting) or "server". I have suggested it be changed to "server" to see if that solves the problem (an easy change, but the main developer of the application wants to know what "best practice" is before he makes the change).
Another developer thinks the navigation rules in the faces-config.xml should be altered.
Thanks for any feedback.
|
|
|
|
|
|
|
Re: [webtier] JSF - javax.faces.STATE_SAVING_METHOD
Posted:
Jun 18, 2009 8:11 AM
in response to: bryanut
|
|
|
|
|
Everything you say sounds like a misconfiguration of the load balancer to me. I would try running it outside the load balancer and see if you can reproduce the problem, then if it still occurs, you could look elsewhere.
In our app, we have multiple forms on the page, and in client state saving the state is written to the response for each form so our simple pages ended up being a 2MB download for the client, so we went to server. We never had any problem losing state with either configuration.
If you can reproduce it reliably only on certain pages, then faces-config could be the problem, but as I said, I would look at the load balancer first given your symptoms.
Joel
On Thu, Jun 18, 2009 at 6:57 AM, <webtier@javadesktop.org> wrote:
> We are having with a JSF application and it's navigation. On occassion the > when hitting the next button the application will return to the starting > page. It is as if session data has been lost so the application thinks the > user is entering the first time. This is a random occurence and happens on > IE, Firefox and Opera. > > The app is running on glassfish (proxied and load balanced). > > We are not sure how to diagnose the issue. Any help would be appreciated. > > There is some debate amongst the developers whether > javax.faces.STATE_SAVING_METHOD should be set to "client" (the netbeans > default setting) or "server". I have suggested it be changed to "server" to > see if that solves the problem (an easy change, but the main developer of > the application wants to know what "best practice" is before he makes the > change). > > Another developer thinks the navigation rules in the faces-config.xml > should be altered. > > Thanks for any feedback. > [Message sent by forum member 'bryanut' (bryanut)] > > http://forums.java.net/jive/thread.jspa?messageID=351823 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: webtier-help@glassfish.dev.java.net > > [att1.html]
|
|
|
|
|
|
|
|
Re: [webtier] JSF - javax.faces.STATE_SAVING_METHOD
Posted:
Jun 18, 2009 8:55 AM
in response to: Joel Weight
|
|
|
Thanks for the reply.
We have 8 glassfish servers / 2 per load balancer, each server pair handles applications based on type (finance, HR, etc).
This is the only app (out about 30) that is having this issue. It is one the earliest JSF apps this team wrote. We don't think the load balancer is the issue otherwise other apps would be failing.
Regards,
Bryan
|
|
|
|
|
|
|
|
Re: [webtier] JSF - javax.faces.STATE_SAVING_METHOD
Posted:
Jun 18, 2009 8:14 AM
in response to: bryanut
|
|
|
>>>>> On Thu, 18 Jun 2009 05:57:17 -0700 (PDT), webtier@javadesktop.org said:
B> We are having with a JSF application and it's navigation. On B> occassion the when hitting the next button the application will B> return to the starting page. It is as if session data has been lost B> so the application thinks the user is entering the first time. This B> is a random occurence and happens on IE, Firefox and Opera. The app B> is running on glassfish (proxied and load balanced).
B> We are not sure how to diagnose the issue. Any help would be B> appreciated.
The behavior you are observing is indeed consistent with the session being lost. I would install an HttpSessionListener and track when the sessionDestroyed() method is called [1].
If this doesn't lead you anywhere, please followup to the list here and we'll continue to work it.
Ed
-- | ed.burns@sun.com | office: 408 884 9519 OR x31640 | homepage: | http://ridingthecrest.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: webtier-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: [webtier] JSF - javax.faces.STATE_SAVING_METHOD
Posted:
Jun 18, 2009 8:56 AM
in response to: Ed Burns
|
|
|
Thanks, we wrote one yesterday and need to deploy it!
|
|
|
|
|