You need to be using Teamcenter connector version 3.6.1 for Mendix 10 compatibility
I faced similar problems when updating to Mendix 10 which can be solved nowadays by updating the respective modules (teamcenter connector, not community commons in your case).
The root cause was a misplaced final modified combined with a subsequent assignment (as the error message indicates). I fixed it temporarily by removing the problematic modified from the java code of the affected actions - the code compiled successfully afterwards. However, this for sure is not recommended as a generic solution to the problem and you better know what you are doing.