]
Kamil Podlešák updated WFLY-6666:
---------------------------------
Attachment: stacktrace
Sample stacktrace (one of the shorter ones) from real application (not the same one
referenced in "Steps to Reproduce")
clustering-web-infinispan: infinite recursion in session activation
code
------------------------------------------------------------------------
Key: WFLY-6666
URL:
https://issues.jboss.org/browse/WFLY-6666
Project: WildFly
Issue Type: Bug
Affects Versions: 9.0.2.Final
Reporter: Kamil Podlešák
Assignee: Jason Greene
Attachments: stacktrace
When unmarshalling of session throws one of the expected exception
(ClassNotFoundException, InvalidClassException, InvalidObjectException), it is handled by
attempt to remote this session from cache (CoarseSessionFactory.findValue). This attempt,
however, ends up in the same method, tries to unmarshall the session, catches the
exception.... until it reaches stack limit and throws StackOverflowError.
As an added injury, each exception is logged with full stack, which is getting longer and
longer. Total log size is approximately 40MB per request which means it usually quickly
gets rolled away.
Version 10.0.0 is OK (the code is completely different and does not have this problem).
See also: WFLY-6665 (similar, but not exactly the same bug).