Bug 65959

Summary: Tomcat 9.0.59 and 9.0.60 implementation of FunctionMapperImpl breaks application
Product: Tomcat 9 Reporter: François Dambrine <francois.dambrine>
Component: ELAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: regression    
Priority: P2    
Version: 9.0.60   
Target Milestone: -----   
Hardware: All   
OS: Linux   
Attachments: full stack trace

Description François Dambrine 2022-03-16 15:24:49 UTC
Created attachment 38229 [details]
full stack trace

Hello,
We have a JSF application that is properly running on tomcat 9.0.58 and previous.
We use Primefaces as JSF component provider.

When we use a dynamic view with ajax, we obtain a full stacktrace du to Serialization error of FunctionMapperImpl (see attached).

I analyzed your release notes and commits and found that the full "write" section was modified for the FunctionMapperImpl.

I cloned tomcat repository, opened the 9.0.x branch and reverted the code https://github.com/apache/tomcat/commit/89c63c4757854435f8d6525e08c02fc598f4aae7 then redeployed the libraries and everything ran fine.
Comment 1 Remy Maucherat 2022-03-22 12:50:16 UTC
The written type was changed from String[] to Class[] when writing the original object, so there was a problem. The fix will be in 10.1.0-M13, 10.0.19, 9.0.61 and 8.5.78.