-
1. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
bernie_h Feb 16, 2016 7:13 AM (in response to bernie_h)I've just re-tested with the lates WF 10 Final Release and the Problem still exists, It seems that access to stateful beans is not synchronized anymore or the requests are not handled in correct order, which is the case in <= WF9.
Am I the only one experiencing this kind of problem or is there a setting I am missing?
Kinds regards,
Bernhard
-
2. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
bernie_h Nov 22, 2016 3:47 AM (in response to bernie_h)We're still having the same issue with Wildfly 10.1.0.Final.
Can anybode help us with this?
Kinds regards,
Bernhard
-
3. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
jaikiran Nov 23, 2016 2:11 AM (in response to bernie_h)I think the question in your original post is a bit too complicated to understand. Can you narrow down this issue to something more specific and testable/reproducible in a simple application?
-
4. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
bernie_h Nov 23, 2016 5:25 AM (in response to jaikiran)Sure, I've uploaded a simple eclipse project:
(Sorry, could't find another place here to upload ist)
Just deploy on WF 9.0.2 and WF 10.1.0 and goto:
http://localhost:8080/wildfly-request-test/index.xhtml
The index.xhtml is configured to call a Stateful Session bean and increment a counter on each page refresh.
So just hold down the F5 key and see the different behaviour in WF9 and WF10. In WF9 the requests are handled sequentially and the Server returns the response of the last request. In WF10 I see an intermediate request being answered and sent back to the browser. The problem here is, the following requests are still being processed (just watch the console-output) and new ViewStates are being created. At some point the returned page will become unavailable due to a ViewExpiredException.
I hope this helps to clarify the situation.
-
5. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
bernie_h Apr 4, 2017 3:18 AM (in response to bernie_h)Can anybody help?
Kinds regards,
Bernhard
-
6. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
bernie_h Apr 10, 2017 4:26 PM (in response to bernie_h)Same problem with 11.0.0.Alpha1.
We cannot figure out how to solve this or find the correct configuration option (if there is any) to change this behaviour.
However, I think it is somehow related to the HTTP/2-changes (although we've disabled any http2-option).
As this is a major problem in any jsf-based application using SFSBs I'm wondering if anybody else have experienced this?
-
7. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
mayerw01 Apr 11, 2017 6:38 AM (in response to bernie_h)I tried to reproduce this issue and got an error 'could not obtain lock within 5000 MILLISECONDS'.
Seems to be resolved when increasing the 'Default stateful bean access timeout' like
/subsystem=ejb3:write-attribute(name=default-stateful-bean-access-timeout,value=50000)
-
8. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
bernie_h Apr 11, 2017 7:02 AM (in response to mayerw01)Hi!
The problem in question is not actually the ConcurrentAccessTimeoutException, but the order in which the responses are sent back to the browser.
For example: The client sends 10 request, but the server only delivers the response of the 5th request, but processes all other requests as well, as you can see on the console (and in case of jsf also creates new viewstates which may lead to ViewExpiredExceptions on following requests).
In WF <= 9 this wasn't the case, as the client would wait for the response of the last request.
-
9. Re: Wildfly 8.2/9 --> Wildfly 10 Migration / Changes in stateful bean and request handling?
timhallwachs Mar 20, 2018 5:10 AM (in response to bernie_h)Are there any news on this topic?