[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [starter-dev] Return of the Dreaded View Expiration!
|
- From: Reza Rahman <reza_rahman@xxxxxxxx>
- Date: Fri, 14 Mar 2025 11:58:00 -0400
- Delivered-to: starter-dev@xxxxxxxxxxx
- List-archive: <https://dev.eclipse.org/mailman/private/starter-dev/>
- List-help: <mailto:starter-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://dev.eclipse.org/mailman/listinfo/starter-dev>, <mailto:starter-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://dev.eclipse.org/mailman/options/starter-dev>, <mailto:starter-dev-request@eclipse.org?subject=unsubscribe>
- Ui-outboundreport: notjunk:1;M01:P0:2aH8QD9Xc+c=;vMCPoquNlv7Rdd8lJNz5nd1F6f+ pEHQNpo8EgamdgedN2hm8rjwGIKcOVLGMEwkxk95cjWbQLK/baZUu7LNUcy7rvK//xfglCTvI nF9vT/bGctTkbmVyZK8Pb6ZXw01BVMpf/tm5TOJp9MXqvbhoURL6n181MyDmWZSIyteBtJR6V 5cTSxOBvmZWTxfH3lL0PrjHVeo85MRXzYtKKpCInYofOuzGsHLP7ZHE046V2L18zX/chXtTVN u/ExL8NIelfiPtoWmd4yZQF7Zh2+mTDqSWvXdfE2nJCt3m6LWoOA01OPcSCZErMhwDE+7An7O vys2hsU1HNYvJRpQ8gRcrxSCAu8K2HmTprWLXgNAPsquCpWRGGrBQ0hhwR4zORU5w78O0E8m5 3XZ0Bu55wD5bDQi91rKHE8okSWtxh2WUs9y4e+GgncXa1CuWcYAJpEPyUIBcE5fiLLybzJv6I 8FvyBMTsUTYmtSxMJ3eULmggbWj3TKvZe+MmkRB9Giyxehf9hd2G22Mpb21LJ2ClV2g90lpMb kfoYnzDXIfruVEAWPi5tc40VgsQ8/Xb1pC4ThbbrU8Rvy8C2oYThRQtKYRbP2TpJCdjl0wJJy T8Pd5nS9viucJxGMpjdo7agF7y+tGh7JIeuIXUn6MeQxv1LzILLsKw+EmEkW7zHhCAXk7R4TC K5AVZM+9+fR4RsLNlcbgPahVdXnzjvVM6JdwyI/FXLNujPSOJ8Wtf0vg8x4QFnbNs+sx7UvR4 RKL3OYGGLNj+KupWGDQnyMcA5EtCgT/FbV1liv13aWkqNIqrURKT0CfiVJRDWCbJlEg/JCGP0 qfVd36uR7/qSif35HYS+J4hFxQY06YMY80D3baHzKGuyse8balYVT3xkfHDHayEtheklZ48+9 TeKeJtMPQYUO7P9XAkmsoZ4wRXFk/RUf1GhQnwTQcdgV9F5F7N4KXSHTy70ilwKDtT0oisi/3 cVxiwuuQD0QfWeFVd2mrgMUjVOp8k1Mw+Jc7lRK9t4p7rtnIoZR/dQ/f3lzPBUMs6EciHAEhb yPqShCqYyp6mC8aF8NhZrW+gp+wMdm6tOjW7uI2WQMFgZt4/aprrQmNd5rfQaVKCLtnhw8lQs w1USN3u9JpulxrXLxxpJgHL51sUXotKu2IQekxHhEPR1hCZ2QBpuA8GdWUmXPaCaveAsDm28Z cY+A0h296Ms1rFj1MfW6yPAShImXl4OHIf6mZ0jPOuEhDsuY1GfL58HVgdvIbY+vIN/wmubBQ /D8O5OG+2C16LJSkRCvB7hKoIugPYsiHSmol+wTGfT2NHae471yfOLBN+WXsSTMuuiIRpWnzp RsMCYeJ7+Y43roVSazgPQ0os8vh748mIuD+JrYwNZ3IbpHmlAyMxXx3T+CA4dBJNevn7r+Lk8 zGd9tdIGkpZJEetZ4fDB8yhfCZkSMWkQ0dwBCRifWbqY3BzVvkn6kD664kXA2AF91vTZX5qYK q+UZjXzuYPkvrnBotbTTi2dNIgHGHSWhS8EyDJtw9ZcNopYKttFhR/g510nks9T5CvovSUg==
- User-agent: Mozilla Thunderbird
OK, great. Let me test it and get it deployed. I'll monitor for
any more issues and also try to ensure sticky sessions for good
measure. Thanks!
On 3/14/2025 11:53 AM, Bauke Scholtz
wrote:
Do you mind kindly making a PR with the approach you
think is best overall? I'll test it out and monitor that
it works. I appreciate it!
On 3/14/2025 11:45 AM, Bauke Scholtz wrote:
Yeah. The issue boils down to that the view
scoped bean referenced in the p:selectOneRadio is
created for the first time when the response is already
committed. And view scoped beans need to be saved in the
session. But when the response is already committed the
cookie associated with the session cannot be set.
Another solution is to add a f:viewAction
referencing some bean init method and use that instead
of postconstruct. This is guaranteed invoked before
render response.
Yet another solution is to create a servlet filter
which does an explicit request.getSession() call.
You got it.
Cheers, B
To some extent, the symptoms at least appear
simple. We are now getting copious amounts of
views expired (example stack trace attached). I
had seen this in prior releases with JBoss EAP 7.4
(and the corresponding WildFly version). What I
did is to set STATE_SAVING_METHOD=client. It
worked well and saw no more views expiring in the
logs.
Then we upgraded to JBoss EAP 8 and the
corresponding WildFly versions. Now with
STATE_SAVING_METHOD=client, I get this strange
session state saving issue (example stack trace
also attached). So we are stuck with views
expiring again.
Let me know if I can share anything else. Let me
see if there is anything I can do to ensure sticky
sessions. Because this is deployed to an Azure
PaaS, I have a very limited amount of control.
On 3/14/2025 10:58 AM, Bauke Scholtz wrote:
Hi,
I
had to remove STATE_SAVING_METHOD=client
because I could not get it to work
Would be helpful if you elaborate this in
detail. It might be a clue. One of
pre-requirements for that in a cluster
environment is that the
jsf/ClientSideSecretKey
env param is set (usually in web.xml). This
has been renamed to faces/ClientSideSecretKey.
So if the cluster doesn't use sticky sessions
then ViewExpiredException will occur.
Hey Reza,
Can you provide some more details
(perhaps point me to logs or explain any
scenarios)?
We're still partners with PrimeTek
and I still work with Bauke Scholtz
(cc'd), so we can figure it out.
On Mar 14,
2025 at 10:11 AM -0400, Reza Rahman <
reza_rahman@xxxxxxxx>,
wrote:
Hi Kito/others,
I have been monitoring the release for
stability and unfortunately we
have a problem that needs to be solved.
I had to remove
STATE_SAVING_METHOD=client because I
could not get it to work with the
latest PrimeFaces/Jakarta EE 10/JBoss
EAP 8. Now we have the infamous
JSF problem of views expiring left and
right again of course. I will
keep trying this weekend, but can you
possibly help me look at this and
solve it? You still have some contacts
with the PrimeFaces folks, right?
Could they help? This appears to be
mainly a PrimeFaces problem.
Thanks,
Reza