I am using primefaces 11 in a cluster env(alb + two wildfly 17 + distributable setting). when I use Flash to pass parameter from page1 to page2, I got the following error, and the parameters can no be passed.
[javax.enterprise.resource.webcontainer.jsf.flash] (default task-29) JSF1094: Could not decode flash data from incoming cookie value Invalid characters in decrypted value. Processing will continue, but the flash is unavailable for this request.
If I run it in only one server, the parameters can be passed normally.
- set data
Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash(); flash.put(REDIRECT_DATA_KEY, rData);
- get data
Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash(); return (RedirectData) flash.get(REDIRECT_DATA_KEY);
How I can solve it?